And I'm pretty much done. However, I'd like the installer to be very easy to configure, and as such would really like to be able to do something like:
I realize that for 2 options, I could do:
!define FOO 1 ;Set FOO to 2, 1, or 0 depending on option
!if ${FOO} == 2
!define BAR "SOME_REALLY_CONVOLUTED_STRING"
!elseif ${FOO} == 1
!define BAR "SOME_OTHER_REALLY_CONVOLUTED_STRING"
!else
!define BAR "SOME_THIRD_REALLY_CONVOLUTED_STRING"
!endif
(Note that I need to define FOO, since I use it later in the installer)
!define FOO 1 ;Comment this line if you don't want FOO
!ifdef ${FOO}
!define BAR "SOME_REALLY_CONVOLUTED_STRING"
!else
!define BAR "SOME_OTHER_REALLY_CONVOLUTED_STRING"
!define FOO 0
!endif
Which works (and is how I'm doinng it now), but is somewhat confusing for the users, and doesn't allow for more than 2 options
Is there any more elegant way to do what I need?
(We are usiing 2.0b1)
(BTW: Thank you for NSIS! It is a wonderful project)