Skip to content
⌘ NSIS Forum Archive

Page depending on compnents

2 posts

marqo#

Page depending on compnents

Hello,
I would like to show a page depending on the choice of the components. Is it possible ?

Regards
coho#
Yes.
Force a function to be called right after the components page.
With a custom page, it looks like this...

!insertmacro MUI_PAGE_COMPONENTS ;components page
Page custom ShowFunction LeaveFunction ;your dynamic page

You can place the following code in the ShowFunction:

!insertmacro SectionFlagIsSet ${SectionName} ${SF_SELECTED} +2 0
Abort ;abort this page = don't show it.

(Otherwise, show it...)