wix - Copy an entire directory and all of its cont

2019-06-24 00:50发布

My wix installer needs the contents of a directory to be copied to a destination folder. I understand that the Directory element has a FileSource attrib. I tried something like this:

<DirectoryRef Id="DIRECTORY" FileSource="{var.Dir}">
  <Component Id="Dir" Guid="*" >
    <CreateFolder/>
  </Component>
</DirectoryRef>

This is not picking up the files or sub-directories from the preprocessor variable.

Are there any alternate ways to achieve this?

标签: wix wix3.5 heat
2条回答
Ridiculous、
2楼-- · 2019-06-24 01:10

No, not unless you use a custom action. WiX likes for every file to be tracked individually. You can use heat to generate the directory listing for you.

查看更多
该账号已被封号
3楼-- · 2019-06-24 01:11

Use heat.exe or HeatTask in MSBuild. That's the only way to do things today.

查看更多
登录 后发表回答