This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Unzip a File
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 17, 2008
12:28 PM
Unzip a File
Well, I have a 18MB Zipped File, that after installing the EXE I have. It will automatically unzip the 18MB File, and create a folder for it.
Unless you think just include the items in the Zip File would make it easier, I know that. But I don't want the file itself to be that big.
Thanks,
Alec
Unless you think just include the items in the Zip File would make it easier, I know that. But I don't want the file itself to be that big.
Thanks,
Alec
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 19, 2008
09:03 AM
Aleco™ wrote:
Well, I have a 18MB Zipped File, that after installing the EXE I have. It will automatically unzip the 18MB File, and create a folder for it.
Unless you think just include the items in the Zip File would make it easier, I know that. But I don't want the file itself to be that big.
Thanks,
Alec
We use zip files here to deliver sample files and tutorials. We use an Open Source command line zip component called 7-Zip. You can download the command line utility here.
Here is some sample code from one of my IS projects.
STRING str7ZipPath, strSrcPath, stCmdLine, strDestPath
str7ZipPath = SUPPORTDIR ^ "7za.exe";
strSrcPath = SUPPORTDIR ^ "Foo.zip";
strDestPath = TARGETDIR ^ "\\Foo\\";
strCmdLine = "x " + strSrcPath + " -o" + strDestPath + " -r -aoa";
LaunchAppAndWait(str7ZipPath, strCmdLine, LAAW_OPTION_WAIT|LAAW_OPTION_SHOW_HOURGLASS);
This is the breakdown of the command line syntax
"x " + strSrcPath = Extracts files from an archive with their full paths
" -o" + strDestPath = Specifies a destination directory where files are to be extracted.
" -r -aoa" = Recurse subdirectories and Overwrite All existing files without prompt.
Hope this helps,
TP