diff --git a/Contrib/Modern UI 2/MUI2.nsh b/Contrib/Modern UI 2/MUI2.nsh index f339f698..2d651fb7 100644 --- a/Contrib/Modern UI 2/MUI2.nsh +++ b/Contrib/Modern UI 2/MUI2.nsh @@ -1,22 +1,23 @@ /* -NSIS Modern User Interface - Version 2.0 +NSIS Modern User Interface - Version 2.1 Copyright 2002-2017 Joost Verburg Contributors: Amir Szekely, Anders Kjersem */ !ifndef MUI_INCLUDED -!echo "NSIS Modern User Interface version 2.0 - Copyright 2002-2017 Joost Verburg" +!verbose push 3 +!define MUI_INCLUDED +!define MUI_SYSVERSION "2.1" +!verbose pop +!echo "NSIS Modern User Interface version ${MUI_SYSVERSION} - Copyright 2002-2017 Joost Verburg" ;-------------------------------- !verbose push 3 !define /IfNDef MUI_VERBOSE 3 !verbose ${MUI_VERBOSE} -!define MUI_INCLUDED -!define MUI_SYSVERSION "2.0" - !addincludedir "${NSISDIR}\Contrib\Modern UI 2" ;-------------------------------- @@ -113,4 +114,4 @@ Contributors: Amir Szekely, Anders Kjersem !macroend !verbose pop -!endif +!endif ;~ MUI_INCLUDED diff --git a/Contrib/Modern UI 2/Pages/Finish.nsh b/Contrib/Modern UI 2/Pages/Finish.nsh index 9d0ad2f9..74431c4e 100644 --- a/Contrib/Modern UI 2/Pages/Finish.nsh +++ b/Contrib/Modern UI 2/Pages/Finish.nsh @@ -412,6 +412,7 @@ Finish page (implemented using nsDialogs) Call ${MUI_PAGE_UNINSTALLER_FUNCPREFIX}muiPageLoadFullWindow !insertmacro MUI_PAGE_FUNCTION_CUSTOM SHOW nsDialogs::Show + !insertmacro MUI_PAGE_FUNCTION_CUSTOM DESTROYED Call ${MUI_PAGE_UNINSTALLER_FUNCPREFIX}muiPageUnloadFullWindow !ifdef MUI_FINISHPAGE_CANCEL_ENABLED diff --git a/Contrib/Modern UI 2/Pages/StartMenu.nsh b/Contrib/Modern UI 2/Pages/StartMenu.nsh index dd660ac4..831d5911 100644 --- a/Contrib/Modern UI 2/Pages/StartMenu.nsh +++ b/Contrib/Modern UI 2/Pages/StartMenu.nsh @@ -141,8 +141,8 @@ Start Menu folder page !endif !insertmacro MUI_PAGE_FUNCTION_CUSTOM SHOW - StartMenu::Show + !insertmacro MUI_PAGE_FUNCTION_CUSTOM DESTROYED Pop $mui.StartMenuPage.Temp ${if} $mui.StartMenuPage.Temp == "success" diff --git a/Contrib/Modern UI 2/Pages/Welcome.nsh b/Contrib/Modern UI 2/Pages/Welcome.nsh index 3c9fe035..f4720446 100644 --- a/Contrib/Modern UI 2/Pages/Welcome.nsh +++ b/Contrib/Modern UI 2/Pages/Welcome.nsh @@ -160,6 +160,7 @@ Welcome page (implemented using nsDialogs) Call ${MUI_PAGE_UNINSTALLER_FUNCPREFIX}muiPageLoadFullWindow !insertmacro MUI_PAGE_FUNCTION_CUSTOM SHOW nsDialogs::Show + !insertmacro MUI_PAGE_FUNCTION_CUSTOM DESTROYED Call ${MUI_PAGE_UNINSTALLER_FUNCPREFIX}muiPageUnloadFullWindow ;Delete image from memory diff --git a/Contrib/Modern UI 2/Readme.html b/Contrib/Modern UI 2/Readme.html index cd5e1591..d4b0986c 100644 --- a/Contrib/Modern UI 2/Readme.html +++ b/Contrib/Modern UI 2/Readme.html @@ -191,7 +191,7 @@
This new version makes it easier to customize pages, because the same method can
@@ -1086,6 +1086,7 @@ FunctionEnd
MUI_PAGE_CUSTOMFUNCTION_PRE function
MUI_PAGE_CUSTOMFUNCTION_SHOW function
MUI_PAGE_CUSTOMFUNCTION_LEAVE function
+ MUI_PAGE_CUSTOMFUNCTION_DESTROYED function
The pre function is called first and allows you to initalize variables or decide @@ -1095,8 +1096,10 @@ FunctionEnd
In the show function, the window handles of all controls on the page can be retrieved from a Modern UI variable. A list of the variables names is not yet available. For - now, refer to the source files of the Modern UI 2.0. The variable declarations can + now, refer to the source files of the Modern UI 2. The variable declarations can be found in the first lines of the header file for a certain page.
++ The destroyed function is called after a external/plug-in page has been destroyed.