当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
【C语言】输出100~200之间的素数/质数(3种方法)
基于南航app直减自动出票
2-php学习笔记之控制语句,函数
【七夕特效】 -- 满屏爱心
PHP二维数组保留键值去重
VI和VIM编辑指令
树——二叉排序树(BST)
Oracle常用命令-基本命令
ARP协议及简单路由器原理(1)
ZBrush+Substance制作蜥蜴巫婆医生!
数组与字符串12-数组拆分
ue4学习日记3(设置操控角色,地形)
VS项目配置管理器
802.1AS 延迟测量理解
Prometheus monitors container, pod, email alerts
阿里云短信服务的使用(创建,测试笔记)
3D建模为什么会变得无处不在
【C语言】关于数组传参问题/首地址
gotests自动生成测试用例
界面仅允许扫码枪录入禁止手工键盘输入