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
- :
- Starting and Stopping a Service in Basic MSI
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
‎May 25, 2010
09:38 AM
Starting and Stopping a Service in Basic MSI
I have a Basic MSI installation where in a Minor Upgrade, I need to stop a service, change a registry entry, and restart the service.
My plan was to call ServiceStopService and ServiceStartService in an InstallScript custom action. However, I am not clear whether this should be a Deferred custom action or not.
My plan was to call ServiceStopService and ServiceStartService in an InstallScript custom action. However, I am not clear whether this should be a Deferred custom action or not.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 25, 2010
11:23 AM
Any custom action that makes a system change should be of type "Deferred execution in system context." Only these types of custom actions are run with elevated privileges.
I am not sure whether elevated privileges are required for starting and stopping services, but I suspect that they may be. Also, if you are planning on making the registry change in your custom action as well, then this definitely would be considered a system change.
Hope this helps,
Ajay
I am not sure whether elevated privileges are required for starting and stopping services, but I suspect that they may be. Also, if you are planning on making the registry change in your custom action as well, then this definitely would be considered a system change.
Hope this helps,
Ajay
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 25, 2010
12:30 PM
Thank you for the help.
![](/skins/images/3B39CE851FDD5528C393F146EB70A2D0/responsive_peak/images/icon_anonymous_message.png)