|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
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 Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#3 | ||
|
Guest
Posts: n/a
|
Quote:
Quote:
you are my hero :-) |
||
|
|
|
#4 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
For best results, use SetCompressor /solid lzma
-Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#5 |
|
Guest
Posts: n/a
|
@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. |
|
|
|
#6 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
Don't forget to tell it where to extract files using SetOutPath.
code: NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#7 |
|
Guest
Posts: n/a
|
now it work's all fine.
thank you |
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|