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
Plug-in to terminate process based on Filename
Exactly what I needed!
I had a requirement to remove a process running as a System Tray Icon and Terminate Program didn't seem to work (looking for a window handle?).
Thanks, this works great!
Thanks, this works great!
Failed To compile plug-in action
Hello!
I am trying to use the plug-in you provided rather than build my own, but I get an "Error during build: Failed to compile plug-in action: Terminate Process"
I am using InstallAware 9.04. Any idea what I might be doing wrong?
Thanks for your help!
I am trying to use the plug-in you provided rather than build my own, but I get an "Error during build: Failed to compile plug-in action: Terminate Process"
I am using InstallAware 9.04. Any idea what I might be doing wrong?
Thanks for your help!
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
InstallAware 9.x now uses a reserved parameter in the plug-in fields which lets plug-ins abort builds. Please contact the plug-in vendor to ensure the plug-in is making correct use of this field. We did try and notify each vendor for the 9.x release well before launch but looks like there's a few we missed out on - sorry!
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
Re: Plug-in to terminate process based on Filename
Hey everyone,
I don't know if the original author of this plug-in is still active in the InstallAware community but it would be awesome if we could get an updated version that works with InstallAware 9 generated. I'm kind of surprised this doesn't come up more often because when performing an upgrade, it's nice to be able to determine if something is running and then close it for the user. We are working on an application with a client piece that could be deployed on hundreds or even thousands of workstations. Being able to run silently and have it close this stuff down would save users a ton of headaches.
If the original author isn't around, would the InstallAware development team ever consider putting such functionality into a future release? The current terminate process is useful in some cases but can't deal with system tray applications because the Window Title isn't there until a window is active.
Thanks!
-Jeff
I don't know if the original author of this plug-in is still active in the InstallAware community but it would be awesome if we could get an updated version that works with InstallAware 9 generated. I'm kind of surprised this doesn't come up more often because when performing an upgrade, it's nice to be able to determine if something is running and then close it for the user. We are working on an application with a client piece that could be deployed on hundreds or even thousands of workstations. Being able to run silently and have it close this stuff down would save users a ton of headaches.
If the original author isn't around, would the InstallAware development team ever consider putting such functionality into a future release? The current terminate process is useful in some cases but can't deal with system tray applications because the Window Title isn't there until a window is active.
Thanks!
-Jeff
Re: Plug-in to terminate process based on Filename
I'm marking this as a feature request in case we don't hear back from the original developer of the plugin.
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.
Re: Plug-in to terminate process based on Filename
Are there any news concerning the implementation of this request?
It is really important for us!
It is really important for us!
-
- Posts: 35
- Joined: Fri May 13, 2011 1:24 am
Re: Plug-in to terminate process based on Filename
I need this too.
Return to “Plug-In Development”
Who is online
Users browsing this forum: No registered users and 121 guests