如何可靠是增加的应用程序清单,以确保在Windows XP中,Vista和7提升的权限? [英] How reliable is adding an application manifest to ensure elevated privileges across windows xp, vista and 7?

查看:183
本文介绍了如何可靠是增加的应用程序清单,以确保在Windows XP中,Vista和7提升的权限?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何稳定是这种方法确保启动时,我的管理应用程序请求管理员权限:

How stable is this method to ensure that my admin application requests admin privileges when launching:

< requestedPrivileges的xmlns =瓮:架构 - 微软COM:asm.v3>
    < requestedExecutionLevel水平=requireAdministratoruiAccess =FALSE/>
< / requestedPrivileges>

<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
</requestedPrivileges>

这可以很好的Windows 7,但我没有获得XP和Vista所以不能说。

This works well on Windows 7 but I do not have access to XP and Vista so cannot tell.

推荐答案

通过指定一个清单,你告诉Windows(Vista或7),如果一个标准的用户(管理员以及与启用UAC)试图执行这个程序,UAC提示应该会出现。如果没有抬高,预期这个程序将无法正常工作。

By specifying that manifest, you tell Windows (Vista or 7), if a standard user (admin as well with UAC enabled) tries to execute this app, UAC prompt should appear. Without elevation, this app won't work as expected.

Windows Vista和Windows 7中可以处理这个正确的,因为这就是为什么UAC的设计。

Both Windows Vista and Windows 7 can handle this properly, as that's why UAC is designed.

对于Windows XP,一个标准的用户需要使用RunAs的手动来执行你的应用程序作为管理员,而管理员用户可以直接运行它。没有UAC在Windows XP中,并回落到旧的行为很长一段时间的Windows开发者熟悉。

For Windows XP, a standard user needs to use runas manually to execute your app as admin, while an admin user can run it directly. There is no UAC on Windows XP, and it falls back to the old behaviors long time Windows developers familiar with.

要测试出的Windows XP,则应该使用Windows XP模式, HTTP:/ /www.microsoft.com/windows/virtual-pc/download.aspx

To test out Windows XP, you should use Windows XP mode, http://www.microsoft.com/windows/virtual-pc/download.aspx

这篇关于如何可靠是增加的应用程序清单,以确保在Windows XP中,Vista和7提升的权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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