From e39472964798db3c6de646b9881bfa5534dc1787 Mon Sep 17 00:00:00 2001 From: mpheath Date: Fri, 27 Aug 2021 02:10:45 +1000 Subject: [PATCH] Fix Plus upgrade install with full uninstall of service and driver --- Installer/Sandboxie-Plus.iss | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Installer/Sandboxie-Plus.iss b/Installer/Sandboxie-Plus.iss index a5bbf65b63..ff11a2dec9 100644 --- a/Installer/Sandboxie-Plus.iss +++ b/Installer/Sandboxie-Plus.iss @@ -267,6 +267,10 @@ begin Exec(ExpandConstant('{app}\kmdutil.exe'), 'stop SbieSvc', '', SW_SHOWNORMAL, ewWaitUntilTerminated, ExecRet); Exec(ExpandConstant('{app}\kmdutil.exe'), 'stop SbieDrv', '', SW_SHOWNORMAL, ewWaitUntilTerminated, ExecRet); + // uninstall the driver + Exec(ExpandConstant('{app}\kmdutil.exe'), 'delete SbieSvc', '', SW_SHOWNORMAL, ewWaitUntilTerminated, ExecRet); + Exec(ExpandConstant('{app}\kmdutil.exe'), 'delete SbieDrv', '', SW_SHOWNORMAL, ewWaitUntilTerminated, ExecRet); + Result := True; end; @@ -386,10 +390,6 @@ begin exit; end; - // uninstall the driver - Exec(ExpandConstant('{app}\kmdutil.exe'), 'delete SbieSvc', '', SW_SHOWNORMAL, ewWaitUntilTerminated, ExecRet); - Exec(ExpandConstant('{app}\kmdutil.exe'), 'delete SbieDrv', '', SW_SHOWNORMAL, ewWaitUntilTerminated, ExecRet); - // remove from autostart RegDeleteValue(HKEY_CURRENT_USER, 'Software\Microsoft\Windows\CurrentVersion\Run', 'SandboxiePlus_AutoRun');