diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2022-03-13 23:45:32 -0500 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2022-03-14 14:53:29 -0500 |
commit | 4cd1c4e06145434ca940ac828772dc47b9d9738e (patch) | |
tree | a754d685039173c63303dc6d0d8b1a2bf3ab506b /src/api/burn/WixToolset.Mba.Core/IBootstrapperApplication.cs | |
parent | 89adb2e3cc232b11b28e5bdeccb0c522c8124a29 (diff) | |
download | wix-4cd1c4e06145434ca940ac828772dc47b9d9738e.tar.gz wix-4cd1c4e06145434ca940ac828772dc47b9d9738e.tar.bz2 wix-4cd1c4e06145434ca940ac828772dc47b9d9738e.zip |
Allow the BA to override the bundle relation type during plan.
Diffstat (limited to 'src/api/burn/WixToolset.Mba.Core/IBootstrapperApplication.cs')
-rw-r--r-- | src/api/burn/WixToolset.Mba.Core/IBootstrapperApplication.cs | 60 |
1 files changed, 59 insertions, 1 deletions
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 | |||
1148 | [MarshalAs(UnmanagedType.U4)] ref RequestState pRequestedState, | 1148 | [MarshalAs(UnmanagedType.U4)] ref RequestState pRequestedState, |
1149 | [MarshalAs(UnmanagedType.Bool)] ref bool fCancel | 1149 | [MarshalAs(UnmanagedType.Bool)] ref bool fCancel |
1150 | ); | 1150 | ); |
1151 | |||
1152 | /// <summary> | ||
1153 | /// See <see cref="IDefaultBootstrapperApplication.PlanRelatedBundleType"/>. | ||
1154 | /// </summary> | ||
1155 | [PreserveSig] | ||
1156 | [return: MarshalAs(UnmanagedType.I4)] | ||
1157 | int OnPlanRelatedBundleType( | ||
1158 | [MarshalAs(UnmanagedType.LPWStr)] string wzBundleId, | ||
1159 | [MarshalAs(UnmanagedType.U4)] RelatedBundlePlanType recommendedType, | ||
1160 | [MarshalAs(UnmanagedType.U4)] ref RelatedBundlePlanType pRequestedType, | ||
1161 | [MarshalAs(UnmanagedType.Bool)] ref bool fCancel | ||
1162 | ); | ||
1151 | } | 1163 | } |
1152 | 1164 | ||
1153 | /// <summary> | 1165 | /// <summary> |
@@ -1669,7 +1681,12 @@ namespace WixToolset.Mba.Core | |||
1669 | /// <summary> | 1681 | /// <summary> |
1670 | /// | 1682 | /// |
1671 | /// </summary> | 1683 | /// </summary> |
1672 | Dependent, | 1684 | DependentAddon, |
1685 | |||
1686 | /// <summary> | ||
1687 | /// | ||
1688 | /// </summary> | ||
1689 | DependentPatch, | ||
1673 | 1690 | ||
1674 | /// <summary> | 1691 | /// <summary> |
1675 | /// | 1692 | /// |
@@ -1678,6 +1695,47 @@ namespace WixToolset.Mba.Core | |||
1678 | } | 1695 | } |
1679 | 1696 | ||
1680 | /// <summary> | 1697 | /// <summary> |
1698 | /// The planned relation type for related bundles. | ||
1699 | /// </summary> | ||
1700 | public enum RelatedBundlePlanType | ||
1701 | { | ||
1702 | /// <summary> | ||
1703 | /// | ||
1704 | /// </summary> | ||
1705 | None, | ||
1706 | |||
1707 | /// <summary> | ||
1708 | /// | ||
1709 | /// </summary> | ||
1710 | Downgrade, | ||
1711 | |||
1712 | /// <summary> | ||
1713 | /// | ||
1714 | /// </summary> | ||
1715 | Upgrade, | ||
1716 | |||
1717 | /// <summary> | ||
1718 | /// | ||
1719 | /// </summary> | ||
1720 | Addon, | ||
1721 | |||
1722 | /// <summary> | ||
1723 | /// | ||
1724 | /// </summary> | ||
1725 | Patch, | ||
1726 | |||
1727 | /// <summary> | ||
1728 | /// | ||
1729 | /// </summary> | ||
1730 | DependentAddon, | ||
1731 | |||
1732 | /// <summary> | ||
1733 | /// | ||
1734 | /// </summary> | ||
1735 | DependentPatch, | ||
1736 | } | ||
1737 | |||
1738 | /// <summary> | ||
1681 | /// One or more reasons why the application is requested to be closed or is being closed. | 1739 | /// One or more reasons why the application is requested to be closed or is being closed. |
1682 | /// </summary> | 1740 | /// </summary> |
1683 | [Flags] | 1741 | [Flags] |