/build/static/layout/Breadcrumb_cap_w.png

Software Deployment Question


How can i extract a .zip file using Install Shiwld 2012

05/12/2014 4848 views

I have got a .zip folder which if i extract in the pC ehre i am packaging would take it's properties. So i need to place that .zip under C:\install and then extract it from there. How can i do it using install shield

 

0 Comments   [ + ] Show comments

Comments



Community Chosen Answer

2

You can use the below vbscript in custom action

 

Option Explicit

Extract "<SourceLocation>\MySource.zip", "<DestinationFolder>\"

 

 

Sub Extract( ByVal myZipFile, ByVal myTargetDir )

Dim intOptions, objShell, objSource, objTarget

Set objShell = CreateObject( "Shell.Application" )

Set objSource = objShell.NameSpace( myZipFile ).Items( )

Set objTarget = objShell.NameSpace( myTargetDir )

intOptions = 20

objTarget.CopyHere objSource, intOptions

Set objSource = Nothing

Set objTarget = Nothing

Set objShell  = Nothing

End Sub

 
Answered 05/13/2014 by: jagadeish
Red Belt

  • Thanks!!!
    But i was thinking if there i a way in which without a custom action this an be done.

All Answers

0

The answer is; you can't.  InstallShield can control the properties of the files, so you can extract them from the ZIP file, add them to your MSI, and set the file properties.

Answered 05/13/2014 by: vjaneczko
9th Degree Black Belt