Archive: compress or add files to .zip archiv


compress or add files to .zip archiv
hello guys,

i'm searching since 2 hours for a solution but i didnt find one. So maybe someone of u can help me.

I want to compress/zip a folder/dir to dirname.zip. I found one method with 7-zip and the following code:

...
SetOutPath $INSTDIR
File "..\..\7-Zip\7zFM.exe"
Rename 7zFM.exe 7za.exe
nsExec::Exec '"$INSTDIR\7za.exe a -tzip -r dir.zip *";zip up dir
...

but during the installation it always opens 7-zip and nothing happens - it doesnt create a .zip file like dirname.zip or something like that.I also searched on the nsis.sourceforge.net site, but i only found a plugin for unzipping a archiv.
And @ info-zip.org i didnt find any solution.

Thx for help,
shavo


7zipFM is the 7-Zip File Manager thus won't be usable in a system without 7zip installed.
You need 7za.exe which is the 7-Zip standalone command line version and a reference to 7-zip manual on how to use this utility.


ah okay, it works, thank you.