TEMP is already taken
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2729 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
8ae004ada7
commit
f8b0ff0368
2 changed files with 9 additions and 9 deletions
|
@ -2,7 +2,7 @@
|
|||
;InstallOptions Example Script
|
||||
;Written by Joost Verburg
|
||||
|
||||
---------------------
|
||||
;---------------------
|
||||
;Include Modern UI
|
||||
|
||||
!include "MUI.nsh"
|
||||
|
@ -28,7 +28,7 @@
|
|||
;--------------------------------
|
||||
;Variables
|
||||
|
||||
Var TEMP
|
||||
Var MUI_TEMP
|
||||
|
||||
;--------------------------------
|
||||
;Pages
|
||||
|
@ -86,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 $MUI_TEMP "ioC.ini" "Field 2" "State"
|
||||
|
||||
;Display a messagebox if check box was checked
|
||||
StrCmp $TEMP "1" "" +2
|
||||
StrCmp $MUI_TEMP "1" "" +2
|
||||
MessageBox MB_OK "You checked the check box, here is the MessageBox..."
|
||||
|
||||
SectionEnd
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
;--------------------------------
|
||||
;Variables
|
||||
|
||||
Var TEMP
|
||||
Var MUI_TEMP
|
||||
|
||||
;--------------------------------
|
||||
;Pages
|
||||
|
@ -114,16 +114,16 @@ Section "Uninstall"
|
|||
|
||||
RMDir "$INSTDIR"
|
||||
|
||||
!insertmacro MUI_STARTMENU_GETFOLDER $TEMP
|
||||
!insertmacro MUI_STARTMENU_GETFOLDER $MUI_TEMP
|
||||
|
||||
Delete "$SMPROGRAMS\$TEMP\Uninstall.lnk"
|
||||
Delete "$SMPROGRAMS\$MUI_TEMP\Uninstall.lnk"
|
||||
|
||||
;Delete empty start menu parent diretories
|
||||
StrCpy $TEMP "$SMPROGRAMS\$TEMP"
|
||||
StrCpy $MUI_TEMP "$SMPROGRAMS\$MUI_TEMP"
|
||||
|
||||
startMenuDeleteLoop:
|
||||
RMDir ${TEMP}
|
||||
GetFullPathName $TEMP "$TEMP\.."
|
||||
GetFullPathName $MUI_TEMP "$MUI_TEMP\.."
|
||||
|
||||
IfErrors startMenuDeleteLoopDone
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue