Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 2nd October 2008, 13:17   #1
kasperih
Junior Member
 
Join Date: Oct 2008
Posts: 1
How to parameterize which files the installer should use

Hi

I would like my script to be able to read a kind of .ini file or something like that at compiletime and use the content of the file when naming the OUTPUTFile and the files to pack in the .exe file. Does anybody know how to do that?
kasperih is offline   Reply With Quote
Old 3rd October 2008, 21:05   #2
Comperio
Major Dude
 
Comperio's Avatar
 
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
You'll need to create a separate EXE that would read the INI and generate a header file with all the FILE commands you need (based on what you find in the INI file).

Then, you include that header file with your main NSI script.

This wiki article should get you started:
http://nsis.sourceforge.net/Invoking...n_compile-time
Comperio is offline   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