1

How do I preset the output exe with the highest privilege checked? I am having issues for the application running on Windows 7 or Windows 2008, if the user did not select Run As Administrator, the application crashed.

Is there a way to preset the privilege?

Regards

PlayKid

Joel Coehoorn
  • 399,467
  • 113
  • 570
  • 794
PlayKid
  • 871
  • 2
  • 10
  • 21
  • Look at [this](http://stackoverflow.com/questions/2282448/windows-7-and-vista-uac-programatically-requesting-elevation-in-c/2282613#2282613) answer – Jonas Stensved Jul 28 '11 at 12:06

1 Answers1

0

The recommended approach is to add a manifest which requests Administrator privileges: http://msdn.microsoft.com/en-us/library/bb756929.aspx

Cosmin
  • 21,216
  • 5
  • 45
  • 60