How to check the system is Windows 7 or Windows Server 2008 R2 in Wix Installer?

Posted by Ray on Stack Overflow See other posts from Stack Overflow or by Ray
Published on 2010-04-28T22:37:43Z Indexed on 2010/04/29 0:17 UTC
Read the original article Hit count: 181

Hi there,

I am working on a windows installer project. And now I only want the software only can be installed on Windows 7 or Windows Server 2008 R2 system, I tried to use this:

<Condition Message='Windows Server 2008 R2 or Windows 7 is required'>(VersionNT = 600 AND ServicePackLevel = 1) OR VersionNT = 601 </Condition>

but it can still be installed on Windows Vista. Please help!

Thank you!

© Stack Overflow or respective owner

Related posts about windows-installer

Related posts about wix