我如何让 WIX 找到 32 位和 64 位开发机器上合并模块的位置?

发布于 2024-09-05 22:30:50 字数 281 浏览 0 评论 0原文

我们使用的开发环境中,一些开发人员使用 x64 机器,一些开发人员使用 Win32 机器,而“官方”构建机器是 32 位机器。 这可能会导致问题,因为在 x64 开发计算机上,“通用”合并模块位于 C:\Program Files (x86)\Common Files\Merge Modules\,而在 Win32 计算机上,位置为 C:\Program Files\Common文件\合并模块。 有没有办法指定 WIX 的位置(在 wxs 文件中)对于所有开发平台都是相同的形式? 显然,我无法使用完整的硬编码路径,但我找不到我应该使用的路径。

We are using a development environment where some developers are using x64 machines, and some are using Win32 machines, and the 'official' build machine is a 32 bit machine.
This can cause problemns because on the x64 dev machines the 'common' merge modules are located at C:\Program Files (x86)\Common Files\Merge Modules\, and on Win32 machines, the location is C:\Program Files\Common Files\Merge Modules.
Is there a way to specify that location for WIX (in the wxs file) is a form that would be identical for all dev platforms?
I can't use the full hard-coded path, obviously, but I can't find what I should use.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

断肠人 2024-09-12 22:30:50

不幸的是,WiX 工具集中没有内置任何东西来帮助解决这个问题。您需要在 WiX 工具集之外编写一些解决方案来规范该目录路径(将环境变量设置为存在的目录?)。

对于 WiX 工具集的本地支持来说,这将是一个有趣的功能。

Unfortunately, there isn't anything built into the WiX toolset to help with this. You'll need to write some solution outside of the WiX toolset to normalize the that directory path (set an env var to the directory that exists?).

It would be an interesting feature for the WiX toolset to support natively.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文