Archive: Skip Custom Page?


Skip Custom Page?

Searching for the answer returns alternate paths that
are useable solutions to questions of a different quest.


I know to use abort in a function before
the custom page, but when ever I do that
it shows the custom page and skips the
license page. Far as I can see the code
below should do the trick.


!define MUI_PAGE_CUSTOMFUNCTION_PRE FUNCTIONNAME
Page Custom PAGENAME
!insertmacro MUI_PAGE_LICENSE
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_INSTFILES

Function FUNCTIONNAME
abort
FunctionEnd


Thinking that it was the order, I placed LICENSE at the top
and it skips the DIRECTORY page. The code just doesn't
want to apply itself to a custom page, only a MUI official
page. No matter what order I place it in. The custom page
never gets effected.

How do you skip a custom page correctly?

-Michael


Hi Michael!

You can't use MUI_PAGE_CUSTOMFUNCTION_PRE for custom dialogs. You have to place the code in the function for the custom ui itself.


Page Custom PAGENAME
!insertmacro MUI_PAGE_LICENSE
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_INSTFILES

Function PAGENAME
strcmp ... +2
abort
!insertmacro ...
FunctionEnd


Cheers

Bruno


Well I put abort in the PAGENAME function and
nothing happen. The custom page still appeared.
Considering what you said the below should skip
the custom page, but didn't.


Function PAGENAME
!insertmacro MUI_HEADER_TEXT "" ""
!insertmacro MUI_INSTALLOPTIONS_DISPLAY ""
abort
FunctionEnd


Although you never specified abort to be first before:


!insertmacro MUI_HEADER_TEXT "" ""
!insertmacro MUI_INSTALLOPTIONS_DISPLAY ""


Which seems to work so thanks :-)

-Michael