是否可以安排从 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>
RegistrySearch
由 AppSearch
动作执行。因此您可以在AppSearch
之前/之后安排自定义操作。
<InstallExecuteSequence>
<!-- MyCustomAction is supposed to be executed before the reg reading action (RegId). -->
<Custom Action="MyCustomAction" Before="AppSearch" />
</InstallExecuteSequence>