How to run regsvr32 as Administrator on Windows 7
Posted on 2011-03-10
I have the following line of code in a small vb6 app that works great on XP. On Windows 7, the regsvr32 will not work unless permissions are elevated to an Administrator. Is there any way in code to elevate to administrator and then run my code? Please give specific example. And I don't want my end users to have to launch the exe any special way other than double-clicking it. I am not opposed to hardcoding an administrator user name and password in the vb6 code.
Here's what works in XP