当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
POE交换机全方位解读(中)
数组与字符串11-反转字符串
权限管理 UGO 、 ACL 、特殊权限
802.1AS的BMCA(最佳主时钟选举)理解
2. What is the difference between Exception and Error?
新手学习3DMAX游戏建模,该如何锻炼思维?请看下面
Typora
三、final、finally、 finalize有什么不同?
classpath: comparison with classpath*
二层交换机,三层交换机,路由器内容总结记录
二分查找2 - x的平方根
Prometheus monitors container, pod, email alerts
小程序动态加载分包文件及根路径处理
【测试基础】bug分级、测试流程、ISO9126质量模型
3d建模师为什么不建议入行
使用JSP实现简单的登录注册功能,并且使用Session跟踪用户登录信息
servlet学习(七)ServletContext
2021-06-15
守望先锋英雄角色模型分享,obj文件+材质贴图,3dmax游戏建模
NIO知识汇总 收藏这一篇就够了!!!