2002-10-26 17:39:56 +00:00
|
|
|
;NSIS Modern User Interface version 1.3
|
|
|
|
;Basic Macro System Example Script
|
2002-10-07 19:59:01 +00:00
|
|
|
;Written by Joost Verburg
|
|
|
|
|
|
|
|
!define NAME "Test Software" ;Define your own software name here
|
|
|
|
!define VERSION "1.0" ;Define your own software version here
|
|
|
|
|
2002-10-26 21:51:39 +00:00
|
|
|
!include "${NSISDIR}\Contrib\Modern UI\System.nsh"
|
2002-10-07 19:59:01 +00:00
|
|
|
|
2002-10-26 17:39:56 +00:00
|
|
|
;$9 is the variable used to store the current page, do not use this var!
|
|
|
|
|
2002-10-07 19:59:01 +00:00
|
|
|
;--------------------------------
|
|
|
|
;Configuration
|
|
|
|
|
2002-10-26 12:25:02 +00:00
|
|
|
!insertmacro MUI_BASICFUNCTIONS_INIT
|
|
|
|
|
2002-10-08 09:29:03 +00:00
|
|
|
!define MUI_LICENSEPAGE
|
|
|
|
!define MUI_COMPONENTPAGE
|
|
|
|
!define MUI_DIRSELECTPAGE
|
2002-10-13 18:28:38 +00:00
|
|
|
!define MUI_ABORTWARNING
|
2002-10-08 09:29:03 +00:00
|
|
|
!define MUI_UNINSTALLER
|
|
|
|
|
2002-10-07 19:59:01 +00:00
|
|
|
;Language
|
|
|
|
;English
|
|
|
|
LoadLanguageFile "${NSISDIR}\Contrib\Language files\English.nlf"
|
2002-10-12 15:57:47 +00:00
|
|
|
!include "${NSISDIR}\Contrib\Modern UI\Language files\English.nsh"
|
2002-10-07 19:59:01 +00:00
|
|
|
|
|
|
|
;General
|
|
|
|
Name "${NAME} ${VERSION}"
|
|
|
|
OutFile "Basic.exe"
|
|
|
|
|
2002-10-26 17:39:56 +00:00
|
|
|
!insertmacro MUI_INTERFACE
|
2002-10-07 19:59:01 +00:00
|
|
|
|
2002-10-26 17:39:56 +00:00
|
|
|
;License page
|
2002-10-12 16:16:46 +00:00
|
|
|
LicenseData "${NSISDIR}\Contrib\Modern UI\License.txt"
|
2002-10-07 19:59:01 +00:00
|
|
|
|
2002-10-17 21:22:21 +00:00
|
|
|
;Descriptions
|
|
|
|
LangString DESC_SecCopyUI ${LANG_ENGLISH} "Copy the modern.exe file to the application folder."
|
2002-10-07 19:59:01 +00:00
|
|
|
|
2002-10-26 17:39:56 +00:00
|
|
|
;Folder-selection page
|
2002-10-07 19:59:01 +00:00
|
|
|
InstallDir "$PROGRAMFILES\${NAME}"
|
|
|
|
|
|
|
|
;--------------------------------
|
|
|
|
;Installer Sections
|
|
|
|
|
|
|
|
Section "modern.exe" SecCopyUI
|
|
|
|
|
2002-10-17 21:22:21 +00:00
|
|
|
;ADD YOUR OWN STUFF HERE!
|
2002-10-07 19:59:01 +00:00
|
|
|
|
|
|
|
SetOutPath "$INSTDIR"
|
|
|
|
File "${NSISDIR}\Contrib\UIs\modern.exe"
|
2002-10-17 21:22:21 +00:00
|
|
|
|
|
|
|
;Create uninstaller
|
2002-10-07 19:59:01 +00:00
|
|
|
WriteUninstaller "$INSTDIR\Uninstall.exe"
|
|
|
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
Section ""
|
|
|
|
|
|
|
|
;Invisible section to display the Finish header
|
2002-10-26 12:25:02 +00:00
|
|
|
!insertmacro MUI_FINISHHEADER
|
2002-10-07 19:59:01 +00:00
|
|
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
;--------------------------------
|
|
|
|
;Installer Functions
|
|
|
|
|
2002-10-17 21:22:21 +00:00
|
|
|
!insertmacro MUI_BASICFUNCTIONS
|
2002-10-07 19:59:01 +00:00
|
|
|
|
2002-10-17 21:22:21 +00:00
|
|
|
!insertmacro MUI_FUNCTION_DESCRIPTION_START
|
|
|
|
!insertmacro MUI_DESCRIPTION_TEXT ${SecCopyUI} $(DESC_SecCopyUI)
|
|
|
|
!insertmacro MUI_FUNCTION_DESCRIPTION_END
|
|
|
|
|
|
|
|
!insertmacro MUI_FUNCTION_ABORTWARNING
|
2002-10-07 19:59:01 +00:00
|
|
|
|
|
|
|
;--------------------------------
|
|
|
|
;Uninstaller Section
|
|
|
|
|
|
|
|
Section "Uninstall"
|
|
|
|
|
2002-10-17 21:22:21 +00:00
|
|
|
;ADD YOUR OWN STUFF HERE!
|
2002-10-07 19:59:01 +00:00
|
|
|
|
|
|
|
Delete "$INSTDIR\modern.exe"
|
|
|
|
Delete "$INSTDIR\Uninstall.exe"
|
|
|
|
|
|
|
|
RMDir "$INSTDIR"
|
|
|
|
|
2002-10-17 21:22:21 +00:00
|
|
|
;Display the Finish header
|
2002-10-26 12:25:02 +00:00
|
|
|
!insertmacro MUI_UNFINISHHEADER
|
2002-10-07 19:59:01 +00:00
|
|
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
;--------------------------------
|
|
|
|
;Uninstaller Functions
|
|
|
|
|
2002-10-17 21:22:21 +00:00
|
|
|
!insertmacro MUI_UNBASICFUNCTIONS
|