I have created a VB6 dll named 'PDFConversion.dll' and wanted to register in windows7.
But it fails with access denied error. How do I register it as administrator(ie. Run as administrator') programmatically without the user having to right-click the .dll and say Run As Administrator.
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.