Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 7th April 2006, 07:37   #1
theInstaller
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
  Reply With Quote
Old 7th April 2006, 08:12   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
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
Afrow UK is offline   Reply With Quote
Old 7th April 2006, 08:38   #3
theInstaller
Guest
 
Posts: n/a
Thumbs up

Quote:
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.

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

you are my hero :-)
  Reply With Quote
Old 7th April 2006, 08:50   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
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
Afrow UK is offline   Reply With Quote
Old 7th April 2006, 09:18   #5
theInstaller
Guest
 
Posts: n/a
Unhappy

@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.
  Reply With Quote
Old 7th April 2006, 10:16   #6
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
Don't forget to tell it where to extract files using SetOutPath.
code:
SetOutPath $INSTDIR
File /r "C:\Program Files\*.*"


NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 7th April 2006, 12:58   #7
theInstaller
Guest
 
Posts: n/a
Thumbs up

now it work's all fine.

thank you
  Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump