2003-03-26 19:16:51 +00:00
|
|
|
;NSIS Modern User Interface version 1.64
|
2002-11-15 16:00:32 +00:00
|
|
|
;Welcome/Finish Page Example Script
|
|
|
|
;Written by Joost Verburg
|
|
|
|
|
2003-03-18 09:57:54 +00:00
|
|
|
!define MUI_PRODUCT "Modern UI Test" ;Define your own software name here
|
2002-11-15 16:00:32 +00:00
|
|
|
!define MUI_VERSION "1.0" ;Define your own software version here
|
|
|
|
|
2003-02-07 14:15:51 +00:00
|
|
|
!include "MUI.nsh"
|
2002-12-24 22:38:06 +00:00
|
|
|
|
2002-11-15 16:00:32 +00:00
|
|
|
;--------------------------------
|
|
|
|
;Configuration
|
|
|
|
|
2002-12-24 22:38:06 +00:00
|
|
|
;General
|
2003-01-09 16:49:11 +00:00
|
|
|
OutFile "WelcomeFinish.exe"
|
2002-12-24 22:38:06 +00:00
|
|
|
|
|
|
|
;Folder selection page
|
|
|
|
InstallDir "$PROGRAMFILES\${MUI_PRODUCT}"
|
2003-03-09 22:38:13 +00:00
|
|
|
|
2003-04-30 21:44:52 +00:00
|
|
|
;Get install folder from registry if available
|
2003-03-14 09:23:45 +00:00
|
|
|
InstallDirRegKey HKCU "Software\${MUI_PRODUCT}" ""
|
2002-12-24 22:38:06 +00:00
|
|
|
|
|
|
|
;--------------------------------
|
|
|
|
;Modern UI Configuration
|
|
|
|
|
2002-11-15 16:00:32 +00:00
|
|
|
!define MUI_WELCOMEPAGE
|
|
|
|
!define MUI_LICENSEPAGE
|
|
|
|
!define MUI_COMPONENTSPAGE
|
|
|
|
!define MUI_DIRECTORYPAGE
|
2002-12-06 21:56:28 +00:00
|
|
|
!define MUI_FINISHPAGE
|
2002-12-24 22:38:06 +00:00
|
|
|
!define MUI_FINISHPAGE_RUN "$INSTDIR\modern.exe"
|
2002-12-06 21:56:28 +00:00
|
|
|
|
2002-11-15 16:00:32 +00:00
|
|
|
!define MUI_ABORTWARNING
|
2002-12-06 21:56:28 +00:00
|
|
|
|
2002-11-15 16:00:32 +00:00
|
|
|
!define MUI_UNINSTALLER
|
2002-12-06 21:56:28 +00:00
|
|
|
!define MUI_UNCONFIRMPAGE
|
2002-12-24 22:38:06 +00:00
|
|
|
|
|
|
|
;--------------------------------
|
|
|
|
;Languages
|
|
|
|
|
2002-11-15 16:00:32 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "English"
|
|
|
|
|
2002-12-24 22:38:06 +00:00
|
|
|
;--------------------------------
|
|
|
|
;Language Strings
|
2002-11-15 16:00:32 +00:00
|
|
|
|
2002-12-24 22:38:06 +00:00
|
|
|
;Description
|
|
|
|
LangString DESC_SecCopyUI ${LANG_ENGLISH} "Copy the modern.exe file to the application folder."
|
2002-11-15 16:00:32 +00:00
|
|
|
|
2002-12-24 22:38:06 +00:00
|
|
|
;--------------------------------
|
|
|
|
;Data
|
2002-11-15 16:00:32 +00:00
|
|
|
|
2002-12-24 22:38:06 +00:00
|
|
|
LicenseData "${NSISDIR}\Contrib\Modern UI\License.txt"
|
2002-11-15 16:00:32 +00:00
|
|
|
|
|
|
|
;--------------------------------
|
2002-12-24 22:38:06 +00:00
|
|
|
;Reserve Files
|
2002-11-15 16:00:32 +00:00
|
|
|
|
2002-12-24 22:38:06 +00:00
|
|
|
;Things that need to be extracted on first (keep these lines before any File command!)
|
|
|
|
;Only useful for BZIP2 compression
|
|
|
|
!insertmacro MUI_RESERVEFILE_WELCOMEFINISHPAGE
|
2002-11-15 16:00:32 +00:00
|
|
|
|
|
|
|
;--------------------------------
|
|
|
|
;Installer Sections
|
|
|
|
|
|
|
|
Section "modern.exe" SecCopyUI
|
|
|
|
|
|
|
|
;Add your stuff here
|
|
|
|
|
|
|
|
SetOutPath "$INSTDIR"
|
|
|
|
File "${NSISDIR}\Contrib\UIs\modern.exe"
|
2003-03-09 22:38:13 +00:00
|
|
|
|
|
|
|
;Store install folder
|
2003-03-14 09:23:45 +00:00
|
|
|
WriteRegStr HKCU "Software\${MUI_PRODUCT}" "" $INSTDIR
|
2002-11-15 16:00:32 +00:00
|
|
|
|
|
|
|
;Create uninstaller
|
|
|
|
WriteUninstaller "$INSTDIR\Uninstall.exe"
|
|
|
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
;--------------------------------
|
|
|
|
;Descriptions
|
|
|
|
|
|
|
|
!insertmacro MUI_FUNCTIONS_DESCRIPTION_BEGIN
|
|
|
|
!insertmacro MUI_DESCRIPTION_TEXT ${SecCopyUI} $(DESC_SecCopyUI)
|
|
|
|
!insertmacro MUI_FUNCTIONS_DESCRIPTION_END
|
|
|
|
|
|
|
|
;--------------------------------
|
|
|
|
;Uninstaller Section
|
|
|
|
|
|
|
|
Section "Uninstall"
|
|
|
|
|
|
|
|
;Add your stuff here
|
|
|
|
|
|
|
|
Delete "$INSTDIR\modern.exe"
|
|
|
|
Delete "$INSTDIR\Uninstall.exe"
|
|
|
|
|
|
|
|
RMDir "$INSTDIR"
|
|
|
|
|
2003-03-09 22:38:13 +00:00
|
|
|
DeleteRegKey /ifempty HKCU "Software\${MUI_PRODUCT}"
|
|
|
|
|
2002-12-05 16:29:41 +00:00
|
|
|
SectionEnd
|