The program I'm working on has a post-build event to register an add-in for a CAD package. However, regsvr32 won't run on my 64 bit Vista system as is because (I'm assuming) of UAC.
If I run cmd.exe with the Run as administrator option, I can run regsvr32 then.
Any suggestions on how I could elevate the privilege from the post-build event? One possibility is run VS as admin, but are there any side effects to that? Also, double-clicking a sln file would subvert that option. Another is to disable UAC, but I'm trying to avoid that.
If I run cmd.exe with the Run as administrator option, I can run regsvr32 then.
Any suggestions on how I could elevate the privilege from the post-build event? One possibility is run VS as admin, but are there any side effects to that? Also, double-clicking a sln file would subvert that option. Another is to disable UAC, but I'm trying to avoid that.