Related bundle only finds Burn bundles with the indicated UpgradeCode, not MSIs
with that code.
In non-bundle solutions I would use the Upgrade table from your MSI (which will
still work with a bundle, except you won't involve the UI, you would just
remove the other product).
I believe someone was working on product detection using Upgrade codes but I
don't know if that design has been finalized. I assume that it would be
accessible from Burn but I haven't looked and I don't know if it has been
submitted yet.
> From: bjorn.johans...@labgruppen.com
> To: wix-users@lists.sourceforge.net
> Date: Wed, 4 Sep 2013 12:01:56 +0000
> Subject: [WiX-users] Uninstalling someone else's software during install
>
> Hi,
>
> I'm trying to figure out how to uninstall software from another manufacturer
> as part of installing our software. This is required on Windows XP because of
> limitations that do not allow our two services to run at the same time. So
> the idea is to present the user with an information screen describing the
> problem and presenting the choice of either installing our service or keeping
> the existing one.
>
> At first I thought I could use the method described here
> http://stackoverflow.com/questions/16429687/how-to-make-a-wix-burn-bundle-that-upgrade-a-lite-version-of-my-product
> using a custom BA. So the MSI wxs that I wish to install would look
> something like
>
> <Product Name='MyProduct' Id='*' UpgradeCode='1-1-1-1-1' ...
>
> And my Burn wxs file would be
>
> <Bundle UpgradeCode='2-2-2-2-2'>
> <RelatedBundle Id='3-3-3-3-3' Action='Detect' />
> ...
>
> And in my Custom BA I would look for the other manufacturer's upgrade code in
> OnPlanRelatedBundle and set the requested state to absent.
>
> For some reason the related bundle is never detected, it never appears in the
> log file and I never seem to receive a callback about it being detected even
> though it is installed on the system. Using a small program that calls
> MsiEnumRelatedProducts I'm able to see that the upgrade code is the correct
> one and that there is a related product installed.
>
> Is this the correct way of doing this and if so how do I best troubleshoot
> this? Is there a better way to do this?
>
> --
> Bjorn Johansson
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users