
* New settings for extra space for title and text on Welcome page and Finish page. * Improved handling of verbose settings. Define MUI_VERBOSE the set the Modern UI verbose level (1-4). * Language file string for uninstaller reboot information * Setting for folder validation in leave function * Fixed finish page text settings for multiple pages git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3201 212acab6-be3b-0410-9dea-997c60f758d6
87 lines
No EOL
1.8 KiB
NSIS
87 lines
No EOL
1.8 KiB
NSIS
;NSIS Modern User Interface version 1.68
|
|
;Welcome/Finish Page Example Script
|
|
;Written by Joost Verburg
|
|
|
|
;--------------------------------
|
|
;Include Modern UI
|
|
|
|
!include "MUI.nsh"
|
|
|
|
;--------------------------------
|
|
;Configuration
|
|
|
|
;General
|
|
Name "Modern UI Test 1.68"
|
|
OutFile "WelcomeFinish.exe"
|
|
|
|
;Folder selection page
|
|
InstallDir "$PROGRAMFILES\Modern UI Test"
|
|
|
|
;Get install folder from registry if available
|
|
InstallDirRegKey HKCU "Software\Modern UI Test" ""
|
|
|
|
;--------------------------------
|
|
;Interface Settings
|
|
|
|
!define MUI_ABORTWARNING
|
|
|
|
;--------------------------------
|
|
;Pages
|
|
|
|
!insertmacro MUI_PAGE_WELCOME
|
|
!insertmacro MUI_PAGE_LICENSE "${NSISDIR}\Contrib\Modern UI\License.txt"
|
|
!insertmacro MUI_PAGE_COMPONENTS
|
|
!insertmacro MUI_PAGE_DIRECTORY
|
|
!insertmacro MUI_PAGE_INSTFILES
|
|
!insertmacro MUI_PAGE_FINISH
|
|
|
|
!insertmacro MUI_UNPAGE_WELCOME
|
|
!insertmacro MUI_UNPAGE_CONFIRM
|
|
!insertmacro MUI_UNPAGE_INSTFILES
|
|
!insertmacro MUI_UNPAGE_FINISH
|
|
|
|
;--------------------------------
|
|
;Languages
|
|
|
|
!insertmacro MUI_LANGUAGE "English"
|
|
|
|
;--------------------------------
|
|
;Installer Sections
|
|
|
|
Section "Dummy Section" SecDummy
|
|
|
|
SetOutPath "$INSTDIR"
|
|
|
|
;ADD YOUR OWN STUFF HERE!
|
|
|
|
;Store install folder
|
|
WriteRegStr HKCU "Software\Modern UI Test" "" $INSTDIR
|
|
|
|
;Create uninstaller
|
|
WriteUninstaller "$INSTDIR\Uninstall.exe"
|
|
|
|
SectionEnd
|
|
|
|
;--------------------------------
|
|
;Descriptions
|
|
|
|
LangString DESC_SecDummy ${LANG_ENGLISH} "A test section."
|
|
|
|
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
|
|
!insertmacro MUI_DESCRIPTION_TEXT ${SecDummy} $(DESC_SecDummy)
|
|
!insertmacro MUI_FUNCTION_DESCRIPTION_END
|
|
|
|
;--------------------------------
|
|
;Uninstaller Section
|
|
|
|
Section "Uninstall"
|
|
|
|
;ADD YOUR OWN STUFF HERE!
|
|
|
|
Delete "$INSTDIR\Uninstall.exe"
|
|
|
|
RMDir "$INSTDIR"
|
|
|
|
DeleteRegKey /ifempty HKCU "Software\Modern UI Test"
|
|
|
|
SectionEnd |