Plug-in to terminate process based on Filename
Posted: Thu Jan 08, 2009 4:31 pm
Plug-in to Terminate Process based on filename
I have seen several post on this forum about how to terminate/kill a process based on the filename so I guess I could post my plug-in. Here is a short description on how it works:
Plug-in Description
* Terminate Process takes a application filename as parameter, this filename is then used to find any running processes. All found processes based on this filename will be terminated automatically.
* Terminate Process enumerates all running process and uses the Windows API TerminateProcess to terminate the process.
* Terminate Process will unconditionally kill the process without any possibility for the user to react. Keep in mind that unsaved data might get lost.
* If you compare Terminate Process with Terminate Program (included in InstallAware) Terminate Program will not force the application to close, Terminal Process will force a close down of the application. Another diffrence is that Terminate Program needs a Window Class Name as a parameter and Terminate Process needs a Filename.
* If no process based on the specified file was found nothing will happen. The Plug-in does NOT report any progress.
I hope someone else will find it useful.
Zims
File Attached:
setup.zip
I have seen several post on this forum about how to terminate/kill a process based on the filename so I guess I could post my plug-in. Here is a short description on how it works:
Plug-in Description
* Terminate Process takes a application filename as parameter, this filename is then used to find any running processes. All found processes based on this filename will be terminated automatically.
* Terminate Process enumerates all running process and uses the Windows API TerminateProcess to terminate the process.
* Terminate Process will unconditionally kill the process without any possibility for the user to react. Keep in mind that unsaved data might get lost.
* If you compare Terminate Process with Terminate Program (included in InstallAware) Terminate Program will not force the application to close, Terminal Process will force a close down of the application. Another diffrence is that Terminate Program needs a Window Class Name as a parameter and Terminate Process needs a Filename.
* If no process based on the specified file was found nothing will happen. The Plug-in does NOT report any progress.
I hope someone else will find it useful.
Zims
File Attached:
setup.zip