aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Mba.Core/EventArgs.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Mba.Core/EventArgs.cs')
-rw-r--r--src/WixToolset.Mba.Core/EventArgs.cs74
1 files changed, 73 insertions, 1 deletions
diff --git a/src/WixToolset.Mba.Core/EventArgs.cs b/src/WixToolset.Mba.Core/EventArgs.cs
index ca0fa173..e739a853 100644
--- a/src/WixToolset.Mba.Core/EventArgs.cs
+++ b/src/WixToolset.Mba.Core/EventArgs.cs
@@ -996,6 +996,64 @@ namespace WixToolset.Mba.Core
996 } 996 }
997 997
998 /// <summary> 998 /// <summary>
999 /// Additional arguments used when the engine is planning an MSI or MSP package.
1000 /// </summary>
1001 [Serializable]
1002 public class PlanMsiPackageEventArgs : CancellableHResultEventArgs
1003 {
1004 /// <summary>
1005 /// Creates a new instance of the <see cref="PlanMsiPackageEventArgs"/> class.
1006 /// </summary>
1007 /// <param name="packageId">The identity of the package planned for.</param>
1008 /// <param name="shouldExecute">Whether the package is planned to execute or roll back.</param>
1009 /// <param name="action">The action planned for the package.</param>
1010 /// <param name="cancelRecommendation">The recommendation from the engine.</param>
1011 /// <param name="actionMsiProperty">The requested MSI property to add.</param>
1012 /// <param name="uiLevel">The requested internal UI level.</param>
1013 /// <param name="disableExternalUiHandler">Whether Burn is requested to set up an external UI handler.</param>
1014 public PlanMsiPackageEventArgs(string packageId, bool shouldExecute, ActionState action, bool cancelRecommendation, BURN_MSI_PROPERTY actionMsiProperty, INSTALLUILEVEL uiLevel, bool disableExternalUiHandler)
1015 : base(cancelRecommendation)
1016 {
1017 this.PackageId = packageId;
1018 this.ShouldExecute = shouldExecute;
1019 this.Action = action;
1020 this.ActionMsiProperty = actionMsiProperty;
1021 this.UiLevel = uiLevel;
1022 this.DisableExternalUiHandler = disableExternalUiHandler;
1023 }
1024
1025 /// <summary>
1026 /// Gets identity of the package planned for.
1027 /// </summary>
1028 public string PackageId { get; private set; }
1029
1030 /// <summary>
1031 /// Gets whether the package is planned to execute or roll back.
1032 /// </summary>
1033 public bool ShouldExecute { get; private set; }
1034
1035 /// <summary>
1036 /// Gets the action planned for the package.
1037 /// </summary>
1038 public ActionState Action { get; private set; }
1039
1040 /// <summary>
1041 /// Gets or sets the requested MSI property to add.
1042 /// </summary>
1043 public BURN_MSI_PROPERTY ActionMsiProperty { get; set; }
1044
1045 /// <summary>
1046 /// Gets or sets the requested internal UI level.
1047 /// </summary>
1048 public INSTALLUILEVEL UiLevel { get; set; }
1049
1050 /// <summary>
1051 /// Gets or sets whether Burn is requested to set up an external UI handler.
1052 /// </summary>
1053 public bool DisableExternalUiHandler { get; set; }
1054 }
1055
1056 /// <summary>
999 /// Additional arguments used when then engine has completed planning the installation of a specific package. 1057 /// Additional arguments used when then engine has completed planning the installation of a specific package.
1000 /// </summary> 1058 /// </summary>
1001 [Serializable] 1059 [Serializable]
@@ -1503,13 +1561,17 @@ namespace WixToolset.Mba.Core
1503 /// <param name="packageId">The identity of the package to act on.</param> 1561 /// <param name="packageId">The identity of the package to act on.</param>
1504 /// <param name="shouldExecute">Whether the package is being executed or rolled back.</param> 1562 /// <param name="shouldExecute">Whether the package is being executed or rolled back.</param>
1505 /// <param name="action">The action about to be executed.</param> 1563 /// <param name="action">The action about to be executed.</param>
1564 /// <param name="uiLevel">The internal UI level (if this is an MSI or MSP package).</param>
1565 /// <param name="disableExternalUiHandler">Whether Burn will set up an external UI handler (if this is an MSI or MSP package).</param>
1506 /// <param name="cancelRecommendation">The recommendation from the engine.</param> 1566 /// <param name="cancelRecommendation">The recommendation from the engine.</param>
1507 public ExecutePackageBeginEventArgs(string packageId, bool shouldExecute, ActionState action, bool cancelRecommendation) 1567 public ExecutePackageBeginEventArgs(string packageId, bool shouldExecute, ActionState action, INSTALLUILEVEL uiLevel, bool disableExternalUiHandler, bool cancelRecommendation)
1508 : base(cancelRecommendation) 1568 : base(cancelRecommendation)
1509 { 1569 {
1510 this.PackageId = packageId; 1570 this.PackageId = packageId;
1511 this.ShouldExecute = shouldExecute; 1571 this.ShouldExecute = shouldExecute;
1512 this.Action = action; 1572 this.Action = action;
1573 this.UiLevel = uiLevel;
1574 this.DisableExternalUiHandler = disableExternalUiHandler;
1513 } 1575 }
1514 1576
1515 /// <summary> 1577 /// <summary>
@@ -1526,6 +1588,16 @@ namespace WixToolset.Mba.Core
1526 /// Gets the action about to be executed. 1588 /// Gets the action about to be executed.
1527 /// </summary> 1589 /// </summary>
1528 public ActionState Action { get; private set; } 1590 public ActionState Action { get; private set; }
1591
1592 /// <summary>
1593 /// Gets the internal UI level (if this is an MSI or MSP package).
1594 /// </summary>
1595 public INSTALLUILEVEL UiLevel { get; private set; }
1596
1597 /// <summary>
1598 /// Gets whether Burn will set up an external UI handler (if this is an MSI or MSP package).
1599 /// </summary>
1600 public bool DisableExternalUiHandler { get; private set; }
1529 } 1601 }
1530 1602
1531 /// <summary> 1603 /// <summary>