WiX v4 工具集:安排从 Windows 注册表读取值

问题描述 投票:0回答:1

是否可以安排从 Windows 注册表读取值?

我有一个 CustomAction,需要在读取注册表值并将其保存到属性之前执行。我正在尝试在自定义操作中“包装”RegistrySearch。不确定这是否可以实现。

你能帮我解决这个问题吗?

<Property Id="PropId">
    <RegistrySearch Id="RegId"
                    Root="HKLM"
                    Key="Software\..."
                    Name="Install"
                    Type="raw" />
</Property>

<InstallExecuteSequence>
    <!-- MyCustomAction is supposed to be executed before the reg reading action (RegId). -->
    <Custom Action="MyCustomAction" Before="???" />
</InstallExecuteSequence>
wix windows-installer wix4
1个回答
0
投票

RegistrySearch
AppSearch
动作执行。因此您可以在
AppSearch
之前/之后安排自定义操作。

<InstallExecuteSequence>
    <!-- MyCustomAction is supposed to be executed before the reg reading action (RegId). -->
    <Custom Action="MyCustomAction" Before="AppSearch" />
</InstallExecuteSequence>
© www.soinside.com 2019 - 2024. All rights reserved.