How does a program ask for administrator privileges?

前端 未结 4 723
忘了有多久
忘了有多久 2020-12-19 08:36

I am developing an application using vb.net. For performing some tasks the application needs administrator privileges in the machine. How to ask for the privileges during th

4条回答
  •  鱼传尺愫
    2020-12-19 09:25

    I have not done this yet but I believe you go to (in VS 2008) Project Settings -> Application Tab and click on the "View UAC Settings" button. This opens up your app.manifest file. In there is a tag which I think holds the options you're looking for. Mine has some options commented out which should get you started:

提交回复
热议问题