当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
servlet learning (7) ServletContext
数据库OracleRAC节点宕机处理流程
DNS常见资源记录类型详解
零基础小白想往游戏建模方向发展,3D游戏建模好学嘛?
IP数据包的格式(1)
Windos 内网渗透之Token的使用
六、对比Vector、ArrayList、LinkedList有何区别?(设计、性能、安全)
使用Contab调用Shell脚本执行expdp自动备份Oracle
【随笔】我为啥想写无关紧要的随笔?
TFS(AzureDevOps)取消离职人员的签出项
ARP协议及简单路由器原理(1)
什么是国密SSL协议?国密证书与传统SSL证书有什么区别?
3D游戏建模师在国内的真实现状,想转行,先来看看!
Podman一篇就学会
Prometheus monitors container, pod, email alerts
【C语言】斐波那契数列
VLAN虚拟局域网技术
9. Please introduce the class loading process, what is the parent delegation model?
2021-06-14
SSL证书验证怎么做?有几种方式?