Improve deletion of the Sandboxie folder

This commit is contained in:
isaak654 2023-06-17 23:45:03 +02:00 committed by GitHub
parent 02b39d4fb9
commit 3770420920
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 6 deletions

View File

@ -1247,14 +1247,23 @@ Function DeleteProgramFiles
StrCmp $DeleteSandboxieIni "N" SkipDeleteSandboxieIni StrCmp $DeleteSandboxieIni "N" SkipDeleteSandboxieIni
Delete "$INSTDIR\${SANDBOXIE_INI}" Delete "$INSTDIR\${SANDBOXIE_INI}"
Delete "$WINDIR\${SANDBOXIE_INI}" Delete "$WINDIR\${SANDBOXIE_INI}"
SkipDeleteSandboxieIni: SkipDeleteSandboxieIni:
; ;
; Delete installation folder ; Delete installation folder
; ;
ClearErrors
RMDir "$INSTDIR" RMDir "$INSTDIR"
IfErrors 0 SkipDeleteDir
Sleep 1000
RMDir "$INSTDIR"
SkipDeleteDir:
ClearErrors
FunctionEnd FunctionEnd
;---------------------------------------------------------------------------- ;----------------------------------------------------------------------------