cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Dean_H
Level 7

How to unzip a file and install its contents as part on an installation

I have an InstallScript project that requires a Zipped file to be unzipped and installed as part of the installation, how do I do this?
Labels (1)
0 Kudos
(7) Replies
ISNewone
Level 3

Why do you want to do that though? InstallShileds by its own nature, zipped all your files anyway.

If you want to do it for security reasons (e.g. hide something from hackers), that will never work.
0 Kudos
Dean_H
Level 7

The files that are zipped are Adobe Help files. Adobe has changed the way their dynamic links now work so unless the files are zipped, the links incorrectly reference the path on the build machine.
0 Kudos
joshstechnij
Level 10 Flexeran
Level 10 Flexeran

The only good way of accomplishing this would be to include an unzip utility in the installation and launch it against the installed zip files (they could also be stored in Support Files), or, try to find an open source zip API and include it in as a built DLL you can call from your script.
0 Kudos
jazeboy1
Level 3

I'm having the same issue but I need to extract file paths longer than 8 characters and all the dos utilities I can find only extract short paths and cut off the longer pathnames. can anyone help with a good utility that supports long paths?
0 Kudos
rajeevshukla
Level 3

You can try creating a self extracting executable of the zip file. And then execute the exe to extract it. If you have winzip installed, right click the zip file and convert it to and exe file.

Do let me know if it works.

Cheers,
Rajeev
0 Kudos
jazeboy1
Level 3

Thanks Rajeev,

I am able to do this but I really need to be able to extract a zip file as well as our customers will be adding a simple zip file to easily customise the install?

Any ideas?
0 Kudos
idblew
Level 4

As joshstachnij said

try to find an open source zip API and include it in as a built DLL you can call from your script


I wrote just such a C DLL a couple of years ago and still use it regularly in my installations today.

Try the following link for an example

http://www.wischik.com/lu/programmer/zip_utils.html
0 Kudos