Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to differentiate between Vista SP1 and Server 2008 at install

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!

like image 365
Ian Grainger Avatar asked Jul 27 '09 12:07

Ian Grainger


1 Answers

Try

<Condition Message="This application is only supported on Windows Server 2008, or higher.">
    <![CDATA[Installed OR (VersionNT >= 600 AND MsiNTProductType > 1)]]>
</Condition>
like image 128
Shay Erlichmen Avatar answered Oct 18 '22 01:10

Shay Erlichmen