我的 wix 安装程序需要将目录的内容复制到目标文件夹。我了解 Directory 元素具有 FileSource 属性。我试过这样的事情:
<DirectoryRef Id="DIRECTORY" FileSource="{var.Dir}">
<Component Id="Dir" Guid="*" >
<CreateFolder/>
</Component>
</DirectoryRef>
这不是从预处理器变量中提取文件或子目录。
有没有其他方法可以实现这一目标?