2002-12-05 16:29:41 +00:00
|
|
|
;NSIS Modern User Interface version 1.61
|
2002-11-15 16:00:32 +00:00
|
|
|
;Welcome/Finish Page Example Script
|
|
|
|
;Written by Joost Verburg
|
|
|
|
|
|
|
|
!define MUI_PRODUCT "Test Software" ;Define your own software name here
|
|
|
|
!define MUI_VERSION "1.0" ;Define your own software version here
|
|
|
|
|
|
|
|
!include "${NSISDIR}\Contrib\Modern UI\System.nsh"
|
|
|
|
|
|
|
|
;--------------------------------
|
|
|
|
;Configuration
|
|
|
|
|
|
|
|
!define MUI_WELCOMEPAGE
|
|
|
|
!define MUI_FINISHPAGE
|
|
|
|
!define MUI_FINISHPAGE_RUN "$INSTDIR\modern.exe"
|
|
|
|
|
|
|
|
!define MUI_LICENSEPAGE
|
|
|
|
!define MUI_COMPONENTSPAGE
|
|
|
|
!define MUI_DIRECTORYPAGE
|
|
|
|
!define MUI_ABORTWARNING
|
|
|
|
!define MUI_UNINSTALLER
|
|
|
|
|
|
|
|
;Language
|
|
|
|
!insertmacro MUI_LANGUAGE "English"
|
|
|
|
|
|
|
|
;General
|
|
|
|
OutFile "WelcomeFinish.exe"
|
|
|
|
|
|
|
|
;License page
|
|
|
|
LicenseData "${NSISDIR}\Contrib\Modern UI\License.txt"
|
|
|
|
|
|
|
|
;Component-selection page
|
|
|
|
;Descriptions
|
|
|
|
LangString DESC_SecCopyUI ${LANG_ENGLISH} "Copy the modern.exe file to the application folder."
|
|
|
|
|
|
|
|
;Folder-selection page
|
|
|
|
InstallDir "$PROGRAMFILES\${MUI_PRODUCT}"
|
|
|
|
|
|
|
|
;Things that need to be extracted on startup (keep these lines before any File command!)
|
|
|
|
;Only useful for BZIP2 compression
|
|
|
|
;Use ReserveFile for your own Install Options ini files too!
|
|
|
|
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
|
2002-11-18 15:43:21 +00:00
|
|
|
!insertmacro MUI_RESERVEFILE_SPECIALINI
|
|
|
|
!insertmacro MUI_RESERVEFILE_SPECIALBITMAP
|
2002-11-15 16:00:32 +00:00
|
|
|
|
|
|
|
;--------------------------------
|
|
|
|
;Modern UI System
|
|
|
|
|
|
|
|
!insertmacro MUI_SYSTEM
|
|
|
|
|
|
|
|
;--------------------------------
|
|
|
|
;Installer Sections
|
|
|
|
|
|
|
|
Section "modern.exe" SecCopyUI
|
|
|
|
|
|
|
|
;Add your stuff here
|
|
|
|
|
|
|
|
SetOutPath "$INSTDIR"
|
|
|
|
File "${NSISDIR}\Contrib\UIs\modern.exe"
|
|
|
|
|
|
|
|
;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"
|
|
|
|
|
|
|
|
!insertmacro MUI_UNFINISHHEADER
|
|
|
|
|
2002-12-05 16:29:41 +00:00
|
|
|
SectionEnd
|