Archive: How do I create four variants of the same installer?


How do I create four variants of the same installer?
Hello,
I am trying to make four variants of the same installer but with minor differences.
Not wanting to clone (and maintain) my nsi file four times, I would like to be able to do any of the following but so far I haven't managed to find a way of doing any of them:


Am I missing a trick? or is there a feasiable way to implement one of the above?

Thanks for listening!
BloodBaz
:weird:

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


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. ;-)