On 11-Apr-11 19:43, Greg wrote:
> I have a component with the following condition:
> &lt;![CDATA[UPGRADE_FROM_VERSION<= "6.1.8.85" AND InstallMode<>"Remove"]]>

That's problematic for two reasons:

1. InstallMode is an internal property and isn't guaranteed.
2. String comparison operators don't work correctly for versions. From 
the SDK:

Note that the installer will not do direct comparisons of the Version 
data type in conditional statements. For example, you cannot use 
comparative operators to compare versions such as "01.10" and "1.010" in 
a conditional statement. Instead use a valid method to search for a 
version, such as described in Searching for Existing Applications, 
Files, Registry Entries or .ini File Entries, and then set a property.

-- 
sig://boB
http://joyofsetup.com/

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to