[wix-users] PlanPackageBegin: How can CustomBA know whether there are dependents?

Reuss, Matthias matthias.mr.reuss at sivantos.com
Wed Sep 4 03:44:35 PDT 2019


Hi Blair,

Thanks for your reply.

However, the message 
w327: Will not uninstall package: MyPackage, found dependents: 1
appears during plan phase rather than detect phase.

Moreover, I do not find any information about dependants when going through the events and their EventArgs. DetectPackageComplete seems to me the best candidate, but I cannot find any such element there.

So how should CustomBA get that information?

Best regards

Matthias Reuss

-----Ursprüngliche Nachricht-----
Von: wix-users <wix-users-bounces at lists.wixtoolset.org> Im Auftrag von Blair Murri via wix-users
Gesendet: Dienstag, 20. August 2019 12:06
An: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Blair Murri <osito at live.com>
Betreff: Re: [wix-users] PlanPackageBegin: How can CustomBA know whether there are dependents?

Dependants should have been reported in the detect phase. All the information used by the engine should be reported to the BA somewhere along the line.

Get Outlook for Android<https://aka.ms/ghei36>

________________________________
From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of Reuss, Matthias via wix-users <wix-users at lists.wixtoolset.org>
Sent: Monday, August 19, 2019 2:45:40 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Reuss, Matthias <matthias.mr.reuss at sivantos.com>
Subject: [wix-users] PlanPackageBegin: How can CustomBA know whether there are dependents?

Hi there,

on uninstallation of our bundle, CustomBA needs to know whether or not a package is going to be uninstalled from the engine's point of view. The reason behind this is that we have to do a dependency check against some legacy (non-WiX) bundles, which is not compatible with Burn dependencies by itself.

PlanPackageBeginEventArgs.State is not the full truth, though.

For such a package that has another dependency, the uninstall log (in this case, it is the uninstall during a bundle upgrade, but I do not think that matters) says:

[0B84:0CD4][2019-08-19T09:53:12]w327: Will not uninstall package: MyPackage, found dependents: 1

And some lines later:

[0B84:0CD4][2019-08-19T09:53:12]i201: Planned package: MyPackage, state: Superseded, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: Unregister

And in fact (I checked it), PlanPackageBeginEventArgs.State is Absent.

So is there a way for the CustomBA to know whether or not the engine is planning to uninstall the package? Or a way to know whether or not dependents have been found?

Best regards

Matthias Reuss



More information about the wix-users mailing list