From 4cd1c4e06145434ca940ac828772dc47b9d9738e Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Sun, 13 Mar 2022 23:45:32 -0500 Subject: Allow the BA to override the bundle relation type during plan. --- .../IBootstrapperApplication.cs | 60 +++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) (limited to 'src/api/burn/WixToolset.Mba.Core/IBootstrapperApplication.cs') diff --git a/src/api/burn/WixToolset.Mba.Core/IBootstrapperApplication.cs b/src/api/burn/WixToolset.Mba.Core/IBootstrapperApplication.cs index 489e3b6d..4ab0f8d9 100644 --- a/src/api/burn/WixToolset.Mba.Core/IBootstrapperApplication.cs +++ b/src/api/burn/WixToolset.Mba.Core/IBootstrapperApplication.cs @@ -1148,6 +1148,18 @@ namespace WixToolset.Mba.Core [MarshalAs(UnmanagedType.U4)] ref RequestState pRequestedState, [MarshalAs(UnmanagedType.Bool)] ref bool fCancel ); + + /// + /// See . + /// + [PreserveSig] + [return: MarshalAs(UnmanagedType.I4)] + int OnPlanRelatedBundleType( + [MarshalAs(UnmanagedType.LPWStr)] string wzBundleId, + [MarshalAs(UnmanagedType.U4)] RelatedBundlePlanType recommendedType, + [MarshalAs(UnmanagedType.U4)] ref RelatedBundlePlanType pRequestedType, + [MarshalAs(UnmanagedType.Bool)] ref bool fCancel + ); } /// @@ -1669,7 +1681,12 @@ namespace WixToolset.Mba.Core /// /// /// - Dependent, + DependentAddon, + + /// + /// + /// + DependentPatch, /// /// @@ -1677,6 +1694,47 @@ namespace WixToolset.Mba.Core Update, } + /// + /// The planned relation type for related bundles. + /// + public enum RelatedBundlePlanType + { + /// + /// + /// + None, + + /// + /// + /// + Downgrade, + + /// + /// + /// + Upgrade, + + /// + /// + /// + Addon, + + /// + /// + /// + Patch, + + /// + /// + /// + DependentAddon, + + /// + /// + /// + DependentPatch, + } + /// /// One or more reasons why the application is requested to be closed or is being closed. /// -- cgit v1.2.3-55-g6feb