Archive: Modern UI StartMenu-Page


Modern UI StartMenu-Page
  Hello,

why does the StartMenu-Page has no Show-Function. Is it a big effort to include a show function to the Startmenu-Page or can someone tell me how I can skip it if a special option is selected ?

I have tried it with the pre-function:


Test 

StrCmp${INSTALL_VERSION} "3" not_abort_startmenu +1
MessageBox MB_OK "Abort Startmenu ${INSTALL_VERSION}"
Abort
not_abort_startmenu:
>FunctionEnd
>
But it seems that the variable ${INSTALL_VERSION} is not set.

Best regards

Stefan

You can skip the page in the Pre function (not the Show function, which can be used to modify fonts/colors of custom pages).

${INSTALL_VERSION} is a compile-time defined symbol, you can't assign a value to it on run-time.

You should define a variable

Var INSTALL_VERSION

and use

$INSTALL_VERSION


also, u can write 0 instead of +1 in relative jumps :)


Or nothing, because the "go_to_if_not" parameter is optional.

Means:

StrCmp ${INSTALL_VERSION} "3" not_abort_startmenu +1
=
StrCmp ${INSTALL_VERSION} "3" not_abort_startmenu