0

I have a very basic C# Console App. By clicking the exe I run it. But I want to develop a system where this exe will always run in Administrator mode automatically. How can I do this?

LazyLoading
  • 121
  • 4
  • 9
  • 2
    http://stackoverflow.com/questions/2818179/how-to-force-my-net-application-to-run-as-administrator-on-windows-7 – or hor Apr 29 '16 at 10:49
  • I dunno a way, though, I will ask you why you want such a thing. Imagine your program as a virus and the program set to run in admin mode. I cannot imagine the outcome. – Ravi Tiwari Apr 29 '16 at 10:50
  • Add an [Application Manifest](http://stackoverflow.com/questions/6050478/how-do-i-create-edit-a-manifest-file) to your project, then set `requestedExecutionLevel ` to `"requireAdministrator"` – raidensan Apr 29 '16 at 10:50

0 Answers0