Kill process that doesn't have a window.

Post specialized setup scripts you have created here.
Post Reply
hess_joel
Posts: 47
Joined: Mon Nov 21, 2005 1:52 pm
Location: Eden Prairie, MN

Kill process that doesn't have a window.

Post by hess_joel »

How can I terminate a process at uninstall time that doesn't have a UI associated with it?
Gizm0
Posts: 339
Joined: Wed Nov 09, 2005 8:47 pm

Post 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.
Panagiotis Kefalidis
Software Design Team Lead
\"In order to succeed, your desire for success should be greater than your fear of failure\"
Install[b]Aware[/b] Software Corporation
Edhy
Posts: 138
Joined: Sun Jul 31, 2005 4:09 pm
Location: New York, USA

Post 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!
Edhy Rijo
Thom Child and Family Services
Post Reply