Skip to content
⌘ NSIS Forum Archive

Avoid CustomPage

4 posts

Boyito#

Avoid CustomPage

If there a way to avoid to show a custompage depending on the componentes selection

My Code
---------------------------------
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE $(MUILicense)
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
Page custom CustomPageServerName
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
---------------------------------

Ive 2 comonentes options
If i only select 1, the custompage must show, but if i only select 2 not

It is possible?
TIA
Red Wine#
It is possible, on custom page create function SectionGetState and if section is selected proceed to show the custom page else skip to the end of the function.
Boyito#
Sorry
I not understand
Create SectionGetState function where ?
Could you explain a little more
TIA
Red Wine#
sorry,
on custom page create function, check the section state (selected or not) with SectionGetState 🙂