[wix-users] Checking for Product A before installing Product B
Jacques Eloff
repstosd at gmail.com
Tue Apr 23 13:43:58 PDT 2019
Is the component guaranteed to always be in product B? Is it possible that
the component can be shared, e.g. with Product C, so B might not be
installed, but the component might? If that's the case you might consider a
ProductSearch or using something like a registry key if Product B writes
something that identifies itself.
Jacques
On Tue, Apr 23, 2019 at 12:34 PM Swatantra Yadav via wix-users <
wix-users at lists.wixtoolset.org> wrote:
> Hello All,
>
> I have a requirement to install Product B only if Product A is not
> installed. Otherwise Product B installation should error. Does the below
> check look correct? I am checking for existence of a component that would
> be present if Product A is already installed. The check must only run at
> installation and not run on uninstall or update.
>
> Thanks,
> Swat
>
>
>
>
> <Product>
> <Property Id="MyProperty">
> <ComponentSearch Id="ProductAAlreadyInstalled" Guid="{GUID HERE}"
> Type="directory">
> </ComponentSearch>
> </Property>
> <Condition Message="Please uninstall Product A before installing
> Product B"> <![CDATA[Installed AND NOT MyProperty]]> </Condition>
>
>
> <!-Other things truncated here -->
> </Product>
>
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
More information about the wix-users
mailing list