Skip to content
⌘ NSIS Forum Archive

Prompt to Kill Process if Found Open

5 posts

TheMetsAreBad#

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?
Joost Verburg#
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.
TheMetsAreBad#
Originally posted by Joost Verburg
Or another detection method based on a process name or mutex.
How would I do that?