Archive: get Zip file into Installer?


get Zip file into Installer?
hi,
i know maybe the answer is very easy but i tried it over two hours and nothing worked.


I like to add an compressed zip file (could also be the uncompressed files) to the installer, so that i can execute later the setup.exe in the script from the zip file.

I only know how i can put one file in the installer with this command:

File /oname=$PLUGINSDIR\NameOfFile 'NameOfFile'

Execute File --> Exec 'NameOfFile'

But i like to get more file into the installer without putting every file extra into the installer.


I would be very happy if someone could help me :-D

Thanks


Why put them in a Zip file? NSIS supports LZMA compression which is much better than Zip compression.

Just put all your files in one folder, and use File /r "localdir\*.*"

-Stu


Originally posted by Afrow UK
Why put them in a Zip file? NSIS supports LZMA compression which is much better than Zip compression.
jop, that's right so i use know the LZMA compression.

Just put all your files in one folder, and use File /r "localdir\*.*"
[/B]
thank you for your help!!!

you are my hero :-)

For best results, use SetCompressor /solid lzma

-Stu


@Afrow UK
thank you for the tip with the "SetCompressor" command.

But regardless of which compression I use I got always one failure if I execute the installer.


Error opening file for writing:
\Books\Books.txt

Click Abort to stop .....
....
.
Cancel Retry Ignore

I tested a few times with diferent files.


It's always the first file in the first (top) subdirectory.

What could it be?

That's my code: File /r "C:\Program\*.*"
And i do nothing execute till know, I only click on the installer *.exe file.


Don't forget to tell it where to extract files using SetOutPath.

SetOutPath $INSTDIR
File /r "C:\Program Files\*.*"

now it work's all fine.

thank you