diff options
Diffstat (limited to 'src/api/burn/WixToolset.Mba.Core/BootstrapperApplication.cs')
-rw-r--r-- | src/api/burn/WixToolset.Mba.Core/BootstrapperApplication.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/api/burn/WixToolset.Mba.Core/BootstrapperApplication.cs b/src/api/burn/WixToolset.Mba.Core/BootstrapperApplication.cs index 5ed064fa..41738bf6 100644 --- a/src/api/burn/WixToolset.Mba.Core/BootstrapperApplication.cs +++ b/src/api/burn/WixToolset.Mba.Core/BootstrapperApplication.cs | |||
@@ -283,6 +283,9 @@ namespace WixToolset.Mba.Core | |||
283 | /// <inheritdoc/> | 283 | /// <inheritdoc/> |
284 | public event EventHandler<ExecuteProcessCancelEventArgs> ExecuteProcessCancel; | 284 | public event EventHandler<ExecuteProcessCancelEventArgs> ExecuteProcessCancel; |
285 | 285 | ||
286 | /// <inheritdoc/> | ||
287 | public event EventHandler<DetectRelatedBundlePackageEventArgs> DetectRelatedBundlePackage; | ||
288 | |||
286 | /// <summary> | 289 | /// <summary> |
287 | /// Entry point that is called when the bootstrapper application is ready to run. | 290 | /// Entry point that is called when the bootstrapper application is ready to run. |
288 | /// </summary> | 291 | /// </summary> |
@@ -1385,6 +1388,19 @@ namespace WixToolset.Mba.Core | |||
1385 | } | 1388 | } |
1386 | } | 1389 | } |
1387 | 1390 | ||
1391 | /// <summary> | ||
1392 | /// Called by the engine, raises the <see cref="DetectRelatedBundlePackage"/> event. | ||
1393 | /// </summary> | ||
1394 | /// <param name="args">Additional arguments for this event.</param> | ||
1395 | protected virtual void OnDetectRelatedBundlePackage(DetectRelatedBundlePackageEventArgs args) | ||
1396 | { | ||
1397 | EventHandler<DetectRelatedBundlePackageEventArgs> handler = this.DetectRelatedBundlePackage; | ||
1398 | if (null != handler) | ||
1399 | { | ||
1400 | handler(this, args); | ||
1401 | } | ||
1402 | } | ||
1403 | |||
1388 | #region IBootstrapperApplication Members | 1404 | #region IBootstrapperApplication Members |
1389 | 1405 | ||
1390 | int IBootstrapperApplication.BAProc(int message, IntPtr pvArgs, IntPtr pvResults, IntPtr pvContext) | 1406 | int IBootstrapperApplication.BAProc(int message, IntPtr pvArgs, IntPtr pvResults, IntPtr pvContext) |
@@ -2144,6 +2160,15 @@ namespace WixToolset.Mba.Core | |||
2144 | return args.HResult; | 2160 | return args.HResult; |
2145 | } | 2161 | } |
2146 | 2162 | ||
2163 | int IBootstrapperApplication.OnDetectRelatedBundlePackage(string wzPackageId, string wzProductCode, RelationType relationType, bool fPerMachine, string wzVersion, ref bool fCancel) | ||
2164 | { | ||
2165 | DetectRelatedBundlePackageEventArgs args = new DetectRelatedBundlePackageEventArgs(wzPackageId, wzProductCode, relationType, fPerMachine, wzVersion, fCancel); | ||
2166 | this.OnDetectRelatedBundlePackage(args); | ||
2167 | |||
2168 | fCancel = args.Cancel; | ||
2169 | return args.HResult; | ||
2170 | } | ||
2171 | |||
2147 | #endregion | 2172 | #endregion |
2148 | } | 2173 | } |
2149 | } | 2174 | } |