如何防止 Vista 要求对 patch.exe 进行提升? [英] How to prevent Vista from requiring elevation on patch.exe?

查看:43
本文介绍了如何防止 Vista 要求对 patch.exe 进行提升?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

[很抱歉,这不是直接的编程问题.但我最近切换到一台新的 Vista 机器,在那里我保持启用 UAC(请不要告诉我禁用它,这不是一个选项).]

[I'm sorry that this isn't directly a programming question. But I have recently switched to a new Vista machine where I am keeping UAC enabled (please don't tell me to disable it, it's not an option).]

每次我运行 gnu 的 patch.exe 时,我都会从 Vista 中获得一个提升对话框.如果我将 patch.exe 重命名为 foo.exe 它不会这样做,所以我认为这是 Vista 的启发式"之一.

Every time I run gnu's patch.exe I get an elevation dialog from Vista. If I rename patch.exe to foo.exe it does not do this, so I assume this is one of Vista's "heuristics".

有谁知道如何禁用它?这让我很抓狂,而 Google 帮不上忙.

Does anyone know how to disable this? It's driving me nuts and the Googles aren't helping.

或者我应该为 patch.exe 添加一个清单来告诉系统不要尝试提升它?这行得通吗,如果行得通,你如何做出这样的清单?

Or should I add a manifest just for patch.exe to tell the system NOT to try to elevate this? Will that work, and if so how do you make such a manifest?

非常感谢,到目前为止我一直在用头撞墙一个小时.

Thanks so much, been banging my head against the wall for an hour on this so far.

推荐答案

来自:http://social.msdn.microsoft.com/Forums/en-US/windowsgeneraldevelopmentissues/thread/bf4f7dfa-5553-41d3-9c8e-311ee4a88599/

如果您可以将清单添加到受影响的可执行文件声明了asInvoker"的requestedExecutionLevel它应该停止提示.

If you can add a manifest to the affected executable declaring a requestedExecutionLevel of 'asInvoker' it should stop prompting.

有关 UAC 架构和转换现有应用程序以使其正常工作的相关指南(靠近页面底部五分之一):

Associated guide on UAC architecture and converting existing applications so they work correctly (near the bottom fifth of the page):

http://technet.microsoft.com/en-us/library/cc709628.aspx

最后,如何编写这样的清单:

Lastly, how to write such a manifest:

http://www.google.com/search?q=writing+a+uac+manifest

-亚当

这篇关于如何防止 Vista 要求对 patch.exe 进行提升?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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