NSIS. How can I dynamically display a specific user page?

My first page contains 2 switches: 1 for installation and others for updating. Depending on the choice of the user, I have to show user pages for installation or update. How can i do this?

+3
source share
2 answers

If you abortcall the create function in a callback for your custom page, the page will be skipped:

Function MyPage
${If} $somevar == "something"
Abort
${EndIf}
;Show page with nsDialogs or InstallOptions here...
FunctionEnd

page custom MyPage
+2
source

I did not test it directly (I will soon, since my onw NSIS script will need this function), but maybe the functionRelGotoPage can do what you need.

NSIS .
:

  • ,
  • < <21 > ( MUI)
  • !define MUI_CUSTOMFUNCTION_ABORT "" (w/MUI)

InstallOptions InstallOptionsEx , , NSIS.


: :

RelGotoPage, , "", .
Abort show, , .

, , , , .

. NSIS:

: , .

  • ,
  • show-function
  • , , .

  • "".
  • show CreateFont, SetCtlColors, SendMessage .
  • Abort.
+1

Source: https://habr.com/ru/post/1726703/


All Articles