Wix自定义操作将在提供的条件下执行-不起作用 [英] Wix Custom action to execute upon condition provided - not working
本文介绍了Wix自定义操作将在提供的条件下执行-不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果属性ELECTRICAL_VERSION具有12.1.7.2、12.1.5.2或任何值,则条件被评估为true,并且正在执行自定义操作。如果值小于12.1.7.2。
If Property ELECTRICAL_VERSION has 12.1.7.2,12.1.5.2 or any value the condition is evaluated as true and custom action is being executed. I want it to skip if the value is less than 12.1.7.2.
<Property Id="ELECTRICAL_VERSION" Secure="yes">
<RegistrySearch Id="ELECTRICAL_VERSION" Root="HKLM" Key="SOFTWARE\WOW6432Node\12.1.7" Name="ProductVersion" Type="raw" />
</Property>
<CustomAction Id="ElectricalInstallCheck" Execute="immediate" Property="ELECTRICAL_VERSION" Return="check" Value=""/>
<InstallExecuteSequence>
<Custom Action="Install" Before="WriteRegistryValues">ELECTRICAL_VERSION>="12.1.7.2"</Custom>
推荐答案
也许尝试 NOT ELECTRICAL_VERSION< 12.1.7.2
。
Maybe try NOT ELECTRICAL_VERSION<"12.1.7.2"
.
在您的WiX源中,转义 <
字符: NOT ELECTRICAL_VERSION& lt; 12.1.7.2
。
In your WiX source, escape the <
character: NOT ELECTRICAL_VERSION<"12.1.7.2"
.
这篇关于Wix自定义操作将在提供的条件下执行-不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文