diff options
Diffstat (limited to 'src/WixToolset.Mba.Core/BootstrapperApplication.cs')
| -rw-r--r-- | src/WixToolset.Mba.Core/BootstrapperApplication.cs | 34 |
1 files changed, 29 insertions, 5 deletions
diff --git a/src/WixToolset.Mba.Core/BootstrapperApplication.cs b/src/WixToolset.Mba.Core/BootstrapperApplication.cs index 1812c80b..b6c0dd0d 100644 --- a/src/WixToolset.Mba.Core/BootstrapperApplication.cs +++ b/src/WixToolset.Mba.Core/BootstrapperApplication.cs | |||
| @@ -226,6 +226,9 @@ namespace WixToolset.Mba.Core | |||
| 226 | /// <inheritdoc/> | 226 | /// <inheritdoc/> |
| 227 | public event EventHandler<SystemRestorePointCompleteEventArgs> SystemRestorePointComplete; | 227 | public event EventHandler<SystemRestorePointCompleteEventArgs> SystemRestorePointComplete; |
| 228 | 228 | ||
| 229 | /// <inheritdoc/> | ||
| 230 | public event EventHandler<PlanForwardCompatibleBundleEventArgs> PlanForwardCompatibleBundle; | ||
| 231 | |||
| 229 | /// <summary> | 232 | /// <summary> |
| 230 | /// Entry point that is called when the bootstrapper application is ready to run. | 233 | /// Entry point that is called when the bootstrapper application is ready to run. |
| 231 | /// </summary> | 234 | /// </summary> |
| @@ -1083,6 +1086,18 @@ namespace WixToolset.Mba.Core | |||
| 1083 | } | 1086 | } |
| 1084 | } | 1087 | } |
| 1085 | 1088 | ||
| 1089 | /// <summary> | ||
| 1090 | /// Called by the engine, raises the <see cref="PlanForwardCompatibleBundle"/> event. | ||
| 1091 | /// </summary> | ||
| 1092 | protected virtual void OnPlanForwardCompatibleBundle(PlanForwardCompatibleBundleEventArgs args) | ||
| 1093 | { | ||
| 1094 | EventHandler<PlanForwardCompatibleBundleEventArgs> handler = this.PlanForwardCompatibleBundle; | ||
| 1095 | if (null != handler) | ||
| 1096 | { | ||
| 1097 | handler(this, args); | ||
| 1098 | } | ||
| 1099 | } | ||
| 1100 | |||
| 1086 | #region IBootstrapperApplication Members | 1101 | #region IBootstrapperApplication Members |
| 1087 | 1102 | ||
| 1088 | int IBootstrapperApplication.OnStartup() | 1103 | int IBootstrapperApplication.OnStartup() |
| @@ -1120,13 +1135,12 @@ namespace WixToolset.Mba.Core | |||
| 1120 | return args.HResult; | 1135 | return args.HResult; |
| 1121 | } | 1136 | } |
| 1122 | 1137 | ||
| 1123 | int IBootstrapperApplication.OnDetectForwardCompatibleBundle(string wzBundleId, RelationType relationType, string wzBundleTag, bool fPerMachine, string wzVersion, ref bool fCancel, ref bool fIgnoreBundle) | 1138 | int IBootstrapperApplication.OnDetectForwardCompatibleBundle(string wzBundleId, RelationType relationType, string wzBundleTag, bool fPerMachine, string wzVersion, bool fMissingFromCache, ref bool fCancel) |
| 1124 | { | 1139 | { |
| 1125 | DetectForwardCompatibleBundleEventArgs args = new DetectForwardCompatibleBundleEventArgs(wzBundleId, relationType, wzBundleTag, fPerMachine, wzVersion, fCancel, fIgnoreBundle); | 1140 | DetectForwardCompatibleBundleEventArgs args = new DetectForwardCompatibleBundleEventArgs(wzBundleId, relationType, wzBundleTag, fPerMachine, wzVersion, fMissingFromCache, fCancel); |
| 1126 | this.OnDetectForwardCompatibleBundle(args); | 1141 | this.OnDetectForwardCompatibleBundle(args); |
| 1127 | 1142 | ||
| 1128 | fCancel = args.Cancel; | 1143 | fCancel = args.Cancel; |
| 1129 | fIgnoreBundle = args.IgnoreBundle; | ||
| 1130 | return args.HResult; | 1144 | return args.HResult; |
| 1131 | } | 1145 | } |
| 1132 | 1146 | ||
| @@ -1159,9 +1173,9 @@ namespace WixToolset.Mba.Core | |||
| 1159 | return args.HResult; | 1173 | return args.HResult; |
| 1160 | } | 1174 | } |
| 1161 | 1175 | ||
| 1162 | int IBootstrapperApplication.OnDetectRelatedBundle(string wzProductCode, RelationType relationType, string wzBundleTag, bool fPerMachine, string wzVersion, RelatedOperation operation, ref bool fCancel) | 1176 | int IBootstrapperApplication.OnDetectRelatedBundle(string wzProductCode, RelationType relationType, string wzBundleTag, bool fPerMachine, string wzVersion, RelatedOperation operation, bool fMissingFromCache, ref bool fCancel) |
| 1163 | { | 1177 | { |
| 1164 | DetectRelatedBundleEventArgs args = new DetectRelatedBundleEventArgs(wzProductCode, relationType, wzBundleTag, fPerMachine, wzVersion, operation, fCancel); | 1178 | DetectRelatedBundleEventArgs args = new DetectRelatedBundleEventArgs(wzProductCode, relationType, wzBundleTag, fPerMachine, wzVersion, operation, fMissingFromCache, fCancel); |
| 1165 | this.OnDetectRelatedBundle(args); | 1179 | this.OnDetectRelatedBundle(args); |
| 1166 | 1180 | ||
| 1167 | fCancel = args.Cancel; | 1181 | fCancel = args.Cancel; |
| @@ -1656,6 +1670,16 @@ namespace WixToolset.Mba.Core | |||
| 1656 | return args.HResult; | 1670 | return args.HResult; |
| 1657 | } | 1671 | } |
| 1658 | 1672 | ||
| 1673 | int IBootstrapperApplication.OnPlanForwardCompatibleBundle(string wzBundleId, RelationType relationType, string wzBundleTag, bool fPerMachine, string wzVersion, bool fRecommendedIgnoreBundle, ref bool fCancel, ref bool fIgnoreBundle) | ||
| 1674 | { | ||
| 1675 | PlanForwardCompatibleBundleEventArgs args = new PlanForwardCompatibleBundleEventArgs(wzBundleId, relationType, wzBundleTag, fPerMachine, wzVersion, fRecommendedIgnoreBundle, fCancel, fIgnoreBundle); | ||
| 1676 | this.OnPlanForwardCompatibleBundle(args); | ||
| 1677 | |||
| 1678 | fCancel = args.Cancel; | ||
| 1679 | fIgnoreBundle = args.IgnoreBundle; | ||
| 1680 | return args.HResult; | ||
| 1681 | } | ||
| 1682 | |||
| 1659 | int IBootstrapperApplication.BAProc(int message, IntPtr pvArgs, IntPtr pvResults, IntPtr pvContext) | 1683 | int IBootstrapperApplication.BAProc(int message, IntPtr pvArgs, IntPtr pvResults, IntPtr pvContext) |
| 1660 | { | 1684 | { |
| 1661 | switch (message) | 1685 | switch (message) |
