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
- :
- Re: Trying to stop a service
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
‎Apr 12, 2010
07:48 AM
Trying to stop a service
I have an InstallShield msi project and it works ok. When I make an upgrade to the program, I would like to stop a service.
I can stop the service, but I get a warning message, where I have to select OK to proceed with the installation.
How do I get rid of this message? I just want the program to shut the service down and proceed.
Cheers
Kellelein
I can stop the service, but I get a warning message, where I have to select OK to proceed with the installation.
How do I get rid of this message? I just want the program to shut the service down and proceed.
Cheers
Kellelein
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 22, 2010
05:06 AM
Use SystemFolder ^ "taskkill.exe" in LaunchAppAndWait() for stopping the service.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 20, 2010
09:22 AM
with taskkill you kill a service, you don't stop it correctly.
You need to use the functions 'ServiceGetServiceState' and 'ServiceStopService'.
These functions shouldn't popup a dialog.
You need to use the functions 'ServiceGetServiceState' and 'ServiceStopService'.
These functions shouldn't popup a dialog.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 21, 2010
03:00 AM
I use LaunchApp with "net stop " for this purpose. Doesn't pop up anything.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 26, 2010
03:09 AM
I currently call a script, who execute
ServiceStopService()
ServiceRemoveService()
This works fine, but I can't figure out, how to get rid of the message, when the user uninstalls the program 😞
How do I call the script, when the user uninstalls the program???
Now I insert the script in the Sequence -> Installation -> Execute. This works fine for install, but not for uninstall 😞
Kellelein
ServiceStopService()
ServiceRemoveService()
This works fine, but I can't figure out, how to get rid of the message, when the user uninstalls the program 😞
How do I call the script, when the user uninstalls the program???
Now I insert the script in the Sequence -> Installation -> Execute. This works fine for install, but not for uninstall 😞
Kellelein