Skip to content
⌘ NSIS Forum Archive

MUI Setting section question

7 posts

jdt2oo7#

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#
Use conditional compilation (!ifdef etc). You can specify defines on the makensis command line with the /D switch or in MakeNSISW itself.

Stu
jdt2oo7#
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?
jdt2oo7#
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!