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
- :
- need to allow standard user to start/stop NT service on Vista
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
‎Feb 10, 2010
03:16 PM
need to allow standard user to start/stop NT service on Vista
I have an InstallScript project that includes the installation of a Windows NT service. I want to be able to start and stop this service on a Vista-based platform as a standard user without the need for administrator privileges. Is there something I can set in the settings for the prepackaged InstallShield NT Service object that will allow me to do this? So far I've tried playing with a couple of the flags, but with no avail. The option in the services list for starting this service is still not available when I view it as a standard user.
Or does anyone know what else I can do? :confused:
Or does anyone know what else I can do? :confused:
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 10, 2010
04:09 PM
you are running into a Windows Security issue. Standard users do not have the rights to install/ uninstall / start / stop NT services. Whoever is doing the install will have to have those rights or the install of the service will fail.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 10, 2010
05:55 PM
Lurean, thanks for your quick reply. The one installing it will indeed be required to have administrator privileges, so that's no problem for me, but my question is about starting/stopping the service later on. Granted, the default is as you say, that a standard user does not have those rights by default. But the rights can be granted by modifying the service's DACL, as confirmed in the following article:
http://windows.microsoft.com/en-us/windows-vista/Manage-services-in-Windows-Vista-from-Windows-Vista-Inside-Out
(See the section entitled, "Starting and Stopping services".)
And indeed, if you log in as a standard user, you will see that although some services don't let you start them, others do. So my question is, is there any way I can set this through InstallShield or do I need to come up with a way of doing it myself?
http://windows.microsoft.com/en-us/windows-vista/Manage-services-in-Windows-Vista-from-Windows-Vista-Inside-Out
(See the section entitled, "Starting and Stopping services".)
And indeed, if you log in as a standard user, you will see that although some services don't let you start them, others do. So my question is, is there any way I can set this through InstallShield or do I need to come up with a way of doing it myself?