Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 18th February 2011, 05:00   #1
debopamg
Junior Member
 
Join Date: Feb 2011
Posts: 2
Having multiple OutFiles in a single script

Hi,

I want to create two outfiles each time I run a script. The outfiles will basically be Java launchers, one with java <options> and another with javaw <options>. Is there a way this can be done in NSIS?

Thanks in advance,
debopamg is offline   Reply With Quote
Old 18th February 2011, 05:10   #2
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,849
You can use !system to execute the NSIS compiler a second time on another .nsi file.
MSG is offline   Reply With Quote
Old 18th February 2011, 08:22   #3
debopamg
Junior Member
 
Join Date: Feb 2011
Posts: 2
thanks for the pointer. !system did not work. Instead, !execute did the trick. had some issues with quotes and spaces (C:\Program Files\ ..etc), but its working now.

Thanks a lot!

Last edited by debopamg; 18th February 2011 at 08:51. Reason: SOLVED
debopamg is offline   Reply With Quote
Old 19th February 2011, 04:45   #4
zivha
Junior Member
 
Join Date: Aug 2010
Posts: 44
Maybe this is a bit dirty solution but you could create a batch file that runs makensis twice for your script, each time create some .nsh file that is included by your script and defines which outfile to create, then have in the main script something like:


!ifdef MAKEJAVAW
Outfile java.exe
!else
Outfile javaw.exe
!endif
zivha is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Tags
multiple outfiles

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