cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Tim_Mayert
Level 9

Extracting files from a zip file during install

We have a new install project that requires the installation of ApacheDS LDAP and Apache Tomcat. Our developement team would perfer the install to simply use the .zip files that are supplied by Apache and extract them during install instead of the install using the supplied Apache install setup .exe files and calling them as prerequisites.

Since there is no built in functionality in IS 2011 to extract .zip files during install and we are not guaranteed that the user's machines will have an unzip application on their machine that can be called to extract the files we have to supply our own.

So has anyone done this? Are there any recommended extraction applications that we can use in a custom action that can be triggered to extract the files/folders in the .zip files to the correct locations where the files are suppose to be installed/extracted to?

We need a tool that is free and can be called within a custom action.

Any suggestions would be appreciated.

Thanks,
Labels (1)
0 Kudos
(2) Replies
Rouslan
Level 4

You can use 7za.exe executable for unpacking your zip files. 7za.exe is a part of 7Zip tool (freeware) (http://www.7-zip.org)

You can easily unpck it by using command line in Custom Action:


7za.exe x "" -o -y


0 Kudos
Videstra
Level 7

They want you to use the ZIP file? Well that seems very odd to me. If you extract the files, place them in a folder and run them that decomplicates things a lot and when you create the installer you can make the installer itself compressed if you are looking to save xfer time.
I'm just completely confused as to how keeping them in the zip makes it better.
I think your developers haven't really thought this out - or just don't understand installations.
But - I understand there may be some esoteric reason for this. Enlighten me...
0 Kudos