Wix Windows 8 Launch Condition

梦想的初衷 提交于 2020-06-09 05:42:39

问题


I am working on a Wix installer to support Windows 7 SP1, Windows 8 and higher. I can successfully verify Windows 7 with Service Pack 1, however my windows 8 launch condition continually fails. My stripped back condition for windows 8 is,

<bal:Condition Message="Windows 8 or higher supported...."><![CDATA[Installed OR VersionNT >= 602]]></bal:Condition>

Log Entry

[0638:0D20][2015-08-28T07:47:17]i001: Burn v3.9.1208.0, Windows v6.3 (Build 9600: Service Pack 0)
[0638:0D20][2015-08-28T07:47:18]i052: Condition 'Installed OR VersionNT >= 602' evaluates to false.

Am i using the wrong syntax for windows8 or wrong versionNt code?


回答1:


The condition must evaluate to true for the install to proceed, so it's not clear why you have Installed as part of the condition. What does Installed refer to in your sample?

Also, you are using the wrong syntax for VersionNT. You're using the Windows Installer format, but Burn uses a different format:

http://wixtoolset.org/documentation/manual/v3/bundle/bundle_built_in_variables.html

It may also matter if you don't use the right property (VersionNT64 instead).



来源:https://stackoverflow.com/questions/32265126/wix-windows-8-launch-condition

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!