Using Wix, I am publishing a warning dialog box if the OS of the local machine matches one of several valid operating systems. I can perform this check by putting, for example, VersionNT = 601
in the conditional part of the publish tag.
Because I need to check for multiple operating systems and types (server, domain controller, etc.) I'd like to store some of these conditions in properties and use those custom properties in multiple publish conditions.
Something like:
<Property Id="WinServer08R2" Value="VersionNT = 601 AND MsiNTProductType = 3" />
Then use this property somewhat like this:
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="WarningDlg">
WinServer08R2 AND Not Installed
</Publish>
...
Neither this method nor slight variations on it have worked for me thus far. Has anyone else tried this and gotten it to work? One might suggest that I simply use parentheses and make it work, but this is a simplified example and the conditions would quickly get out of hand.
Thanks in advance.