checking for running programs/services

For all your non-technical questions.
Post Reply
Will

checking for running programs/services

Post by Will »

Is there some way to simply check if a process or service is running or not?
Also, does to IA provide a direct way to check if a service is installed? From what I understand they are listed under HKLM\\SYSTEM\\CurrentControlSet\\Services, so I can check by reading from the registry if there is no other way.

Thanks.
sinan
Site Admin
Posts: 1037
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Post by sinan »

I believe you can use WinAPI functions to obtain that information, but InstallAware does not have a built-in mechanism for that as yet (although you could author a plug-in for it in your favorite programming language).

You may call WinAPI functions directly, using the Call DLL Function scripting command.
Bugger
Posts: 35
Joined: Mon Nov 14, 2005 6:53 pm

Post by Bugger »

Has anyone come up with an easy solution to this problem?

If not, I can build a small utility to determine this, but it'd be nice to have a cleaner implementation.
sinan
Site Admin
Posts: 1037
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Post by sinan »

Not a built-in way yet...sorry.
MikeFieger
Posts: 52
Joined: Thu Jan 26, 2006 9:09 am

Post by MikeFieger »

Hi!

This feature would really be useful, maybe you could include in one of the next releases? :)
CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Post by CandiceJones »

Its been added in! The commands Check Service and Check Process let you check for services and processes.
Candice Jones
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
MikeFieger
Posts: 52
Joined: Thu Jan 26, 2006 9:09 am

Post by MikeFieger »

Thank you!
Post Reply