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

Swatantra Yadav swatantra.yadav at skykick.com
Wed Apr 24 13:27:03 PDT 2019


Thanks you sirs!  I see the disadvantage of using Component search so will avoid using it.

Will Upgrade element work in my scenario where Product A and Product B are two completely separate applications? 


-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Edwin Castro via wix-users
Sent: Tuesday, April 23, 2019 4:12 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Edwin Castro <egcastr at gmail.com>
Subject: Re: [wix-users] Checking for Product A before installing Product B

Conditions and Feature selection could possibly result in Product A being installed but the Component not installed. Even if this is not possible today, it might become possible in the future and you (or a future
maintainer) will need to remember these things to ensure setup still works as required.

I'd also recommend using the Upgrade element to detect an installed product.


On Tue, Apr 23, 2019 at 3:11 PM Christopher Painter via wix-users < wix-users at lists.wixtoolset.org> wrote:

> 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:
> https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.f
> iregiant.com%2F&data=02%7C01%7Cswatantra.yadav%40skykick.com%7C48a
> 0fee3bbbd452509a708d6c8417cee%7C3f9cd7a0127a4ed4bf062f830d5616b7%7C0%7
> C0%7C636916580935386334&sdata=XwpKEquD1vH73MfmN95lneyKcVbO90M999xJ
> x%2Bsk5YA%3D&reserved=0
>
>
> -----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
> https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.f
> iregiant.com%2F&data=02%7C01%7Cswatantra.yadav%40skykick.com%7C48a
> 0fee3bbbd452509a708d6c8417cee%7C3f9cd7a0127a4ed4bf062f830d5616b7%7C0%7
> C0%7C636916580935386334&sdata=XwpKEquD1vH73MfmN95lneyKcVbO90M999xJ
> x%2Bsk5YA%3D&reserved=0
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.f
> iregiant.com%2F&data=02%7C01%7Cswatantra.yadav%40skykick.com%7C48a
> 0fee3bbbd452509a708d6c8417cee%7C3f9cd7a0127a4ed4bf062f830d5616b7%7C0%7
> C0%7C636916580935386334&sdata=XwpKEquD1vH73MfmN95lneyKcVbO90M999xJ
> x%2Bsk5YA%3D&reserved=0
>

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.firegiant.com%2F&data=02%7C01%7Cswatantra.yadav%40skykick.com%7C48a0fee3bbbd452509a708d6c8417cee%7C3f9cd7a0127a4ed4bf062f830d5616b7%7C0%7C0%7C636916580935386334&sdata=XwpKEquD1vH73MfmN95lneyKcVbO90M999xJx%2Bsk5YA%3D&reserved=0



More information about the wix-users mailing list