Windows Vista中的C#.Net应用程序 [英] C#.Net application in Windows Vista
本文介绍了Windows Vista中的C#.Net应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
是否有一种方法可以在Vista中运行.Net Windows应用程序,而不会在访问某些需要管理员特权的资源时弹出UAC?
Is there a way to run a .Net Windows application in Vista without getting UAC popup while accessing some resources which require admin previlege?
我的意思是我们可以通过编程方式禁用UAC弹出窗口并同时访问系统资源吗?
I mean can we disable the UAC popup programatically and access the system resources at the same time?
请让我知道我该怎么做?
Please let me know what do I have to do for this?
此致
Krunal
推荐答案
Krunal:
不,您不能以编程方式,仅禁用UAC等.
但是,您可以手动关闭UAC并重新启动PC.
最后一个选项:
您可以修改app.manifest文件并制作您的应用,并在UAC提升模式下在具有管理员权限的情况下自动执行.
查看我的UAC指南:
Hi Krunal:
NO, you cannot programmatically, just disable UAC etc.
However, you can manually, turn off UAC and restart your PC.
And the last option:
You can modify the app.manifest file and make your app, execute automatically with administrator permission,
in UAC elevation mode.
Check out my guide to UAC: UAC: All Information Developers need about the User Account Control (UAC).
I hope this information was helpful...
Have a nice day...
Best regards,
Fisnik
这篇关于Windows Vista中的C#.Net应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文