WIX 工具集包含多个文件 [英] WIX Toolset include multiple files

查看:31
本文介绍了WIX 工具集包含多个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个包含多个文件和文件夹的文件结构.我是 wix 工具集的新手,但不太确定如何包含所有这些文件并保持目录结构.我知道,我可以添加这样的文件:

We have a file structure with multiple files and folders. I a ma total newb to the wix toolset and not quite sure, how to include all of these files and keep the directory structure. I know, that I can add files like this:

<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
  <Component Id="ProductComponent">
    <File Id="FILE_InstallMeTXT" Source="InstallMe.txt" KeyPath="yes"/>
  </Component>
</ComponentGroup>

但是我是否必须为每个文件都这样做(我们有 > 200 个文件).

But do I have to do this for every single file (we have > 200 files).

亲切的问候!

推荐答案

看看heat 工具 此处.对于第一次设置,这可以很好地获取以 wix 格式创建的所有组件.该页面底部有一些示例.

Take a look at the heat tool here. For first time setup this does a great job of getting all the components created in the wix format. There are some examples at the bottom of that page.

我喜欢使用 -suid 以便组件和目录使用实际名称而不是哈希生成的名称.

I like to use -suid so that the components and directories use actual names instead of hash generated names.

网上应该有其他资源,当然还有关于用 Heat.exe 做更复杂的事情的 stackoverflow 问题

There should be other resources online and certainly stackoverflow questions about doing more complicated things with Heat.exe

举一个轶事示例,我在构建过程中使用 heat.exe 为我们的产品获取帮助",该产品有 2000 多个文件.

As an anectdotal example, I use heat.exe during our build process to harvest the 'help' for our product which has over 2000 files.

这篇关于WIX 工具集包含多个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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