Modern UI 1.5
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1631 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
233ecd35dc
commit
c0f1e2ad00
21 changed files with 789 additions and 961 deletions
|
@ -1,12 +1,10 @@
|
|||
;NSIS Modern User Interface version 1.4
|
||||
;Basic Macro System Example Script
|
||||
;NSIS Modern User Interface version 1.5
|
||||
;Basic 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
|
||||
|
||||
!define MUI_NAME "${MUI_PRODUCT} ${MUI_VERSION}" ;Installer name
|
||||
|
||||
!include "${NSISDIR}\Contrib\Modern UI\System.nsh"
|
||||
|
||||
;--------------------------------
|
||||
|
@ -58,7 +56,7 @@ SectionEnd
|
|||
;--------------------------------
|
||||
;Descriptions
|
||||
|
||||
!insertmacro MUI_FUNCTIONS_DESCRIPTION_START
|
||||
!insertmacro MUI_FUNCTIONS_DESCRIPTION_BEGIN
|
||||
!insertmacro MUI_DESCRIPTION_TEXT ${SecCopyUI} $(DESC_SecCopyUI)
|
||||
!insertmacro MUI_FUNCTIONS_DESCRIPTION_END
|
||||
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
;NSIS Modern User Interface version 1.4
|
||||
;NSIS Modern User Interface version 1.5
|
||||
;Install Options 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
|
||||
|
||||
!define MUI_NAME "${MUI_PRODUCT} ${MUI_VERSION}" ;Installer name
|
||||
|
||||
!include "${NSISDIR}\Contrib\Modern UI\System.nsh"
|
||||
|
||||
;--------------------------------
|
||||
|
@ -19,8 +17,6 @@
|
|||
!define MUI_DIRECTORYPAGE
|
||||
!define MUI_ABORTWARNING
|
||||
!define MUI_UNINSTALLER
|
||||
|
||||
!define MUI_CUSTOMPAGECOMMANDS ;Use customized pages
|
||||
|
||||
!define TEMP1 $R0
|
||||
!define TEMP2 $R1
|
||||
|
@ -32,6 +28,8 @@
|
|||
OutFile "InstallOptions.exe"
|
||||
|
||||
;Page order
|
||||
!define MUI_CUSTOMPAGECOMMANDS ;Use customized pages
|
||||
|
||||
!insertmacro MUI_PAGECOMMAND_LICENSE
|
||||
Page custom SetCustomA
|
||||
Page custom SetCustomB
|
||||
|
@ -58,12 +56,8 @@
|
|||
LangString TEXT_IO_PAGETITLE_B ${LANG_ENGLISH} "Custom Page B"
|
||||
LangString TEXT_IO_PAGETITLE_C ${LANG_ENGLISH} "Custom Page C"
|
||||
|
||||
;Uninstaller
|
||||
!define MUI_UNCUSTOMPAGECOMMANDS
|
||||
!insertmacro MUI_UNPAGECOMMAND_CONFIRM
|
||||
!insertmacro MUI_UNPAGECOMMAND_INSTFILES
|
||||
|
||||
;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!
|
||||
ReserveFile "${NSISDIR}\Plugins\InstallOptions.dll"
|
||||
ReserveFile "ioA.ini"
|
||||
|
@ -98,6 +92,13 @@ SectionEnd
|
|||
|
||||
!insertmacro MUI_SECTIONS_FINISHHEADER ;Insert this macro after the sections
|
||||
|
||||
;--------------------------------
|
||||
;Descriptions
|
||||
|
||||
!insertmacro MUI_FUNCTIONS_DESCRIPTION_BEGIN
|
||||
!insertmacro MUI_DESCRIPTION_TEXT ${SecCopyUI} $(DESC_SecCopyUI)
|
||||
!insertmacro MUI_FUNCTIONS_DESCRIPTION_END
|
||||
|
||||
;--------------------------------
|
||||
;Installer Functions
|
||||
|
||||
|
@ -122,17 +123,18 @@ FunctionEnd
|
|||
|
||||
Function SetCustomA
|
||||
!insertmacro MUI_HEADER_TEXT $(TEXT_IO_TITLE) $(TEXT_IO_SUBTITLE)
|
||||
!insertmacro MUI_INSTALLOPTIONS_SHOW "ioA.ini"
|
||||
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "ioA.ini"
|
||||
FunctionEnd
|
||||
|
||||
Function SetCustomB
|
||||
!insertmacro MUI_HEADER_TEXT $(TEXT_IO_TITLE) $(TEXT_IO_SUBTITLE)
|
||||
!insertmacro MUI_INSTALLOPTIONS_SHOW "ioB.ini"
|
||||
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "ioB.ini"
|
||||
FunctionEnd
|
||||
|
||||
Function SetCustomC
|
||||
!insertmacro MUI_HEADER_TEXT $(TEXT_IO_TITLE) $(TEXT_IO_SUBTITLE)
|
||||
!insertmacro MUI_INSTALLOPTIONS_SHOW "ioC.ini"
|
||||
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "ioC.ini"
|
||||
|
||||
FunctionEnd
|
||||
|
||||
;--------------------------------
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
;NSIS Modern User Interface version 1.4
|
||||
;Basic Macro System & MultiLanguage Example Script
|
||||
;NSIS Modern User Interface version 1.5
|
||||
;MultiLanguage 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
|
||||
|
||||
!define MUI_NAME "${MUI_PRODUCT} ${MUI_VERSION}" ;Installer name
|
||||
|
||||
!include "${NSISDIR}\Contrib\Modern UI\System.nsh"
|
||||
|
||||
;--------------------------------
|
||||
|
@ -168,7 +166,7 @@ FunctionEnd
|
|||
;--------------------------------
|
||||
;Descriptions
|
||||
|
||||
!insertmacro MUI_FUNCTIONS_DESCRIPTION_START
|
||||
!insertmacro MUI_FUNCTIONS_DESCRIPTION_BEGIN
|
||||
!insertmacro MUI_DESCRIPTION_TEXT ${SecCopyUI} $(DESC_SecCopyUI)
|
||||
!insertmacro MUI_FUNCTIONS_DESCRIPTION_END
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue