刻录中的 RegistrySearch 与 util:RegistrySearch [英] RegistrySearch vs util:RegistrySearch in Burn
问题描述
我正在使用 Burn 来构建 WiX 引导程序.我意识到如下所示的 RegistrySearch 实际上并没有搜索注册表.我使用 Process Monitor 来监控注册表访问.
I am using Burn to build a WiX bootstrapper. I realized that RegistrySearch as shown below does not actually search the registry. I used Process Monitor to monitor registry access.
<Property Id="NETFX35VERSION" Secure="yes">
<RegistrySearch Id="RegSearchNetFx35" Root="HKLM"
Key="SOFTWARE\Microsoft\Net Framework Setup\NDP\v3.5"
Name="Version" Type="raw" />
</Property>
但是,当我使用 util
函数时,它运行良好,并且可以很好地查询注册表:
However, when I used the util
function it was working fine and the registry got queried fine:
<util:RegistrySearch Root="HKLM"
Key="SOFTWARE\Microsoft\Net Framework Setup\NDP\v3.5"
Value="Version"
Variable="NETFX35VERSION" />
这是 WiX Burn 工具的预期行为吗?
Is this expected behavior with the WiX Burn tool?
推荐答案
Property
和 RegistrySearch
是 .msi 包的概念.捆绑包(引导程序)不由 MSI 引擎处理,因此它们具有其他概念,例如 变量
和 util:RegistrySearch
.它们很相似,而且通常捆绑包比 MSI 等价物具有更多的搜索功能.
Property
and RegistrySearch
are concepts for .msi packages. Bundles (bootstrappers) aren't processed by the MSI engine so they have other concepts, like Variable
and util:RegistrySearch
. They're similar and generally bundles have more functionality in searches than the MSI equivalent.
这篇关于刻录中的 RegistrySearch 与 util:RegistrySearch的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!