theInstaller
7th April 2006 08:37 UTC
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
Afrow UK
7th April 2006 09:12 UTC
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
theInstaller
7th April 2006 09:38 UTC
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 :-)
Afrow UK
7th April 2006 09:50 UTC
For best results, use SetCompressor /solid lzma
-Stu
theInstaller
7th April 2006 10:18 UTC
@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.
kichik
7th April 2006 11:16 UTC
Don't forget to tell it where to extract files using SetOutPath.
SetOutPath $INSTDIR
File /r "C:\Program Files\*.*"
theInstaller
7th April 2006 13:58 UTC
now it work's all fine.
thank you