From e027c6c571a4bc8c818244e2b0c5015eb4ef3110 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Fri, 4 Mar 2022 17:55:17 -0600 Subject: Change ARP property Installed to 0 when registrationType is InProgress. Being registered in ARP and "installed" were always separate concepts, and some things like fEligibleForCleanup were looking at the wrong thing. This also allows the BA to tell the difference. --- src/test/burn/WixToolset.WixBA/InstallationViewModel.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/test') diff --git a/src/test/burn/WixToolset.WixBA/InstallationViewModel.cs b/src/test/burn/WixToolset.WixBA/InstallationViewModel.cs index e056b943..3a71779a 100644 --- a/src/test/burn/WixToolset.WixBA/InstallationViewModel.cs +++ b/src/test/burn/WixToolset.WixBA/InstallationViewModel.cs @@ -53,9 +53,9 @@ namespace WixToolset.WixBA /// public class InstallationViewModel : PropertyNotifyBase { - private RootViewModel root; + private readonly RootViewModel root; - private Dictionary downloadRetries; + private readonly Dictionary downloadRetries; private bool downgrade; private string downgradeMessage; @@ -407,7 +407,7 @@ namespace WixToolset.WixBA private void DetectBegin(object sender, DetectBeginEventArgs e) { - this.root.DetectState = e.Installed ? DetectionState.Present : DetectionState.Absent; + this.root.DetectState = RegistrationType.Full == e.RegistrationType ? DetectionState.Present : DetectionState.Absent; WixBA.Model.PlannedAction = LaunchAction.Unknown; } -- cgit v1.2.3-55-g6feb