Modern UI 1.65
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2571 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
0568d17ef7
commit
1d2cc0db8e
9 changed files with 533 additions and 698 deletions
|
@ -1,12 +1,18 @@
|
|||
;NSIS Modern User Interface version 1.64
|
||||
;NSIS Modern User Interface version 1.65
|
||||
;Welcome/Finish Page Example Script
|
||||
;Written by Joost Verburg
|
||||
|
||||
!define MUI_PRODUCT "Modern UI Test" ;Define your own software name here
|
||||
!define MUI_VERSION "1.0" ;Define your own software version here
|
||||
;--------------------------------
|
||||
;Include Modern UI
|
||||
|
||||
!include "MUI.nsh"
|
||||
|
||||
|
||||
;--------------------------------
|
||||
;Product Info
|
||||
|
||||
!define MUI_PRODUCT "Modern UI Test"
|
||||
!define MUI_VERSION "1.65"
|
||||
|
||||
;--------------------------------
|
||||
;Configuration
|
||||
|
||||
|
@ -19,57 +25,48 @@
|
|||
;Get install folder from registry if available
|
||||
InstallDirRegKey HKCU "Software\${MUI_PRODUCT}" ""
|
||||
|
||||
;--------------------------------
|
||||
;Pages
|
||||
|
||||
!insertmacro MUI_PAGE_WELCOME
|
||||
!insertmacro MUI_PAGE_LICENSE
|
||||
!insertmacro MUI_PAGE_COMPONENTS
|
||||
!insertmacro MUI_PAGE_DIRECTORY
|
||||
!insertmacro MUI_PAGE_INSTFILES
|
||||
!insertmacro MUI_PAGE_FINISH
|
||||
|
||||
!insertmacro MUI_UNPAGE_CONFIRM
|
||||
!insertmacro MUI_UNPAGE_INSTFILES
|
||||
|
||||
;--------------------------------
|
||||
;Modern UI Configuration
|
||||
|
||||
!define MUI_WELCOMEPAGE
|
||||
!define MUI_LICENSEPAGE
|
||||
!define MUI_COMPONENTSPAGE
|
||||
!define MUI_DIRECTORYPAGE
|
||||
!define MUI_FINISHPAGE
|
||||
!define MUI_FINISHPAGE_RUN "$INSTDIR\modern.exe"
|
||||
|
||||
!define MUI_ABORTWARNING
|
||||
|
||||
!define MUI_UNINSTALLER
|
||||
!define MUI_UNCONFIRMPAGE
|
||||
|
||||
!define MUI_FINISHPAGE_RUN "$INSTDIR\modern.exe"
|
||||
|
||||
;--------------------------------
|
||||
;Languages
|
||||
|
||||
!insertmacro MUI_LANGUAGE "English"
|
||||
|
||||
;--------------------------------
|
||||
;Language Strings
|
||||
|
||||
;Description
|
||||
LangString DESC_SecCopyUI ${LANG_ENGLISH} "Copy the modern.exe file to the application folder."
|
||||
|
||||
;--------------------------------
|
||||
;Data
|
||||
|
||||
LicenseData "${NSISDIR}\Contrib\Modern UI\License.txt"
|
||||
|
||||
;--------------------------------
|
||||
;Reserve Files
|
||||
|
||||
;Things that need to be extracted on first (keep these lines before any File command!)
|
||||
;Only useful for BZIP2 compression
|
||||
!insertmacro MUI_RESERVEFILE_WELCOMEFINISHPAGE
|
||||
|
||||
;--------------------------------
|
||||
;Installer Sections
|
||||
|
||||
Section "modern.exe" SecCopyUI
|
||||
Section "Dummy Test File" SecCopyUI
|
||||
|
||||
;Add your stuff here
|
||||
;ADD YOUR OWN STUFF HERE!
|
||||
|
||||
SetOutPath "$INSTDIR"
|
||||
File "${NSISDIR}\Contrib\UIs\modern.exe"
|
||||
|
||||
;Store install folder
|
||||
WriteRegStr HKCU "Software\${MUI_PRODUCT}" "" $INSTDIR
|
||||
|
||||
|
||||
;Create uninstaller
|
||||
WriteUninstaller "$INSTDIR\Uninstall.exe"
|
||||
|
||||
|
@ -78,16 +75,18 @@ SectionEnd
|
|||
;--------------------------------
|
||||
;Descriptions
|
||||
|
||||
LangString DESC_SecCopyUI ${LANG_ENGLISH} "Copy modern.exe to the application folder."
|
||||
|
||||
!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
|
||||
;ADD YOUR OWN STUFF HERE!
|
||||
|
||||
Delete "$INSTDIR\modern.exe"
|
||||
Delete "$INSTDIR\Uninstall.exe"
|
||||
|
@ -96,4 +95,4 @@ Section "Uninstall"
|
|||
|
||||
DeleteRegKey /ifempty HKCU "Software\${MUI_PRODUCT}"
|
||||
|
||||
SectionEnd
|
||||
SectionEnd
|
Loading…
Add table
Add a link
Reference in a new issue