Windows窗体运行管理员权限 [英] windows form runs on admin rights

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

问题描述





我已经创建了windows表单应用程序。

我已安装它进行测试。

它在Windows 7和xp中运行正常,但是在vista中它要求为每个新的程序启动以管理员身份运行。

帮我解决这个问题....

解决方案

这是因为UAC在Vista中打开并在Windows 7计算机中关闭。



这很容易修复:C#manifest run as administrator [ ^ ]


关于同一主题的更多链接 -

使您的应用程序UAC意识到 [ ^ ]

添加清单来控制应用程序Vista UAC行为 [ ^

hi,

I have created windows form application.
I have installed it for testing.
It runs fine in windows 7 and xp but in vista it is asking for "Run As Administrator" for every new start of program.
help me to sort this out....

解决方案

That's because UAC is turned on in Vista and turned off in your Windows 7 machine.

It's easy enough to fix:
"C# manifest run as administrator"[^]


Some more links on the same topic -
Making Your Application UAC Aware[^]
Add a manifest to control your application Vista UAC behavior[^]


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

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