Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 21st June 2011, 04:36   #1
uahmed
Junior Member
 
Join Date: Jun 2011
Posts: 2
Argument Passing to nsi file

Hi

I am new in nsis scripting . I want to do argument logic with nsis script . Like i want to putt the outputfile name as a argument of nsis .

./makensis.exe installer.nsi <OUTPUT_FILE_NAME>

If its possible then how to use this value with in script .

Many thanks
uahmed is offline   Reply With Quote
Old 21st June 2011, 05:34   #2
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,841
http://nsis.sourceforge.net/Docs/Chapter3.html

I see no mention of an outfile parameter. So what you can do is write your desired outfile command to an outfile.nsh and then !include that at the top of your nsi script.
MSG is offline   Reply With Quote
Old 21st June 2011, 08:36   #3
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,168
Send a message via ICQ to Yathosho
put something like this in your script

OutFile ${OUTFILE}

then you can use

makensis.exe /DOUTFILE="My Great Installer.exe"
Yathosho 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