How can i extract a .zip file using Install Shiwld 2012
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
Answers (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
Comments:
-
Thanks!!!
But i was thinking if there i a way in which without a custom action this an be done. - harshbabera 10 years ago