On 25 Sep 2010 at 4:45, fiordean dacian wrote:
> I assume you logged MSI actions; what is the value of REQUIREDBINARIES
> property? Also, I'm note sure you correctly use the upgradecode (ID tag from
> the Upgrade element). That ID must be the UpgradeCode from the product you
> want to detect wheter installed or not; do you have that GUID?
Thanks for your reply. In response to your questions:
1) REQUIREDBINARIES is added to SecureCustomProperties, which
is correct, I believe, but does not itself get a value, which would seem to
be consistent with the behaviour I'm seeing.
2) The guid which I actually assign to the variable ExecutablesCode
is the UpgradeCode for the product for which I am looking
(not that of the product currently being installed).
Lee
>
>
>
> --- On Sat, 9/25/10, [email protected] <[email protected]> wrote:
>
> From: [email protected] <[email protected]>
> Subject: [WiX-users] Checking for other products
> To: [email protected]
> Date: Saturday, September 25, 2010, 1:48 AM
>
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
>
> ------------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users