Page 1 of 1

Kill process that doesn't have a window.

Posted: Wed Oct 18, 2006 1:28 pm
by hess_joel
How can I terminate a process at uninstall time that doesn't have a UI associated with it?

Posted: Thu Oct 19, 2006 5:43 am
by Gizm0
Well you are not lucky,i'm out of town and i don't have my InstallAWARE here, so i can create a script for you.. It's quite easy actually, you have to call an API to do it.. It's TerminateProcess and before that you have to get the process handle by it's process name. To do that you have to EnumProcesses ( read here -> http://msdn.microsoft.com/library/defau ... cesses.asp ) and get the PIDs and then using the pids to get the process name/handle.

Posted: Mon Jun 25, 2007 9:47 am
by Edhy
Gizm0 wrote:Well you are not lucky,i'm out of town and i don't have my InstallAWARE here, so i can create a script for you.. It's quite easy actually, you have to call an API to do it.. It's TerminateProcess and before that you have to get the process handle by it's process name. To do that you have to EnumProcesses ( read here -> http://msdn.microsoft.com/library/defau ... cesses.asp ) and get the PIDs and then using the pids to get the process name/handle.


Hi Panagiotis,

I am new to IA and have the need to terminate a process which does not have a UI, just the ProgramName.exe.

Would you please post the exact code on how to do this in IA?

I have tried the IA Terminate Program, but that is not working for my case.

Thanks!