Old 4th April 2012, 14:16   #1
Marshall7a
Junior Member
 
Join Date: Oct 2004
Location: UK
Posts: 33
Compile Time Commands
http://nsis.sourceforge.net/Docs/Chapter5.html

variant1.nsi:
!define VARIANT "1"
!include main.nsi

variant2.nsi:
!define VARIANT "2"
!include main.nsi

main.nsi:
!if "${VARIANT}" == "1"
Name "Installer Variant One"
!else if "${VARIANT}" == "2"
Name "Installer Variant Two
!endif

I've never been very sure about what is right. I'm not even sure that there is such a thing as right. Or wrong. Just places to stand.
Marshall7a is offline   Reply With Quote
Old 4th April 2012, 15:12   #2
BloodBaz
Junior Member
 
Join Date: Apr 2012
Posts: 18
Thanks Marshall7a. Exactly what I am looking for.
Now that you have pointed me to !define and !if ${}, I have found it in the docs.
Cheers. ;-)
BloodBaz is offline   Reply With Quote
Reply
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