diff options
| author | Nir Bar <nir.bar@panel-sw.co.il> | 2021-08-11 15:37:34 -0500 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2021-08-12 14:50:55 -0500 |
| commit | 0042e3d4554a0d92e1da6141854b0f1aafa07d5b (patch) | |
| tree | 7dcd25456993d6a9d68b9afd21fd1d1f77bd2a5e /src/api/burn/WixToolset.Mba.Core/BootstrapperApplication.cs | |
| parent | c6b138ed166e30c750e499919b858dc6913937b6 (diff) | |
| download | wix-0042e3d4554a0d92e1da6141854b0f1aafa07d5b.tar.gz wix-0042e3d4554a0d92e1da6141854b0f1aafa07d5b.tar.bz2 wix-0042e3d4554a0d92e1da6141854b0f1aafa07d5b.zip | |
Allow BA to opt out of MSI transaction.
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 d7dbf04c..b6fdca1e 100644 --- a/src/api/burn/WixToolset.Mba.Core/BootstrapperApplication.cs +++ b/src/api/burn/WixToolset.Mba.Core/BootstrapperApplication.cs | |||
| @@ -86,6 +86,9 @@ namespace WixToolset.Mba.Core | |||
| 86 | public event EventHandler<PlanRelatedBundleEventArgs> PlanRelatedBundle; | 86 | public event EventHandler<PlanRelatedBundleEventArgs> PlanRelatedBundle; |
| 87 | 87 | ||
| 88 | /// <inheritdoc/> | 88 | /// <inheritdoc/> |
| 89 | public event EventHandler<PlanRollbackBoundaryEventArgs> PlanRollbackBoundary; | ||
| 90 | |||
| 91 | /// <inheritdoc/> | ||
| 89 | public event EventHandler<PlanPackageBeginEventArgs> PlanPackageBegin; | 92 | public event EventHandler<PlanPackageBeginEventArgs> PlanPackageBegin; |
| 90 | 93 | ||
| 91 | /// <inheritdoc/> | 94 | /// <inheritdoc/> |
| @@ -497,6 +500,18 @@ namespace WixToolset.Mba.Core | |||
| 497 | } | 500 | } |
| 498 | 501 | ||
| 499 | /// <summary> | 502 | /// <summary> |
| 503 | /// Called by the engine, raises the <see cref="PlanRollbackBoundary"/> event. | ||
| 504 | /// </summary> | ||
| 505 | protected virtual void OnPlanRollbackBoundary(PlanRollbackBoundaryEventArgs args) | ||
| 506 | { | ||
| 507 | EventHandler<PlanRollbackBoundaryEventArgs> handler = this.PlanRollbackBoundary; | ||
| 508 | if (null != handler) | ||
| 509 | { | ||
| 510 | handler(this, args); | ||
| 511 | } | ||
| 512 | } | ||
| 513 | |||
| 514 | /// <summary> | ||
| 500 | /// Called by the engine, raises the <see cref="PlanPackageBegin"/> event. | 515 | /// Called by the engine, raises the <see cref="PlanPackageBegin"/> event. |
| 501 | /// </summary> | 516 | /// </summary> |
| 502 | /// <param name="args">Additional arguments for this event.</param> | 517 | /// <param name="args">Additional arguments for this event.</param> |
| @@ -1378,6 +1393,16 @@ namespace WixToolset.Mba.Core | |||
| 1378 | return args.HResult; | 1393 | return args.HResult; |
| 1379 | } | 1394 | } |
| 1380 | 1395 | ||
| 1396 | int IBootstrapperApplication.OnPlanRollbackBoundary(string wzRollbackBoundaryId, bool fRecommendedTransaction, ref bool fTransaction, ref bool fCancel) | ||
| 1397 | { | ||
| 1398 | PlanRollbackBoundaryEventArgs args = new PlanRollbackBoundaryEventArgs(wzRollbackBoundaryId, fRecommendedTransaction, fTransaction, fCancel); | ||
| 1399 | this.OnPlanRollbackBoundary(args); | ||
| 1400 | |||
| 1401 | fTransaction = args.Transaction; | ||
| 1402 | fCancel = args.Cancel; | ||
| 1403 | return args.HResult; | ||
| 1404 | } | ||
| 1405 | |||
| 1381 | int IBootstrapperApplication.OnPlanPackageBegin(string wzPackageId, PackageState state, bool fCached, BOOTSTRAPPER_PACKAGE_CONDITION_RESULT installCondition, RequestState recommendedState, BOOTSTRAPPER_CACHE_TYPE recommendedCacheType, ref RequestState pRequestedState, ref BOOTSTRAPPER_CACHE_TYPE pRequestedCacheType, ref bool fCancel) | 1406 | int IBootstrapperApplication.OnPlanPackageBegin(string wzPackageId, PackageState state, bool fCached, BOOTSTRAPPER_PACKAGE_CONDITION_RESULT installCondition, RequestState recommendedState, BOOTSTRAPPER_CACHE_TYPE recommendedCacheType, ref RequestState pRequestedState, ref BOOTSTRAPPER_CACHE_TYPE pRequestedCacheType, ref bool fCancel) |
| 1382 | { | 1407 | { |
| 1383 | PlanPackageBeginEventArgs args = new PlanPackageBeginEventArgs(wzPackageId, state, fCached, installCondition, recommendedState, recommendedCacheType, pRequestedState, pRequestedCacheType, fCancel); | 1408 | PlanPackageBeginEventArgs args = new PlanPackageBeginEventArgs(wzPackageId, state, fCached, installCondition, recommendedState, recommendedCacheType, pRequestedState, pRequestedCacheType, fCancel); |
