2003-09-04 18:42:21 +00:00
|
|
|
;NSIS Modern User Interface version 1.66
|
2002-11-15 16:00:32 +00:00
|
|
|
;Welcome/Finish Page Example Script
|
|
|
|
;Written by Joost Verburg
|
|
|
|
|
2003-05-25 20:21:21 +00:00
|
|
|
;--------------------------------
|
|
|
|
;Include Modern UI
|
2002-11-15 16:00:32 +00:00
|
|
|
|
2003-06-10 19:32:00 +00:00
|
|
|
!include "MUI.nsh"
|
2003-05-25 20:21:21 +00:00
|
|
|
|
2002-11-15 16:00:32 +00:00
|
|
|
;--------------------------------
|
|
|
|
;Configuration
|
|
|
|
|
2002-12-24 22:38:06 +00:00
|
|
|
;General
|
2003-09-09 16:06:37 +00:00
|
|
|
Name "Modern UI Test 1.66"
|
2003-01-09 16:49:11 +00:00
|
|
|
OutFile "WelcomeFinish.exe"
|
2002-12-24 22:38:06 +00:00
|
|
|
|
|
|
|
;Folder selection page
|
2003-09-09 16:06:37 +00:00
|
|
|
InstallDir "$PROGRAMFILES\Modern UI Test"
|
2003-03-09 22:38:13 +00:00
|
|
|
|
2003-04-30 21:44:52 +00:00
|
|
|
;Get install folder from registry if available
|
2003-09-09 16:06:37 +00:00
|
|
|
InstallDirRegKey HKCU "Software\Modern UI Test" ""
|
2002-12-24 22:38:06 +00:00
|
|
|
|
2003-09-04 18:42:21 +00:00
|
|
|
;--------------------------------
|
|
|
|
;Modern UI Configuration
|
|
|
|
|
|
|
|
!define MUI_ABORTWARNING
|
|
|
|
|
2003-05-25 20:21:21 +00:00
|
|
|
;--------------------------------
|
|
|
|
;Pages
|
|
|
|
|
|
|
|
!insertmacro MUI_PAGE_WELCOME
|
2003-09-04 18:42:21 +00:00
|
|
|
!insertmacro MUI_PAGE_LICENSE "${NSISDIR}\Contrib\Modern UI\License.txt"
|
2003-05-25 20:21:21 +00:00
|
|
|
!insertmacro MUI_PAGE_COMPONENTS
|
|
|
|
!insertmacro MUI_PAGE_DIRECTORY
|
|
|
|
!insertmacro MUI_PAGE_INSTFILES
|
|
|
|
!insertmacro MUI_PAGE_FINISH
|
|
|
|
|
|
|
|
!insertmacro MUI_UNPAGE_CONFIRM
|
|
|
|
!insertmacro MUI_UNPAGE_INSTFILES
|
|
|
|
|
2002-12-24 22:38:06 +00:00
|
|
|
;--------------------------------
|
|
|
|
;Languages
|
|
|
|
|
2002-11-15 16:00:32 +00:00
|
|
|
!insertmacro MUI_LANGUAGE "English"
|
|
|
|
|
2003-06-14 12:49:33 +00:00
|
|
|
;--------------------------------
|
|
|
|
;Reserve Files
|
|
|
|
|
|
|
|
;Things that need to be extracted on first (keep these lines before any File command!)
|
|
|
|
;Only for BZIP2 compression
|
|
|
|
|
|
|
|
!insertmacro MUI_RESERVEFILE_WELCOMEFINISHPAGE
|
2003-09-25 21:07:25 +00:00
|
|
|
ReserveFile "${NSISDIR}\Contrib\Graphics\Wizard\win.bmp"
|
2003-06-14 12:49:33 +00:00
|
|
|
|
2002-11-15 16:00:32 +00:00
|
|
|
;--------------------------------
|
|
|
|
;Installer Sections
|
|
|
|
|
2003-06-10 19:32:00 +00:00
|
|
|
Section "Dummy Section" SecDummy
|
2002-11-15 16:00:32 +00:00
|
|
|
|
|
|
|
SetOutPath "$INSTDIR"
|
2003-06-10 19:32:00 +00:00
|
|
|
|
|
|
|
;ADD YOUR OWN STUFF HERE!
|
2003-03-09 22:38:13 +00:00
|
|
|
|
|
|
|
;Store install folder
|
2003-09-09 16:06:37 +00:00
|
|
|
WriteRegStr HKCU "Software\Modern UI Test" "" $INSTDIR
|
2003-05-25 20:21:21 +00:00
|
|
|
|
2002-11-15 16:00:32 +00:00
|
|
|
;Create uninstaller
|
|
|
|
WriteUninstaller "$INSTDIR\Uninstall.exe"
|
|
|
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
;--------------------------------
|
|
|
|
;Descriptions
|
|
|
|
|
2003-06-10 19:32:00 +00:00
|
|
|
LangString DESC_SecDummy ${LANG_ENGLISH} "A test section."
|
2003-05-25 20:21:21 +00:00
|
|
|
|
2003-09-04 18:42:21 +00:00
|
|
|
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
|
2003-06-10 19:32:00 +00:00
|
|
|
!insertmacro MUI_DESCRIPTION_TEXT ${SecDummy} $(DESC_SecDummy)
|
2003-09-04 18:42:21 +00:00
|
|
|
!insertmacro MUI_FUNCTION_DESCRIPTION_END
|
2003-05-25 20:21:21 +00:00
|
|
|
|
2002-11-15 16:00:32 +00:00
|
|
|
;--------------------------------
|
|
|
|
;Uninstaller Section
|
|
|
|
|
|
|
|
Section "Uninstall"
|
|
|
|
|
2003-05-25 20:21:21 +00:00
|
|
|
;ADD YOUR OWN STUFF HERE!
|
2002-11-15 16:00:32 +00:00
|
|
|
|
|
|
|
Delete "$INSTDIR\Uninstall.exe"
|
|
|
|
|
|
|
|
RMDir "$INSTDIR"
|
|
|
|
|
2003-09-09 16:06:37 +00:00
|
|
|
DeleteRegKey /ifempty HKCU "Software\Modern UI Test"
|
2003-03-09 22:38:13 +00:00
|
|
|
|
2003-05-25 20:21:21 +00:00
|
|
|
SectionEnd
|