Skip to content

Commit

Permalink
installer: do not try to terminate/restart apps under /CLOSEAPPLICATIONS
Browse files Browse the repository at this point in the history
When `/CLOSEAPPLICATIONS` or `/FORCECLOSEAPPLICATIONS` is passed to
InnoSetup, it will handle the closing/terminating of in-use apps, and we
do not have to do anything manually.

This fixes git-for-windows/git#5250

Signed-off-by: Johannes Schindelin <[email protected]>
  • Loading branch information
dscho committed Nov 11, 2024
1 parent b099e87 commit 5f7e3de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion installer/install.iss
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ var
Caption:String;
ManualClosingRequired:Boolean;
begin
if (AppDir='') then begin
if (AppDir='') or (Pos('/CLOSEAPPLICATIONS',UpperCase(GetCmdTail))>0) or (Pos('/FORCECLOSEAPPLICATIONS',UpperCase(GetCmdTail))>0) then begin
SetArrayLength(Processes,0);
Exit;
end;
Expand Down

0 comments on commit 5f7e3de

Please sign in to comment.