WIX Toolset include multiple files

一个人想着一个人 提交于 2019-12-20 05:57:13

问题


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>

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

Kind regards!


回答1:


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.

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

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

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




回答2:


Brians suggestion about Heat is fine. As a matter of taste you might prefer another tool for generating components called Paraffin. https://github.com/Wintellect/Paraffin

The benefit as I see it of this tool over Heat is that you don't have to mess around with xml transformations to get desired output, instead you can use command line flags for the most common options.



来源:https://stackoverflow.com/questions/42278203/wix-toolset-include-multiple-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!