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:
kichik 2003-07-16 23:03:02 +00:00
parent 8ae004ada7
commit f8b0ff0368
2 changed files with 9 additions and 9 deletions

View file

@ -2,7 +2,7 @@
;InstallOptions Example Script ;InstallOptions Example Script
;Written by Joost Verburg ;Written by Joost Verburg
--------------------- ;---------------------
;Include Modern UI ;Include Modern UI
!include "MUI.nsh" !include "MUI.nsh"
@ -28,7 +28,7 @@
;-------------------------------- ;--------------------------------
;Variables ;Variables
Var TEMP Var MUI_TEMP
;-------------------------------- ;--------------------------------
;Pages ;Pages
@ -86,10 +86,10 @@ Section "Dummy Section" SecDummy
WriteUninstaller "$INSTDIR\Uninstall.exe" WriteUninstaller "$INSTDIR\Uninstall.exe"
;Read a value from an InstallOptions INI file ;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 ;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..." MessageBox MB_OK "You checked the check box, here is the MessageBox..."
SectionEnd SectionEnd

View file

@ -28,7 +28,7 @@
;-------------------------------- ;--------------------------------
;Variables ;Variables
Var TEMP Var MUI_TEMP
;-------------------------------- ;--------------------------------
;Pages ;Pages
@ -114,16 +114,16 @@ Section "Uninstall"
RMDir "$INSTDIR" 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 ;Delete empty start menu parent diretories
StrCpy $TEMP "$SMPROGRAMS\$TEMP" StrCpy $MUI_TEMP "$SMPROGRAMS\$MUI_TEMP"
startMenuDeleteLoop: startMenuDeleteLoop:
RMDir ${TEMP} RMDir ${TEMP}
GetFullPathName $TEMP "$TEMP\.." GetFullPathName $MUI_TEMP "$MUI_TEMP\.."
IfErrors startMenuDeleteLoopDone IfErrors startMenuDeleteLoopDone