当前位置:网站首页>C # program with administrator rights to open by default
C # program with administrator rights to open by default
2022-08-03 06:34:00 【GuKai Jump】
1. Project Properties->Security->Enable ClickOnce Security Settings
2. Find the requestedExecutionLevel node and change the level to requireAdministrator
3. Don't rush to compile the program first, at this time the compilation will report the following error
Severity Code Description Item File Line Suppressed Status
Error ClickOnce does not support request execution level 'requireAdministrator'.ConsoleApplication1
4. Uncheck "Enable ClickOnce Security Settings" in the first step
5. There will be a UAC icon on the final generated EXE, indicating success, and the program will require administrator privileges to run when it is executed later
边栏推荐
猜你喜欢
随机推荐
宝塔负载均衡配置及nfs共享
Dynamic adjustment of web theme (2) Extraction
VI和VIM编辑指令
servlet learning (7) ServletContext
What is parametric design, let's understand it through practical operation?| SOLIDWORKS How-To Videos
数组与字符串12-数组拆分
看了都收藏的3D游戏建模全流程解析,角色模型就该这么做!
嘿!selenium自动下载driver版本,得知道一下
【C语言】关于数组传参问题/首地址
Oracle 11g静默安装
MySQL的主从复制
2021-06-14
go test执行多个文件夹下相同目录的用例
Windos 内网渗透之Token的使用
Delightful Nuxt3 Tutorial (2): Build a Blog Quickly and Easily
二分查找3 - 猜数字大小
VS Project Configuration Manager
JumpServer如何传输文件以及复制剪切板
界面仅允许扫码枪录入禁止手工键盘输入
新手学习3DMAX游戏建模,该如何锻炼思维?请看下面