Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/14.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/17.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
Xml WiX-MSMQ:Product元素包含意外的子元素';msmq:MessageQueue';_Xml_Windows_Wix_Installation_Windows Installer - Fatal编程技术网

Xml WiX-MSMQ:Product元素包含意外的子元素';msmq:MessageQueue';

Xml WiX-MSMQ:Product元素包含意外的子元素';msmq:MessageQueue';,xml,windows,wix,installation,windows-installer,Xml,Windows,Wix,Installation,Windows Installer,我正在使用WiX MSMQ扩展创建具有以下代码的队列: <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:msmq="http://schemas.microsoft.com/wix/MsmqExtension"> <Product Id="*" Name="Blah" Language="1033" Version="2.0.0.0" Manufacturer="Blah Inc." UpgradeCod

我正在使用WiX MSMQ扩展创建具有以下代码的队列:

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:msmq="http://schemas.microsoft.com/wix/MsmqExtension">

<Product Id="*" Name="Blah" Language="1033" Version="2.0.0.0" Manufacturer="Blah Inc." UpgradeCode="{7FB782AF-178B-4705-893A-CE9B54EF54C0}">
<Package Id ="*" Keywords="Installer" Description="Blah Installer" Manufacturer="Blah Inc." InstallerVersion="200" Compressed="yes" InstallScope="perMachine" InstallPrivileges="elevated" />

<MajorUpgrade AllowDowngrades="yes" />   

<Property Id="HASMSMQ"> 
  <RegistrySearch Id="MSMQIsInstalled" Root="HKLM" Key="System\CurrentControlSet\Services\MSMQ" Name="ImagePath" Type="raw" /> 
</Property> 

<Condition Message="You must run the installer as administrator to install this product.">Privileged</Condition>
<Condition Message="The MSMQ service must be installed to install this product."><![CDATA[INSTALLED OR HASMSMQ]]></Condition>

<msmq:MessageQueue Id="Blah1" Label="Blah 1" Transactional="no" PrivLevel="none" PathName=".\Private$\Blah1" />
<msmq:MessageQueue Id="Blah2" Label="Blah 2" Transactional="no" PrivLevel="none" PathName=".\Private$\Blah2" />

有特权的
但是,当我执行candle.exe-ext WixMsmqExtension Blah.wxs时,我得到一个错误:“CNDL0005:Product元素包含意外的子元素‘msmq:MessageQueue’”


我不明白为什么,我有引用和名称空间。任何帮助都将不胜感激。提前感谢。

msmq:MessageQueue必须是
组件
元素的子元素。您的消息队列将与父组件一起“安装”。组件的条件也将用作消息队列创建的条件

有关更多详细信息,请参阅