c sharp exe should ask for “run as administrator” prompt when opened

后端 未结 4 736
情歌与酒
情歌与酒 2021-02-09 07:20

I am having an exe generated by a c sharp program. when i run the exe, i want an UAC prompt to appear with an option to run the exe as administrator. I have seen examples of run

4条回答
  •  灰色年华
    2021-02-09 07:29

    in visual studio, add an "Application Manifest File" (if you don't have one), then add in it, to request administrator privileges when running the application.

提交回复
热议问题