[wix-users] Checking for Product A before installing Product B

Christopher Painter chrpai at iswix.com
Tue Apr 23 15:11:50 PDT 2019


Same here.  Even the way the question is worded suggests this.   You'd also be able to do things like check if a certain version range of a product is installed in a way that checking for a component wouldn't.   It would also tightly couple the check and have issues if that component was ever removed from that product.

There may also be other pitfalls of component searches that I don't remember anymore.

________________________________
From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of Rob Mensching via wix-users <wix-users at lists.wixtoolset.org>
Sent: Tuesday, April 23, 2019 4:13 PM
To: WiX Toolset Users Mailing List
Cc: Rob Mensching
Subject: Re: [wix-users] Checking for Product A before installing Product B

I'd recommend using Upgrade element.
_____________________________________________________________
 Short replies here. Complete answers over there: http://www.firegiant.com/


-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Swatantra Yadav via wix-users
Sent: Tuesday, April 23, 2019 1:58 PM
To: Jacques Eloff <repstosd at gmail.com>; WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Swatantra Yadav <swatantra.yadav at skykick.com>
Subject: Re: [wix-users] Checking for Product A before installing Product B

The component is guaranteed to be in Product A. The code below is of Product B. Since I generated the Guid it is not shared by any external Product C.

I initially wanted to use RegistrySearch to look for Product A install but found out for some reason the registry key does not get removed even if Product A has been uninstalled. So I am not using Registry Search. The component is getting removed on uninstall. The file is removed and I did not find the Guid in registry after uninstall so ComponentSearch seems like better option for me I think as it will correctly exist only if Product A is currently installed. But yes given a choice it would be nice to use a RegistrySearch instead.

Thanks
Swat

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list