Archive: MUI Setting section question


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!


Use conditional compilation (!ifdef etc). You can specify defines on the makensis command line with the /D switch or in MakeNSISW itself.

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?


You don't want a space after the /D.

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!


http://nsis.sourceforge.net/Docs/Chapter3.html#3.1

Stu


Thanks Stu!
I need to put /DEXP before script name.