123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- /*
- NSIS Modern User Interface - Version 2.0
- 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 /IfNDef MUI_VERBOSE 3
- !verbose ${MUI_VERBOSE}
- !define MUI_INCLUDED
- !define MUI_SYSVERSION "2.0"
- !addincludedir "${NSISDIR}\Contrib\Modern UI 2"
- ;--------------------------------
- ;Header files required by MUI
- !include WinMessages.nsh
- !include LogicLib.nsh
- !include nsDialogs.nsh
- !include LangFile.nsh
- ;--------------------------------
- ;Macros for compile-time defines
- !macro MUI_DEFAULT SYMBOL CONTENT
- ;Define symbol if not yet defined
- ;For setting default values
- !ifndef "${SYMBOL}"
- !define "${SYMBOL}" "${CONTENT}"
- !endif
- !macroend
- !macro MUI_SET SYMBOL CONTENT
- ;Define symbol and undefine if neccesary
-
- !insertmacro MUI_UNSET "${SYMBOL}"
- !define "${SYMBOL}" "${CONTENT}"
- !macroend
- !macro MUI_UNSET SYMBOL
- ;Undefine symbol if defined
- !ifdef "${SYMBOL}"
- !undef "${SYMBOL}"
- !endif
- !macroend
- ;--------------------------------
- ;MUI interface
- !include "Deprecated.nsh"
- !include "Interface.nsh"
- !include "Localization.nsh"
- !include "Pages.nsh"
- ;--------------------------------
- ;Pages
- !include "Pages\Components.nsh"
- !include "Pages\Directory.nsh"
- !include "Pages\Finish.nsh"
- !include "Pages\InstallFiles.nsh"
- !include "Pages\License.nsh"
- !include "Pages\StartMenu.nsh"
- !include "Pages\UninstallConfirm.nsh"
- !include "Pages\Welcome.nsh"
- ;--------------------------------
- ;Insert MUI code in script
- !macro MUI_INSERT
- !ifndef MUI_INSERT
- !define MUI_INSERT
- ;This macro is included when the first language file is included,
- ;after the pages.
- ;Interface settings
- !insertmacro MUI_INTERFACE
- ;Interface functions - Installer
- !insertmacro MUI_FUNCTION_GUIINIT
- !insertmacro MUI_FUNCTION_ABORTWARNING
- ;Interface functions - Uninstaller
- !ifdef MUI_UNINSTALLER
- !insertmacro MUI_UNFUNCTION_GUIINIT
- !insertmacro MUI_FUNCTION_UNABORTWARNING
- !endif
- !endif
- !macroend
- !verbose pop
- !endif
|