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.
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.
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?
ASKER
I have a third party com dll that has to be registered using regsvr32 command.
Turning off UAC is not an option...
Turning off UAC is not an option...
How are deploying it?
ASKER
thru an installer developed on dev studio 2010
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Running the installer under 'Run as administrator' fixed the problem..