From 0db19b269e9b94a674e370629934e82545374777 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Wed, 5 May 2021 19:35:09 -0500 Subject: Update WixBA to Mba.Core 4.0.44. --- src/WixToolset.WixBA/ProgressViewModel.cs | 18 ++++++++++++++++++ src/WixToolset.WixBA/WixToolset.WixBA.csproj | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/WixToolset.WixBA/ProgressViewModel.cs b/src/WixToolset.WixBA/ProgressViewModel.cs index 081688ac..e4fb7ab2 100644 --- a/src/WixToolset.WixBA/ProgressViewModel.cs +++ b/src/WixToolset.WixBA/ProgressViewModel.cs @@ -33,6 +33,8 @@ namespace WixToolset.WixBA WixBA.Model.Bootstrapper.ExecutePackageBegin += this.ExecutePackageBegin; WixBA.Model.Bootstrapper.ExecutePackageComplete += this.ExecutePackageComplete; WixBA.Model.Bootstrapper.ExecuteProgress += this.ApplyExecuteProgress; + WixBA.Model.Bootstrapper.PauseAutomaticUpdatesBegin += this.PauseAutomaticUpdatesBegin; + WixBA.Model.Bootstrapper.SystemRestorePointBegin += this.SystemRestorePointBegin; WixBA.Model.Bootstrapper.PlanBegin += this.PlanBegin; WixBA.Model.Bootstrapper.PlanPackageComplete += this.PlanPackageComplete; WixBA.Model.Bootstrapper.ApplyBegin += this.ApplyBegin; @@ -143,6 +145,22 @@ namespace WixToolset.WixBA } } + private void PauseAutomaticUpdatesBegin(object sender, PauseAutomaticUpdatesBeginEventArgs e) + { + lock (this) + { + this.Message = "Pausing Windows automatic updates"; + } + } + + private void SystemRestorePointBegin(object sender, SystemRestorePointBeginEventArgs e) + { + lock (this) + { + this.Message = "Creating system restore point"; + } + } + private void ApplyBegin(object sender, ApplyBeginEventArgs e) { this.progressPhases = e.PhaseCount; diff --git a/src/WixToolset.WixBA/WixToolset.WixBA.csproj b/src/WixToolset.WixBA/WixToolset.WixBA.csproj index 16225233..03838bb1 100644 --- a/src/WixToolset.WixBA/WixToolset.WixBA.csproj +++ b/src/WixToolset.WixBA/WixToolset.WixBA.csproj @@ -41,6 +41,6 @@ - + \ No newline at end of file -- cgit v1.2.3-55-g6feb