cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Pratik_Tayde
Level 2

Extracting zip through installscript installer

Hi,
We have some metadata files which are required by our application at runtime. These files are generated after installer creation and we do not want to include them in installer and do the rebuilding. we want to pass them as a zip and extract them at a specified location via installshield installer.

Can anyone help me on how this can be done?

Thanks in advance!!!!!!:)
Labels (1)
0 Kudos
(2) Replies
orearv2
Level 3

You didn't state which OS you are deploying too, but if you are using WinXP or higher you can use the native OS tools to extract files with a VBS script see - http://www.aspfree.com/c/a/Windows-Scripting/Compressed-Folders-in-WSH/
0 Kudos
orearv2
Level 3

Pratik Tayde wrote:
Hi,
We have some metadata files which are required by our application at runtime. These files are generated after installer creation and we do not want to include them in installer and do the rebuilding. we want to pass them as a zip and extract them at a specified location via installshield installer.


Answer depends on the OS you are deploying to.
You could use a 3rd party tool like 7zip and use the command line options to extract the files from your SUPPORTDIR,
or you could use a VBS script or another tool, to call the native compression functionality in WinXP and above (see http://www.aspfree.com/c/a/Windows-Scripting/Compressed-Folders-in-WSH/
From Windows 8 on, .Net Framework 4.5 is installed by default, so you could call System.IO.Compression.ZipArchive, see http://stackoverflow.com/a/26843122/71312
0 Kudos