windows 可以编辑 InstallShield setup.exe 的清单文件吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2931789/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 14:32:47  来源:igfitidea点击:

Can one edit an InstallShield setup.exe's manifest file?

windowsinstallshieldmanifestinstallshield-2009

提问by DNS

I'm running into the Windows Vista/7 Program Compatibility Assistant problem described here:

我遇到了此处描述的 Windows Vista/7 程序兼容性助手问题:

"This program might not have installed correctly" message in Windows 7 RC

Windows 7 RC 中的“此程序可能未正确安装”消息

The solution (backed-up by similar questions elsewhere, and MSDN), is apparently to add a 'compatibility' section to setup.exe's manifest. InstallShield 10 SP1 does this automatically, but unfortunately I only have InstallShield 2009.

解决方案(由其他地方的类似问题和 MSDN 提供支持)显然是在 setup.exe 的清单中添加一个“兼容性”部分。InstallShield 10 SP1 会自动执行此操作,但不幸的是我只有 InstallShield 2009。

How would I go about editing the manifest? Is there a way to do this programmatically, so I can integrate it into my build?

我将如何编辑清单?有没有办法以编程方式执行此操作,以便我可以将其集成到我的构建中?

回答by Michael Urman

Look for the files named setupexe.*.manifest (Support or Program subfolder of InstallShield, I think) and edit or replace them. The appropriate one is selected and incorporated into setup.exe during build.

查找名为 setupexe.*.manifest 的文件(我认为是 InstallShield 的 Support 或 Program 子文件夹)并编辑或替换它们。在构建期间选择适当的一个并将其合并到 setup.exe 中。

回答by saschabeaumont

Yes, just use mt.exefrom the Windows SDK.

是的,只需使用Windows SDK 中的mt.exe

回答by OlimilOops

a manifest file could be outside the exe, in the same path, or inside, in the resources of an exe.

清单文件可以在 exe 外部、相同路径中或内部,在 exe 的资源中。

回答by user281806

There is this tool from InstallShieldthat can update the manifest. Or a direct link here: isreman. The provided example manifests do not supply the application compatibility section, though.

有了这个来自的InstallShield工具,可以更新清单。或者这里的直接链接:isreman。但是,提供的示例清单不提供应用程序兼容性部分。