Skip to content

Commit

Permalink
Merge pull request #453 from jeanmichel-nwsb/Issue-4172-handle-proces…
Browse files Browse the repository at this point in the history
…s-name-terminated-with-.exe

Issue 4172: handle processes names ending with .exe
  • Loading branch information
dscho authored Dec 19, 2022
2 parents f6041a7 + c6b8a55 commit 7d9f3ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion installer/modules.inc.iss
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,7 @@ var
AppList:array of RM_PROCESS_INFO;
ReasonList:IdList;
Success:DWORD;
ProcessName:String;
begin
SetArrayLength(Processes,0);
Result:=0;
Expand Down Expand Up @@ -537,7 +538,8 @@ begin
Processes[Have].ID:=AppList[i].Process.dwProcessId;
Processes[Have].Name:=ArrayToString(AppList[i].strAppName);
Processes[Have].Restartable:=AppList[i].bRestartable;
if ('ssh-add'=Processes[Have].Name) or ('ssh-agent'=Processes[Have].Name) or ('ssh-pageant'=Processes[Have].Name) or ('gpg-agent'=Processes[Have].Name) or ('scdaemon'=Processes[Have].Name) then
ProcessName:=ChangeFileExt(Processes[Have].Name, '');
if ('ssh-add'=ProcessName) or ('ssh-agent'=ProcessName) or ('ssh-pageant'=ProcessName) or ('gpg-agent'=ProcessName) or ('scdaemon'=ProcessName) then
Processes[Have].ToTerminate:=True;
end;
Result:=Handle;
Expand Down

0 comments on commit 7d9f3ad

Please sign in to comment.