diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2022-04-01 15:44:34 -0500 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2022-04-01 22:06:11 -0500 |
| commit | 39b9a6112c2ff97f31f195749e2142538e47a2eb (patch) | |
| tree | 8b2337b589fa5f52fabce89c99d3fca0ef1c8fc0 /src/api/burn/WixToolset.Mba.Core/BootstrapperApplication.cs | |
| parent | 386a3578413ba16b3c0615d47870ee44a0e461f6 (diff) | |
| download | wix-39b9a6112c2ff97f31f195749e2142538e47a2eb.tar.gz wix-39b9a6112c2ff97f31f195749e2142538e47a2eb.tar.bz2 wix-39b9a6112c2ff97f31f195749e2142538e47a2eb.zip | |
Detect related bundles for BundlePackages.
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 | } |
