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   [ - ] Hide Comments


Please log in to comment

Community Chosen Answer



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.
Please log in to comment
Answer this question or Comment on this question for clarity



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
Eighth Degree Black Belt

Please log in to comment