【问题标题】:Add wxs file to product.wxs file in wix 3.8在 wix 3.8 中将 wxs 文件添加到 product.wxs 文件
【发布时间】:2014-06-02 14:40:40
【问题描述】:

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

我添加了使用包含命令(include Files.wxs)

这给出了错误

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

添加这个用于创建 buldevents

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

有什么办法解决这个问题?

【问题讨论】:

  • 只是一个猜测,但您可能想用 WiX 3.6 试试这个。或者,使用当前技术重新处理 while 项目。

标签: wix windows-installer setup-deployment


【解决方案1】:

这里有些可疑。

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

如果你想引用另一个 wxs 文件中的元素,你设置 ID 并使用:DirectoryRefComponentRefComponentGroupRef等..

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

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多