Hi Nick,

I'm new to the listserv, but I think the following code will help with
your service pack requirements:
  <Condition Message="This product requires Windows XP or greater.">
    VersionNT >= 501
  </Condition>
  <Condition Message="This product requires Windows XP SP2 or above.">
    NOT VersionNT = 501 OR ServicePackLevel >= 2
  </Condition>
  <Condition Message="This product requires Windows 2003 SP1 or above.">
    NOT VersionNT = 502 OR ServicePackLevel >= 1
  </Condition>

This will allow Vista (VersionNT for Vista is above 502), but I don't
know how to handle the Firewall requirement.  You might check for a
registry key...

                                Lewis

-----Original Message-----
Date: Thu, 10 May 2007 10:28:24 -0700
From: Nick <[EMAIL PROTECTED]>
Subject: Re: [WiX-users] Prevent installing on Windows 2000
To: [EMAIL PROTECTED], wix-users@lists.sourceforge.net
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1

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