Archive: Prompt to Kill Process if Found Open


Prompt to Kill Process if Found Open
I have the plugin that allows me to kill a process:

KillProcDLL::KillProc "process.exe"
What I want it to do is upon the installer startup, I want to recognize if process.exe is running, and if it is, prompt the user for if they want to shut it down or not. If they want to shut it down, it kills the process, if they don't want to shut it down, the installer closes.

How would I do this?

You need to use FindWindow

-Stu


Or another detection method based on a process name or mutex.

When using FindWindow, always use a windows class. Detecting window titles is not a reliable method.


Originally posted by Joost Verburg
Or another detection method based on a process name or mutex.
How would I do that?

Search this forum, and/or the archive.

-Stu