wix-复制整个目录及其所有内容 [英] wix - Copy an entire directory and all of its contents

查看:271
本文介绍了wix-复制整个目录及其所有内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的wix安装程序需要将目录的内容复制到目标文件夹.我知道Directory元素具有FileSource属性.我尝试过这样的事情:

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喜欢将每个文件单独跟踪.您可以使用heat为您生成目录列表.

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.

这篇关于wix-复制整个目录及其所有内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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