将wxs文件添加到wix 3.8中的product.wxs文件中

时间:2014-06-02 14:40:40

标签: wix windows-installer setup-deployment

需要将Files.wxs文件添加到Product.wxs文件

我添加了using include命令(包括Files.wxs)

  

这给出了错误

错误1 Wix元素包含不受支持的扩展元素“Include”。 Wix元素当前不支持扩展元素。 Include元素是否使用正确的XML命名空间?

添加了这个用于创建buldevents

“$(WixToolPath)heat.exe”dir“项目路径”-var var.SourceDir -gg -sfrag -scom -sreg -suid -t“$(ProjectDir)TransformDirectoryToWix.xslt”-out“$(ProjectDir) Files.wxs

任何解决方法?

1 个答案:

答案 0 :(得分:3)

这里似乎有点可疑。

您将include用于其他WXI个文件。您不需要相互包含wxs文件。

如果要引用驻留在另一个wxs文件中的元素,请设置ID并使用: DirectoryRef ComponentRef ComponentGroupRef 等..

查看ComponentGroupRef:http://chriseelmaa.com/harvesting-files-with-wix-heat/