Modern UI 2.0 beta
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5235 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
68abd8a09e
commit
20137a0054
13 changed files with 2372 additions and 0 deletions
123
Contrib/Modern UI 2/MUI2.nsh
Normal file
123
Contrib/Modern UI 2/MUI2.nsh
Normal file
|
@ -0,0 +1,123 @@
|
|||
/*
|
||||
|
||||
NSIS Modern User Interface - Version 2.0 beta
|
||||
Copyright © 2002-2007 Joost Verburg
|
||||
|
||||
*/
|
||||
|
||||
!echo "NSIS Modern User Interface version 2.0 beta - © 2002-2007 Joost Verburg"
|
||||
|
||||
;--------------------------------
|
||||
|
||||
!ifndef MUI_INCLUDED
|
||||
!define MUI_INCLUDED
|
||||
|
||||
!define MUI_SYSVERSION "2.0beta"
|
||||
|
||||
!verbose push
|
||||
|
||||
!ifndef MUI_VERBOSE
|
||||
!define MUI_VERBOSE 3
|
||||
!endif
|
||||
|
||||
!verbose ${MUI_VERBOSE}
|
||||
|
||||
!addincludedir "${NSISDIR}\Contrib\Modern UI 2"
|
||||
|
||||
;--------------------------------
|
||||
;Header files required by MUI
|
||||
|
||||
!include WinMessages.nsh
|
||||
!include LogicLib.nsh
|
||||
!include nsDialogs.nsh
|
||||
!include LangFile.nsh
|
||||
|
||||
!define LANGFILE_DEFAULT "${NSISDIR}\Contrib\Language files\English.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 "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
|
||||
|
||||
!endif
|
||||
|
||||
!verbose pop
|
Loading…
Add table
Add a link
Reference in a new issue