gpt4 book ai didi

xml - 维克斯 MSMQ : The Product element contains an unexpected child element 'msmq:MessageQueue'

转载 作者:可可西里 更新时间:2023-11-01 11:54:04 26 4
gpt4 key购买 nike

我正在使用 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:产品元素包含意外的子元素‘msmq:MessageQueue’”

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

最佳答案

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

参见 doc reference了解更多详情。

关于xml - 维克斯 MSMQ : The Product element contains an unexpected child element 'msmq:MessageQueue' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21706730/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com