Problem with conditional Installer page
I use a Modern UI installer structure with an entry for a custom page that launches one of my applications at the end of the installation process,
like
...
!insertmacro MUI_PAGE_STARTMENU Application $ICONS_GROUP
!insertmacro MUI_PAGE_INSTFILES
!define MUI_FINISHPAGE_RUN "$INSTDIR\MySpecialApp.exe"
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
Now I define 3 InstTypes, and Type 2 is without installing MySpecialApp.
When within the installation process I choose Type 2, I have to make sure that the "Run MySpecialApp now" page is not displayed for this InstType.
I fail repeatedly.
Mostly because "if[InstType2] - then[don't display that thing]" conditions must appear in sections or functions, but the installer page listn is not within a function, but apparently plain body text after the header.
Is it possible to switch an installer page on or off depending on the InstType value?
I didn't see any related thread in the forum. If there is any, and I was just too blind - a link will be my friend.
Thanks in advance,
John.