Windows 7 EXE 文件名以“Patch"开头,无法运行 [英] Windows 7 EXE filename starts with "Patch", won't run

查看:69
本文介绍了Windows 7 EXE 文件名以“Patch"开头,无法运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能的重复:
如何防止 Vista 要求对 patch.exe 进行提升?

我的一个程序叫做PatchCompiler.exe".它在控制台中运行.或者更确切地说,它不会运行,因为 Windows 7 会以不同的方式对待 EXE 文件,如果它在名称中的任何位置都有补丁",需要提升权限(你想允许来自未知发布者的以下程序对此进行更改吗?计算机?").即使我授予此权限,它也会在一个临时控制台中运行,该控制台在我看到其输出之前就消失了.

One of my programs is called "PatchCompiler.exe". It runs in the console. Or rather, it doesn't run, because Windows 7 treats an EXE file differently if it has "Patch" anywhere in its name, requiring elevated permission ("Do you want to allow the following program from an unknown publisher to make changes to this computer?"). Even if I grant this permission, it runs in an ephemeral console that disappears before I can see its output.

是的,我知道我可以通过重命名我的程序来解决这个问题.但它编译补丁...

Yes, I know I could fix this problem by renaming my program. But it compiles patches...

有人知道如何改变这种烦人的行为吗?

Does anybody know how to change this annoying behaviour?

编辑添加:只是为了让自己清楚:我不希望我的程序以提升的状态运行!谁知道我在里面留下了什么错误?

Edited to add: Just to make myself clear: I don't want my program to run with elevated status! Who knows what bugs I left in it?

推荐答案

附加应用程序清单 包括

<requestedExecutionLevel level="asInvoker" uiAccess="true"/>

这篇关于Windows 7 EXE 文件名以“Patch"开头,无法运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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