Encapsulating the expression in CDATA as you suggested worked perfectly.

Thanks,
-Jonathan

-----Original Message-----
From: Pally Sandher [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 18, 2008 9:37 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Properly detecting Windows 2000


I use:

    <Condition Message="[ProductName] is only supported on Windows 2000,
XP (32-bit), or Vista (32-bit)"><![CDATA[VersionNT >= 500]]></Condition>

Which works fine for us as far as I know.

Try using the CDATA tag for the condition & get the user to test it
again.

Also if you only want it to install on the 32-bit versions XP & Vista,
you should modify your condition to something like <![CDATA[(VersionNT
>= 500) AND (NOT VersionNT64)]]>
The brackets may not be strictly necessary but I like to use them to
eliminate any possible confusion. You probably should also modify the
Message to inform users that a native 64-bit version is available (if
applicable)
However if you're happy to let people install on 64-bit versions of XP &
Vista, ignore the above.


Palbinder Sandher 
Software Deployment Engineer 

T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 
http://www.iesve.com 

**Design, Simulate + Innovate with the <Virtual Environment>**

Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP

Email Disclaimer


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: 18 November 2008 13:38
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Properly detecting Windows 2000

The software I develop has an installation requirement of running only
on Windows 2000, XP, and Vista.  To enforce this requirement, I have a
Condition clause on the Product element of my top-level WiX file like
so:

 

    <Condition Message="[ProductName] is only supported on Windows 2000,
XP (32-bit), or Vista (32-bit)">VersionNT &gt;= 500</Condition>

 

This appears to work correctly on my Windows 2000 development test
machine as well as at least some other Windows 2000 installations in the
field.  However, one user is reporting that the installer refuses to run
on his Windows 2000 machine, version 5.00.2195, Service Pack 4.  He has
sent me screenshots of the dialogs involved, and I am certain that this
dialog is being triggered.  He also appears to be running Windows 2000
(albeit localized for Germany).  What would cause this test to pass on
some Win2K machines but not others?

 

I am using WiX 2.0.5808 and the build machine is running Windows XP
Professional (32-bit), with SP 2.

 

Thanks,

 

Jonathan Brandmeyer

New Product Service Engineer - Software

EATON Powering Business Worldwide

Power Quality Service Organization

http://www.powerware.com/

------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge Build the coolest Linux based applications with Moblin SDK &
win great prizes Grand prize is a trip for two to an Open Source event
anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to