user variables, new macro to get startmenu folder, comp page desc box info text changes, welcome/finish page leave functions
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2728 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
2adb778918
commit
8ae004ada7
5 changed files with 339 additions and 414 deletions
|
@ -2,9 +2,7 @@
|
|||
;InstallOptions Example Script
|
||||
;Written by Joost Verburg
|
||||
|
||||
!define TEMP $R0
|
||||
|
||||
;--------------------------------
|
||||
---------------------
|
||||
;Include Modern UI
|
||||
|
||||
!include "MUI.nsh"
|
||||
|
@ -27,6 +25,11 @@
|
|||
;Get install folder from registry if available
|
||||
InstallDirRegKey HKCU "Software\${MUI_PRODUCT}" ""
|
||||
|
||||
;--------------------------------
|
||||
;Variables
|
||||
|
||||
Var TEMP
|
||||
|
||||
;--------------------------------
|
||||
;Pages
|
||||
|
||||
|
@ -83,10 +86,10 @@ Section "Dummy Section" SecDummy
|
|||
WriteUninstaller "$INSTDIR\Uninstall.exe"
|
||||
|
||||
;Read a value from an InstallOptions INI file
|
||||
!insertmacro MUI_INSTALLOPTIONS_READ ${TEMP} "ioC.ini" "Field 2" "State"
|
||||
!insertmacro MUI_INSTALLOPTIONS_READ $TEMP "ioC.ini" "Field 2" "State"
|
||||
|
||||
;Display a messagebox if check box was checked
|
||||
StrCmp ${TEMP} "1" "" +2
|
||||
StrCmp $TEMP "1" "" +2
|
||||
MessageBox MB_OK "You checked the check box, here is the MessageBox..."
|
||||
|
||||
SectionEnd
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue