Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将wxs文件添加到wix 3.8中的product.wxs文件_Wix_Windows Installer_Setup Deployment - Fatal编程技术网

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

将wxs文件添加到wix 3.8中的product.wxs文件,wix,windows-installer,setup-deployment,Wix,Windows Installer,Setup Deployment,需要将Files.wxs文件添加到Product.wxs文件中 我添加了使用include命令(include Files.wxs) 这就产生了错误 错误1 Wix元素包含不受支持的扩展元素“Include”。Wix元素当前不支持扩展元素。Include元素是否使用了正确的XML命名空间 为创建buldevents添加了此选项 “$(WixToolPath)heat.exe“dir”项目路径“-var.SourceDir-gg-sfrag-scom-sreg-suid-t”$(ProjectDi

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

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

这就产生了错误

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

为创建buldevents添加了此选项

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


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

这里有些可疑

对于其他
WXI
文件,您可以使用include。彼此之间不需要包含wxs文件

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


查看ComponentGroupRef:

Thansk以获得您对此的答复。我在IIS中引用了此示例。@Erti Chris Eelmaa-您的链接只是猜测,但您可能希望在WiX 3.6中尝试此功能。或者,使用当前技术重新处理while项目。