Skip to content

Commit

Permalink
Close Sandman.exe before removing Sandboxie.ini to prevent SBIE1401 n…
Browse files Browse the repository at this point in the history
…otification
  • Loading branch information
mpheath committed Nov 2, 2021
1 parent 2c644d3 commit 68fa37d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Installer/Sandboxie-Plus.iss
Expand Up @@ -500,6 +500,11 @@ begin
IDNO: TaskRet := 2;
end;
if TaskRet > 1 then begin
Log('Debug: Taskkill /IM Sandman.exe /F');
Exec(ExpandConstant('{sys}\taskkill.exe'), '/IM Sandman.exe /F', '', SW_HIDE, ewWaitUntilTerminated, ExecRet);
end;
if TaskRet > 2 then begin
Log('Debug: Sandman /RemoveSandboxes');
Exec(ExpandConstant('{app}\Sandman.exe'), '/RemoveSandboxes', '', SW_SHOWNORMAL, ewWaitUntilTerminated, ExecRet);
Expand Down

1 comment on commit 68fa37d

@mpheath
Copy link
Collaborator Author

@mpheath mpheath commented on 68fa37d Nov 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Notification window can popup during Sandboxie-Plus uninstall if Sandboxie.ini is removed while Sandman.exe is still running. Also, Sandman.exe should not be running if remove sandboxes is done with another instance of Sandman.exe.

Please sign in to comment.