Title: What is the proper way to do an operating system check in WiX bundle install
Tags: wix;installation;bundle;conditional-statements
Question: In our WiX bundle install, we have an install condition (inside of a bal:Condition element).  It checks for various versions of the Windows O/S.  Is there a problem using a greater than or equal to in the following conditional?  Should this just be a simple equality instead (to avoid conflicting conditions)?
I'm asking because we had a condition failure on a Windows 7 install which indicated an incorrect service pack level (and we don't require any service pack for Windows 7 as you can tell from the rule below):
<bal:Condition Message="Cannot be installed"&gt;
<!-- Windows XP SP3, Windows XP x64 SP2, Vista SP2, Windows 7 and higher --&gt;
<![CDATA[Installed OR ((VersionNT &gt;= v5.1) AND (ServicePackLevel &gt;= 3)) OR ((VersionNT &gt;= v5.1) AND (ServicePackLevel &gt;= 2) AND (VersionNT64)) OR ((VersionNT &gt;= v6.0) AND (ServicePackLevel &gt;= 2)) OR (VersionNT &gt;= v6.1)]]&gt;
</bal:Condition&gt;
Note that version 6.0 is Windows Vista and 6.1 is Windows 7.



{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 0, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2013:00:10/14/13', 'FavoriteCount': 1.0, 'PostTypeId': 1, 'Tags': '<wix><installation><bundle><conditional-statements>', 'Title': 'What is the proper way to do an operating system check in WiX bundle install', 'ViewCount': 988, 'id': 19364099, 'user_AboutMe': None, 'user_AccountId': 154567.0, 'user_DisplayName': 'Ken Richards', 'user_Reputation': 2861.0, 'user_Views': 180.0, 'user_id': 1102784.0}}