unable access service control manager

Unable to access Service Control Manager

Hi,
I am using standard Visual Studio 2005 deployment to install an application, and have a custom action that installs a device driver using the Service Control Manager. However, on Vista (beta 2) I get an "access denied" error when I call OpenSCManager, even though I allowed access in the UAC prompt.
The installation works fine in XP, and in Vista with UAP disabled.
Do I need to do something special to install a device driver? -- Thanks, Robert Tonsing -- Thanks, Robert Tonsing

Nah - just keep UAC disabled :o)
-- Zack Whittaker » ZackNET Enterprises: www.zacknet.co.uk » MSBlog on ResDev: www.msblog.org » Vista Knowledge Base: www.vistabase.co.uk » This mailing is provided "as is" with no warranties, and confers no rights. All opinions expressed are those of myself unless stated so, and not of my employer, best friend, Ghandi, my mother or my cat. Glad we cleared that up!
--: Original message follows :-- "Robert Tonsing" wrote in message

Hi,
I am using standard Visual Studio 2005 deployment to install an application, and have a custom action that installs a device driver using the Service Control Manager. However, on Vista (beta 2) I get an "access denied" error when I call OpenSCManager, even though I allowed access in the UAC prompt.
The
installation works fine in XP, and in Vista with UAP disabled.
Do I need to do something special to install a device driver? -- Thanks, Robert Tonsing -- Thanks, Robert Tonsing

Windows Vista

Topic:


Nick: