sc.exe in vista .... another example of shelling commands in vista ...
Updated: 21 May 2010 | 4 comments
I have ended up in a scenario in Vista again ..... In Vista a MSI is already installed successfully, with a service "ABC" running fine. now another user logs in as a "An administrator" in vista (i.e the user who was created by the administrator himself) ... the new msi wants to stop the already running service "ABC" to actually copy new content. But the attempt was un-successfull as strict vista security complains "Access is denied". The service is not able to be stopped by the user who wants to run the upgrade to the already installed MSI. --------------------------------------------------------------------------------------------------------------------------------------------------------- I believe strict security of vista stops the user from stopping the service if, sc.exe Stop "ABC" was issued ... vista doesn't stop the service. is there a way to run a in-process command or another way to ensure that the service in stopped by using a already available command in Vista or using any wise custom actions. Any further advice is highly appreciated. With Regards Prafful Sharma
Discussion Filed Under:
Comments
Does this work with UAC turned off?
With UAC turned on, Vista requires elevation for any tasks that require administrative access, as vista administrators only have standard user permissions by default.
(hence the "Run as Administrator" right click option when starting apps from the start menu).
You may therefore need to run the upgrade as an EXE using a manifest to "Run as Administrator"
If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.
works with UAC turned off
This works fine with UAC turned off. "run as administrator" may be an extra effort to install the product. If there was a custom action which could be utilized to automatically launch run as administrator or either, it would simplify end user experience. Thanks
If only...
"If there was a custom action which could be utilized to automatically launch run as administrator or either,
it would simplify end user experience."
That would make it easy for virus writers to circumvent Vista security and install their malware without involving the user at all.
You might as well instruct your users to turn off UAC and let them install without having to make any extra effort.........
If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.
bootstrapper ....
Would you like to reply?
Login or Register to post your comment.