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!
MUI Setting section question
7 posts
Use conditional compilation (!ifdef etc). You can specify defines on the makensis command line with the /D switch or in MakeNSISW itself.
Stu
Stu
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?
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?
You don't want a space after the /D.
Stu
Stu
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!
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!
Thanks Stu!
I need to put /DEXP before script name.
I need to put /DEXP before script name.