jdt2oo7
4th May 2010 20:10 UTC
MUI Setting section question
Hello all,
I need to create setup files with variation of MUI Setting section. For example, I want to launch the app after installation in one, but not on another one.
I don't want to maintain 2 separate scripts just because of some different in MUI Setting section.
Any idea?
Many thanks!
Afrow UK
4th May 2010 20:29 UTC
Use conditional compilation (!ifdef etc). You can specify defines on the makensis command line with the /D switch or in MakeNSISW itself.
Stu
jdt2oo7
6th May 2010 19:22 UTC
thanks Stu for your response.
I thought I got it figured out last night, but not seem to work now:
Command line:
- build.bat ParaA ParaB /D EXP
In my script:
!ifdef EXP
message A
!else
message B
!endif
Is this the idea?
Afrow UK
6th May 2010 19:45 UTC
You don't want a space after the /D.
Stu
jdt2oo7
6th May 2010 19:57 UTC
So it would be:
build.bat ParaA ParaB /DEXP
How does it know that it's a "/D" switch and EXP is parameter?
Not seem to work either.
Thanks!
jdt2oo7
6th May 2010 20:37 UTC
Thanks Stu!
I need to put /DEXP before script name.