mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Installer: Fixed cleanup of write testing with portable installs
This commit is contained in:
parent
fe82e87b97
commit
ccd3c10248
@ -203,9 +203,9 @@ Function .onInit
|
||||
CreateDirectory "$INSTDIR"
|
||||
WriteINIStr "$INSTDIR\writetest~.rm" "1" "1" "1"
|
||||
Delete "$INSTDIR\writetest~.rm"
|
||||
RMDir "$INSTDIR"
|
||||
|
||||
${If} ${Errors}
|
||||
RMDir "$INSTDIR"
|
||||
SetErrorLevel ${ERROR_WRITEFAIL}
|
||||
Quit
|
||||
${EndIf}
|
||||
@ -467,13 +467,15 @@ Function PageOptionsOnLeave
|
||||
ClearErrors
|
||||
CreateDirectory "$0"
|
||||
WriteINIStr "$0\writetest~.rm" "1" "1" "1"
|
||||
Delete "$0\writetest~.rm"
|
||||
|
||||
${If} ${Errors}
|
||||
Delete "$0\writetest~.rm"
|
||||
RMDir "$0"
|
||||
MessageBox MB_OK|MB_ICONEXCLAMATION "$(WRITEERROR)"
|
||||
Abort
|
||||
${EndIf}
|
||||
|
||||
RMDir "$0"
|
||||
${EndIf}
|
||||
|
||||
StrCpy $INSTDIR $0
|
||||
|
Loading…
Reference in New Issue
Block a user