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.
Skip custom page depending on sections chosen
7 posts
Originally posted by YathoshoUnfortunately, this way works only for first section, but doesn't work for second which is alsways determined as selected. =(
http://nsis.sourceforge.net/archive/...php?pageid=320
You've probably defined the section below the definition of that funciton.
Originally posted by kichikWhich function do you mean? What is the right order?
You've probably defined the section below the definition of that funciton.
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!