请求UAC海拔c# [英] Request UAC Elevation c#
本文介绍了请求UAC海拔c#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试在win-xp中打开我的应用程序时,它工作正常,但是当我在win7上尝试它时,它说对路径(路径位置)的访问被拒绝,除非我以管理员身份打开它,那么我如何才能让我的应用程序管理员不提倡的权利
Hi when i try to open my app in win-xp it works fine but when i try it on win7 it says access to path (path location) is denied unless i open it as administrator so how can i give my app administrator rights without promoting
谢谢
Thank you
推荐答案
如果不通过UAC提升,则无法获得具有UAC的系统上的管理员权限.
You can't gain administrator rights on a system with UAC without passing through UAC elevation.
您的选择是:
- 显示您的应用程序,使其始终以管理员身份运行.用户每次启动应用程序时都会看到UAC对话框.
- 将需要管理员权限的应用程序部分分为一个单独的过程,只需要对该部分进行提升.
- 重新设计您的应用程序,使其不需要管理员权限.
在这些选项中,您应该首选3.如果无法实现,则2优于1.
Of these options you should prefer 3. If you can't achieve that then 2 is better than 1.
这篇关于请求UAC海拔c#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文