2002-12-14 00:15:41 +00:00
|
|
|
;NSIS Modern User Interface version 1.62
|
2002-11-08 21:08:27 +00:00
|
|
|
;Basic Example Script
|
2002-10-07 19:59:01 +00:00
|
|
|
;Written by Joost Verburg
|
|
|
|
|
2002-11-04 11:19:21 +00:00
|
|
|
!define MUI_PRODUCT "Test Software" ;Define your own software name here
|
|
|
|
!define MUI_VERSION "1.0" ;Define your own software version here
|
|
|
|
|
2003-02-07 14:15:51 +00:00
|
|
|
!include "MUI.nsh"
|
2002-10-07 19:59:01 +00:00
|
|
|
|
|
|
|
;--------------------------------
|
|
|
|
;Configuration
|
|
|
|
|
2002-12-24 22:38:06 +00:00
|
|
|
;General
|
|
|
|
OutFile "Basic.exe"
|
|
|
|
|
|
|
|
;Folder selection page
|
|
|
|
InstallDir "$PROGRAMFILES\${MUI_PRODUCT}"
|
|
|
|
|
|
|
|
;--------------------------------
|
|
|
|
;Modern UI Configuration
|
|
|
|
|
2002-10-08 09:29:03 +00:00
|
|
|
!define MUI_LICENSEPAGE
|
2002-11-01 20:45:53 +00:00
|
|
|
!define MUI_COMPONENTSPAGE
|
|
|
|
!define MUI_DIRECTORYPAGE
|
2002-12-06 21:56:28 +00:00
|
|
|
|
2002-10-13 18:28:38 +00:00
|
|
|
!define MUI_ABORTWARNING
|
2002-12-06 21:56:28 +00:00
|
|
|
|
2002-10-08 09:29:03 +00:00
|
|
|
!define MUI_UNINSTALLER
|
2002-12-06 21:56:28 +00:00
|
|
|
!define MUI_UNCONFIRMPAGE
|
2002-12-24 22:38:06 +00:00
|
|
|
|
|
|
|
;Modern UI System
|
|
|
|
!insertmacro MUI_SYSTEM
|
|
|
|
|
|
|
|
;--------------------------------
|
|
|
|
;Languages
|
|
|
|
|
2002-11-04 16:40:35 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "English"
|
2002-11-04 11:19:21 +00:00
|
|
|
|
2002-12-24 22:38:06 +00:00
|
|
|
;--------------------------------
|
|
|
|
;Language Strings
|
2002-10-07 19:59:01 +00:00
|
|
|
|
2002-12-24 22:38:06 +00:00
|
|
|
;Description
|
2002-10-17 21:22:21 +00:00
|
|
|
LangString DESC_SecCopyUI ${LANG_ENGLISH} "Copy the modern.exe file to the application folder."
|
2002-10-07 19:59:01 +00:00
|
|
|
|
2002-11-04 11:19:21 +00:00
|
|
|
;--------------------------------
|
2002-12-24 22:38:06 +00:00
|
|
|
;Data
|
|
|
|
|
|
|
|
LicenseData "${NSISDIR}\Contrib\Modern UI\License.txt"
|
2002-10-07 19:59:01 +00:00
|
|
|
|
|
|
|
;--------------------------------
|
|
|
|
;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
|
|
|
|
|
2002-12-05 16:29:41 +00:00
|
|
|
;Display the Finish header
|
|
|
|
;Insert this macro after the sections if you are not using a finish page
|
|
|
|
!insertmacro MUI_SECTIONS_FINISHHEADER
|
2002-10-07 19:59:01 +00:00
|
|
|
|
|
|
|
;--------------------------------
|
2002-11-04 11:19:21 +00:00
|
|
|
;Descriptions
|
2002-10-07 19:59:01 +00:00
|
|
|
|
2002-11-08 21:08:27 +00:00
|
|
|
!insertmacro MUI_FUNCTIONS_DESCRIPTION_BEGIN
|
2002-10-17 21:22:21 +00:00
|
|
|
!insertmacro MUI_DESCRIPTION_TEXT ${SecCopyUI} $(DESC_SecCopyUI)
|
2002-11-02 23:06:46 +00:00
|
|
|
!insertmacro MUI_FUNCTIONS_DESCRIPTION_END
|
2002-10-17 21:22:21 +00:00
|
|
|
|
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
|
|
|
|
2002-11-03 13:21:09 +00:00
|
|
|
SectionEnd
|