Old 21st June 2011, 04:36   #1
Junior Member
Join Date: Jun 2011
Posts: 2
Argument Passing to nsi file


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
Major Dude
Join Date: Oct 2006
Posts: 1,892

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
Forum King
Yathosho's Avatar
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
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
Go Back   Winamp & Shoutcast 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