Re: Programmatic way to run a program as administrator in Windows 7
Thanks dglienna, but my requirement is different. i just want to do the following steps in a double click of dll.
1. run command prompt (cmd.exe) with 'run as administrator' option
2. register the dll with regsvr32 (regsvr32 [dll path])
if the user is not an administrator, he should be prompt to enter administrator password and username. After entering the same, dll should get registered with admin privileges.
Re: Programmatic way to run a program as administrator in Windows 7
You can't do that in Windows 7, as the Trusted Installer Service has to be invoked to register files
Re: Programmatic way to run a program as administrator in Windows 7
Is there any way to do this?