以管理员的权限运行C#程序 [英] running C# program as administrator's privilege

查看:99
本文介绍了以管理员的权限运行C#程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有运行需要管理员权限的命令的c#程序,在清单文件中我更新了这一行:< requestedexecutionlevel level =requireAdministratoruiaccess =false>



它不会产生任何东西,但我的命令在cmd上运行良好并且它有以下错误:

错误1 ClickOnce不支持请求执行级别'requireAdministrator'。<可能是什么原因造成的?

I have c# program that run the commands that need administrator's privilage, in manifest file i updated this line: <requestedexecutionlevel level="requireAdministrator" uiaccess="false">

It does not produce anything but my commands are working well on cmd and it has the following error:
"Error 1 ClickOnce does not support the request execution level 'requireAdministrator'."
what might be the cause?

推荐答案

请检查链接,它显示类似的问题..



http:// stackoverflow。 com / questions / 11023998 / clickonce-does-not-support-the-request-execution-level-requireadministrator [ ^ ]



希望对你有帮助..
Please check the link, it show a similar issue..

http://stackoverflow.com/questions/11023998/clickonce-does-not-support-the-request-execution-level-requireadministrator[^]

Hope it help you..


这篇关于以管理员的权限运行C#程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆