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
|
|
|
|
|
2002-10-26 21:51:39 +00:00
|
|
|
!include "${NSISDIR}\Contrib\Modern UI\System.nsh"
|
2002-10-07 19:59:01 +00:00
|
|
|
|
|
|
|
;--------------------------------
|
|
|
|
;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-10-08 09:29:03 +00:00
|
|
|
|
2002-10-07 19:59:01 +00:00
|
|
|
;Language
|
2002-11-04 16:40:35 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "English"
|
2002-11-04 11:19:21 +00:00
|
|
|
|
2002-10-07 19:59:01 +00:00
|
|
|
;General
|
|
|
|
OutFile "Basic.exe"
|
|
|
|
|
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-12-15 21:43:38 +00:00
|
|
|
;Folder selection page
|
2002-11-04 11:19:21 +00:00
|
|
|
InstallDir "$PROGRAMFILES\${MUI_PRODUCT}"
|
|
|
|
|
|
|
|
;--------------------------------
|
|
|
|
;Modern UI System
|
|
|
|
|
|
|
|
!insertmacro MUI_SYSTEM
|
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
|