views:

136

answers:

2

I have a Wix installer which should be allowed to run on Windows Server 2008 but not on Vista. According to Microsoft's Operating System Properties page, this is not possible using the parameters they provide for this purpose (VersionNT and WindowsBuild).

Has anyone solved this problem or know how to solve it?

Thanks!

+5  A: 

Try

<Condition Message="This application is only supported on Windows Server 2008, or higher.">
    <![CDATA[Installed OR (VersionNT >= 600 AND MsiNTProductType > 1)]]>
</Condition>
Shay Erlichmen
+1  A: 

Note that such a check can be easily bypassed by someone simply editing the MSI with Orca, so unless there are technical limitations (e.g. even if they get it installed, certain services will only be present on the Server OS) I wouldn't advise it.

sascha
Good point, but I think making them do that is enough of a barrier to entry that they'll be aware they're running on an OS that's 'not supported' ;)
Ian Grainger

related questions