From 0a4fd53b8ffada8b19d0ed1782df52b325c2160b Mon Sep 17 00:00:00 2001 From: isaak654 Date: Sun, 17 Nov 2024 03:05:10 +0100 Subject: [PATCH] Improve deletion of leftovers --- Installer/Sandboxie-Plus.iss | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Installer/Sandboxie-Plus.iss b/Installer/Sandboxie-Plus.iss index 184c4a1d..5b8f37a1 100644 --- a/Installer/Sandboxie-Plus.iss +++ b/Installer/Sandboxie-Plus.iss @@ -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;