是否可以包含“来源”? wixlib 中的文件?
是否可以在 wixlib 中包含“源”文件?
我有许多 C++ 解决方案,每个解决方案都包含一个或多个项目以及一个 wixlib,其中包含一个片段,其中包含以下条目:
<File Id="MY_ID" KeyPath="yes" Source="$(var.my_path)\foo.exe" />
我想收集“foo.exe”并将其包含在 wixlib 中,然后创建一个 WiX 项目将多个此类 wixlib 连接在一起并生成 MSI。
我所做的阅读似乎表明 WiX3 及更高版本支持这一点,该技术是 更喜欢使用合并模块。
目前,我使用一个环境变量来描述二进制文件的路径,light.exe 在链接时使用它来定位文件。 但是,它具有以下缺点:
- 在编译 wixlib 和将 wixlib 链接到 MSI 之间要更改的文件版本,以及
- 特定于用于构建 wixlib 的环境(例如:如果发生 wixlib 编译和链接)在不同的机器上,两者都需要构建所需的二进制文件)
Is it possible to include "source" files in a wixlib?
I have a number of c++ solutions, each containing a project or projects, and a wixlib, with a fragment containing entries such as:
<File Id="MY_ID" KeyPath="yes" Source="$(var.my_path)\foo.exe" />
I would like to collect "foo.exe" and include it in the wixlib, then create a WiX project that links together several such wixlibs and produces an MSI.
The reading I have done seems to suggest WiX3 and later supports this, and the technique is
preferred to using merge modules.
Currently, I use an environment variable describing the path to the binary files, which gets used by light.exe at the time of linking to locate the files.
However, it has the following disadvantages:
- the version of the files to change between time of compilation of the wixlibs, and linking wixlibs into the MSI, and
- Being specific to the environment used to build the wixlib (eg: if wixlib compilation and linking happened on different machines, both would need to have built the required binary files)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我自己对 wixlib 没有太多经验,但这不是
lit.exe
的-bf
开关的用途吗?来自 lit.exe 帮助文本:I don't have much experience with wixlib myself, but isn't it what
-bf
switch oflit.exe
for? From lit.exe help text: