cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
bornali
Level 5

test to see if a service is installed and/or running

Hi All,

my issue is similar to http://community.installshield.com/showthread.php?t=99315&highlight=check+windows+service+started
but it is an old thread and the link there to doc is not available. I am using IS2009, basic MSI.

Can someone please tell me what i need to do to check if a certain service is running and if it is, then not proceed with the installation (it needs to be stopped by the user), else proper deployment does not occur.
Note the installer should not do the start/stop. I just want the installation to stop (with a message) to the user if that service is running. Also if possible to first check if the app (of windows service) was installed.

thank you.
Labels (1)
0 Kudos
(1) Reply
J_anitha
Level 8

You can use ServiceGetServiceState(). You will get more information on this in Help.
0 Kudos