diff options
Diffstat (limited to 'src/WixToolset.WixBA/ProgressViewModel.cs')
-rw-r--r-- | src/WixToolset.WixBA/ProgressViewModel.cs | 18 |
1 files changed, 18 insertions, 0 deletions
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 | |||
33 | WixBA.Model.Bootstrapper.ExecutePackageBegin += this.ExecutePackageBegin; | 33 | WixBA.Model.Bootstrapper.ExecutePackageBegin += this.ExecutePackageBegin; |
34 | WixBA.Model.Bootstrapper.ExecutePackageComplete += this.ExecutePackageComplete; | 34 | WixBA.Model.Bootstrapper.ExecutePackageComplete += this.ExecutePackageComplete; |
35 | WixBA.Model.Bootstrapper.ExecuteProgress += this.ApplyExecuteProgress; | 35 | WixBA.Model.Bootstrapper.ExecuteProgress += this.ApplyExecuteProgress; |
36 | WixBA.Model.Bootstrapper.PauseAutomaticUpdatesBegin += this.PauseAutomaticUpdatesBegin; | ||
37 | WixBA.Model.Bootstrapper.SystemRestorePointBegin += this.SystemRestorePointBegin; | ||
36 | WixBA.Model.Bootstrapper.PlanBegin += this.PlanBegin; | 38 | WixBA.Model.Bootstrapper.PlanBegin += this.PlanBegin; |
37 | WixBA.Model.Bootstrapper.PlanPackageComplete += this.PlanPackageComplete; | 39 | WixBA.Model.Bootstrapper.PlanPackageComplete += this.PlanPackageComplete; |
38 | WixBA.Model.Bootstrapper.ApplyBegin += this.ApplyBegin; | 40 | WixBA.Model.Bootstrapper.ApplyBegin += this.ApplyBegin; |
@@ -143,6 +145,22 @@ namespace WixToolset.WixBA | |||
143 | } | 145 | } |
144 | } | 146 | } |
145 | 147 | ||
148 | private void PauseAutomaticUpdatesBegin(object sender, PauseAutomaticUpdatesBeginEventArgs e) | ||
149 | { | ||
150 | lock (this) | ||
151 | { | ||
152 | this.Message = "Pausing Windows automatic updates"; | ||
153 | } | ||
154 | } | ||
155 | |||
156 | private void SystemRestorePointBegin(object sender, SystemRestorePointBeginEventArgs e) | ||
157 | { | ||
158 | lock (this) | ||
159 | { | ||
160 | this.Message = "Creating system restore point"; | ||
161 | } | ||
162 | } | ||
163 | |||
146 | private void ApplyBegin(object sender, ApplyBeginEventArgs e) | 164 | private void ApplyBegin(object sender, ApplyBeginEventArgs e) |
147 | { | 165 | { |
148 | this.progressPhases = e.PhaseCount; | 166 | this.progressPhases = e.PhaseCount; |