If I understand you correctly, you want the following conditions only:

If it is XP and SP2 or greater
(VersionNT = 501 AND ServicePackLevel >= 2) OR

Or if it is Win2003 and (SP1 or greater)
(VersionNT = 502 AND ServicePackLevel >= 1) OR

Of if it is Vista
(VersionNT = 600)

Then you can also check if it is 64 bit or not with 
VersionNT64

Us this reference for the syntax:
http://msdn2.microsoft.com/en-us/library/aa368012.aspx

and use this reference for the values look here:
http://msdn2.microsoft.com/en-us/library/aa370556.aspx


-Trevor

-----Original Message-----
From: Nick [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 10, 2007 11:28 AM
To: [EMAIL PROTECTED]; wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] Prevent installing on Windows 2000

That would work great...but my app needs WinXP-SP2 or better, or Win2003-SP1
or
better, or Vista, and that's where it gets messy.  (It depends on Windows
Firewall, which is only present in those operating systems).



On 5/10/07, Trevor Clifton <[EMAIL PROTECTED]> wrote:
> I do just the opposite and require it to be 2k or better. Here is my
> "Condition" line to do that:
>
> <Condition Message="You must have Windows 2000 or better to install this
> software. Installation will now
> abort."><![CDATA[VersionNT>=500]]></Condition>
>
> You would modify the condition to be > 500 instead of >= 500 to exclude
the
> Win2k.  Then you can also customize your Condition message as you wish.
>
> -Trevor



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to