可以编辑 InstallShield setup.exe 的清单文件吗?
我遇到了此处描述的 Windows Vista/7 程序兼容性助手问题:
解决方案(由其他地方的类似问题和 MSDN 支持)显然是添加“兼容性” setup.exe 清单的部分。 InstallShield 10 SP1 自动执行此操作,但不幸的是我只有 InstallShield 2009。
我将如何编辑清单?有没有办法以编程方式执行此操作,以便我可以将其集成到我的构建中?
I'm running into the Windows Vista/7 Program Compatibility Assistant problem described here:
"This program might not have installed correctly" message in 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.
How would I go about editing the manifest? Is there a way to do this programmatically, so I can integrate it into my build?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
查找名为 setupexe.*.manifest 的文件(我认为是 InstallShield 的 Support 或 Program 子文件夹)并编辑或替换它们。在构建过程中选择合适的选项并将其合并到 setup.exe 中。
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.
是的,只需使用 Windows SDK 中的 mt.exe 即可。
Yes, just use mt.exe from the Windows SDK.
InstallShield 提供的工具可以更新清单。或者直接链接在这里:isreman。不过,提供的示例清单不提供应用程序兼容性部分。
There is this tool from InstallShield that can update the manifest. Or a direct link here: isreman. The provided example manifests do not supply the application compatibility section, though.
清单文件可以位于 exe 外部的同一路径中,也可以位于 exe 资源内部。
a manifest file could be outside the exe, in the same path, or inside, in the resources of an exe.