Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to end a process using inno setup?

I want to kill a process using inno setup.i want to check whether the window is open before i start installing the setup.

can i do this by searching windows name? please help me with some sample code to kill the process

like image 565
Nithin Avatar asked Oct 27 '11 13:10

Nithin


1 Answers

in the [UninstallRun] section, you can add the following code:

Filename: {sys}\taskkill.exe; Parameters: "/f /im MyProcess.exe"; Flags: skipifdoesntexist runhidden
like image 175
jrm Avatar answered Sep 21 '22 07:09

jrm