C#.NET: Acquire administrator rights?

后端 未结 2 781
孤街浪徒
孤街浪徒 2020-12-02 23:34

Is it possible in a C#.NET application to request administrative rights on a Windows 7 PC?

I want to be able to deploy the application via Click Once and have users

2条回答
  •  一向
    一向 (楼主)
    2020-12-03 00:11

    simply all what you need to do is to add manifest application file to your project

    simple : right click on the project , add , new item , manifest file


    and Change the

     
    

    to

     
    

提交回复
热议问题