Merge pull request #4374 from sandboxie-plus/isaak654-cleanup

Improve deletion of leftovers
This commit is contained in:
DavidXanatos 2024-11-21 21:43:39 +01:00 committed by GitHub
commit 02c101d789
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 0 deletions

View File

@ -139,6 +139,8 @@ Filename: "{app}\Start.exe"; Parameters: "open_agent:sandman.exe"; Description:
Type: dirifempty; Name: "{app}"
Type: files; Name: "{localappdata}\{#MyAppName}\addons.json"
Type: dirifempty; Name: "{localappdata}\{#MyAppName}"
Type: files; Name: "{localappdata}\Temp\qtsingleapp-sandma-*"
Type: dirifempty; Name: "{localappdata}\Temp\sandboxie-updater"
[Messages]
@ -642,6 +644,14 @@ begin
Log('Debug: SbieCtrl /uninstall');
Exec(ExpandConstant('{app}\sbiectrl.exe'), '/uninstall', '', SW_SHOWNORMAL, ewWaitUntilTerminated, ExecRet);
end;
if RegKeyExists(HKCU, 'Software\Xanasoft\{#MyAppName}') then begin
Log('Debug: RegDeleteKeyIncludingSubkeys HKCU\Software\Xanasoft\Sandboxie-Plus');
RegDeleteKeyIncludingSubkeys(HKCU, 'Software\Xanasoft\{#MyAppName}');
end;
if RegKeyExists(HKCU, 'Software\Xanasoft') then begin
Log('Debug: RegDeleteKeyIfEmpty HKCU\Software\Xanasoft');
RegDeleteKeyIfEmpty(HKCU, 'Software\Xanasoft');
end;
end;