C# Run application with administrator permission

  1. Select your project
  2. Alt+Enter(view Attribute)
  3. Off ClickOnce Security
  4. Open app.minifest which is created
  5. delete this code

delete <requestExcutionLevel level=”asInvoker” uiAccess=”false”/>

Add this code!!!!

<requestExcutionLevel level=”highestAvailable” uiAccess=”false”/>

That’s all!

댓글 남기기

이메일은 공개되지 않습니다. 필수 입력창은 * 로 표시되어 있습니다