Link to home
Start Free TrialLog in
Avatar of narayanan_mahalingam

asked on

Problem with regsvr32 on Vista with UAC

When I try to register a dll with UAC on  Vista, I get the error
the call to DllRegisterServer failed with error code 0x80070005.
If I start the cmd prompt with Run As Administrator, regsvr32 succeeds. I need to initiate this regsvr32 programmatically thru code. How do I run this regsvr32 call under admin privileges.
Avatar of jlindler

You have to elevate permissions to do this unless you turn off UAC (not really the best idea).    What kind of code are you attempting to use?
Avatar of narayanan_mahalingam


I have a third party com dll that has to be registered using regsvr32 command.
Turning off UAC is not an option...

How are deploying it?
thru an installer developed on dev studio 2010
Avatar of Todd Gerbert
Todd Gerbert
Flag of United States of America image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Running the installer under 'Run as administrator' fixed the problem..