diff options
Diffstat (limited to 'src/test/burn/WixToolset.WixBA/UpdateViewModel.cs')
-rw-r--r-- | src/test/burn/WixToolset.WixBA/UpdateViewModel.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/test/burn/WixToolset.WixBA/UpdateViewModel.cs b/src/test/burn/WixToolset.WixBA/UpdateViewModel.cs index 80d894cb..dc98c858 100644 --- a/src/test/burn/WixToolset.WixBA/UpdateViewModel.cs +++ b/src/test/burn/WixToolset.WixBA/UpdateViewModel.cs | |||
@@ -38,6 +38,7 @@ namespace WixToolset.WixBA | |||
38 | WixBA.Model.Bootstrapper.DetectUpdateBegin += this.DetectUpdateBegin; | 38 | WixBA.Model.Bootstrapper.DetectUpdateBegin += this.DetectUpdateBegin; |
39 | WixBA.Model.Bootstrapper.DetectUpdate += this.DetectUpdate; | 39 | WixBA.Model.Bootstrapper.DetectUpdate += this.DetectUpdate; |
40 | WixBA.Model.Bootstrapper.DetectUpdateComplete += this.DetectUpdateComplete; | 40 | WixBA.Model.Bootstrapper.DetectUpdateComplete += this.DetectUpdateComplete; |
41 | WixBA.Model.Bootstrapper.DetectComplete += this.DetectComplete; | ||
41 | 42 | ||
42 | this.root.PropertyChanged += new PropertyChangedEventHandler(this.RootPropertyChanged); | 43 | this.root.PropertyChanged += new PropertyChangedEventHandler(this.RootPropertyChanged); |
43 | 44 | ||
@@ -201,7 +202,15 @@ namespace WixToolset.WixBA | |||
201 | else if ((LaunchAction.Uninstall == WixBA.Model.Command.Action) || (UpdateState.Initializing == this.State) || (UpdateState.Checking == this.State)) | 202 | else if ((LaunchAction.Uninstall == WixBA.Model.Command.Action) || (UpdateState.Initializing == this.State) || (UpdateState.Checking == this.State)) |
202 | { | 203 | { |
203 | this.State = UpdateState.Unknown; | 204 | this.State = UpdateState.Unknown; |
204 | } | 205 | } |
206 | } | ||
207 | |||
208 | private void DetectComplete(object sender, DetectCompleteEventArgs e) | ||
209 | { | ||
210 | if (this.State == UpdateState.Initializing || this.State == UpdateState.Checking) | ||
211 | { | ||
212 | this.State = UpdateState.Unknown; | ||
213 | } | ||
205 | } | 214 | } |
206 | } | 215 | } |
207 | } | 216 | } |