This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- test to see if a service is installed and/or running
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 15, 2009
07:44 PM
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.
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.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 16, 2009
03:55 AM
You can use ServiceGetServiceState(). You will get more information on this in Help.