Yurik
6th October 2004 21:02 UTC
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.
Yurik
10th October 2004 14:50 UTC
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. =(
kichik
10th October 2004 15:31 UTC
You've probably defined the section below the definition of that funciton.
Yurik
10th October 2004 16:10 UTC
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.
kichik
10th October 2004 16:15 UTC
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
Yurik
10th October 2004 16:29 UTC
Thanks, Kichik, you was absolutely right!