diff --git a/Contrib/Modern UI/System.nsh b/Contrib/Modern UI/System.nsh index 7a48191d..9fc93d67 100644 --- a/Contrib/Modern UI/System.nsh +++ b/Contrib/Modern UI/System.nsh @@ -554,7 +554,7 @@ !verbose 3 - !ifndef MUI_NOGUIINIT + !ifndef MUI_CUSTOMGUIINIT Function .onGUIInit !insertmacro MUI_GUIINIT @@ -922,10 +922,14 @@ !macro MUI_UNFUNCTIONS_GUIINIT !verbose 3 + + !ifndef MUI_UNCUSTOMGUIINIT - Function un.onGUIInit - !insertmacro MUI_GUIINIT - FunctionEnd + Function un.onGUIInit + !insertmacro MUI_GUIINIT + FunctionEnd + + !endif !verbose 4