Archive: Skip custom page depending on sections chosen


Skip custom page depending on sections chosen
Excuse me my silly question, I can't find out how to skip custom page corresponding to section.
E.g. I have products A and B that could be installed separately. Each has some options that are set via custom pages. Custom page devoted to product A is not to be shown when A is not selected for install.

Thanks.


http://nsis.sourceforge.net/archive/...php?pageid=320


Originally posted by Yathosho
http://nsis.sourceforge.net/archive/...php?pageid=320
Unfortunately, this way works only for first section, but doesn't work for second which is alsways determined as selected. =(

You've probably defined the section below the definition of that funciton.


Originally posted by kichik
You've probably defined the section below the definition of that funciton.
Which function do you mean? What is the right order?
Thanks.

The page function. The correct order is:

!include LogicLib.nsh
Page custom pagefunc
Section 1 sec1
SectionEnd
Section 2 sec2
SectionEnd
Function pagefunc
${If} ${SectionIsSelected} ${sec2}
Abort
${EndIf}
FunctionEnd

Thanks, Kichik, you was absolutely right!