使用bal扩展时,PhysicalMemory的条件总是失败。我可以尝试使用PhysicalMemory> = 3500和PhysicalMemory< 3500和PhysicalMemory> = 0.无论如何,条件都失败。
我想在开始捆绑安装之前验证计算机是否有4GB的RAM并给他们一个自定义消息。
如果我将条件添加到Bundle标签,它可以工作但总是说“指定的程序需要更新版本的Windows”。我不知道如何自定义此消息。
(作为旁注:VersionNT> 6.0条件正常工作)
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension"
xmlns:bal="http://schemas.microsoft.com/wix/BalExtension">
<Bundle Version="1.0.0" UpgradeCode="XXXXXXXX-XXXX-XXXX-XXXX-AFD8530214A6" Name="My Bundle Name" DisableModify="yes">
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense">
<bal:WixStandardBootstrapperApplication ThemeFile="RtfTheme.xml" LocalizationFile="RtfTheme.wxl" SuppressOptionsUI="yes" LicenseFile="license.rtf" LogoFile="logo.png"/>
</BootstrapperApplicationRef>
<bal:Condition Message="My Custom Message">
PhysicalMemory >= 3500
</bal:Condition>
感谢您的帮助。