Hi all,

I want to terminate the installation of a product unless 
there is a recent version of a different product already 
installed, so I defined an Upgrade element and a 
Condition thus:

<!-- The other Product's UpgradeCode. -->
<?define ExecutablesCode="Some guid"?> 
<!-- Minimum Product Version. -->
<?define ExecutablesVersion="13.0.13"?>
<?define RidiculouslyHighVersion="99.99.99"?>
        .
        .
<Upgrade Id="$(var.ExecutablesCode)">
  <UpgradeVersion                           
Minimum="$(var.ExecutablesVersion)"          
IncludeMinimum="yes"
     Maximum="$(var.RidiculouslyHighVersion)"
     IncludeMaximum="no"
     OnlyDetect="yes"
     Language="1033"
     Property="REQUIREDBINARIES" />
</Upgrade>
        .
        .   
<Condition Message="You must install ...">
   REQUIREDBINARIES
</Condition>
        .
        .

This didn't work; the install always aborts, whether the 
required product and version are installed or not.

I thought it might be a sequencing problem, so I got rid 
of the Condition and defined a CustomAction and 
sequenced it sequenced it so it should come some time 
after FindRelatedProducts, i.e.,

<CustomAction Id="CheckForReqdBins"
              Error="You must install ..."                 
              Return="check" />
        .
        .
<InstallExecuteSequence>
        .
        .
  <Custom Action="CheckForReqdBins"
          After="PreventDowngrading">
     (NOT REQUIREDBINARIES)
  </Custom>
        .
        .

Same result.

I'm kind of fuzzy about the evaluation of strings as 
conditions, but something analagous has worked for me 
when the Upgrade is the product currently being 
installed.

Assisistance appreciated.

Regards,
Lee


------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to