In MSI, you create LaunchCondition using Operating System Properties
You want to check that VersionNT> 501 or (VersionNT = 501 and ServicePackLevel> 2)
(customization to meet your specific needs)
On Windows Installer XML, it looks like this:
<Product...>
<Condition Message="[ProductName] Setup requires Windows XP SP3 or greater to install">VersionNT > 501 or ( VersionNT = 501 and ServicePackLevel > 2 ) or Installed</Condition>
...
</Product>
source
share