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/burn/test/BurnUnitTest/RegistrationTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/burn/test/BurnUnitTest/RegistrationTest.cpp') diff --git a/src/burn/test/BurnUnitTest/RegistrationTest.cpp b/src/burn/test/BurnUnitTest/RegistrationTest.cpp index 6a10961d..86ea86b0 100644 --- a/src/burn/test/BurnUnitTest/RegistrationTest.cpp +++ b/src/burn/test/BurnUnitTest/RegistrationTest.cpp @@ -218,7 +218,7 @@ namespace Bootstrapper // verify that registration was updated this->ValidateUninstallKeyResume(Int32(BURN_RESUME_MODE_ARP)); - this->ValidateUninstallKeyInstalled(1); + this->ValidateUninstallKeyInstalled(0); this->ValidateRunOnceKeyString(TEST_BUNDLE_ID, nullptr); // @@ -231,7 +231,7 @@ namespace Bootstrapper // verify that registration was updated this->ValidateUninstallKeyResume(Int32(BURN_RESUME_MODE_ACTIVE)); - this->ValidateUninstallKeyInstalled(1); + this->ValidateUninstallKeyInstalled(0); this->ValidateRunOnceKeyEntry(cacheExePath); // delete registration @@ -337,7 +337,7 @@ namespace Bootstrapper // verify that registration variables were updated this->ValidateUninstallKeyDisplayName(L"Product1"); - registration.fInstalled = TRUE; + registration.detectedRegistrationType = BOOTSTRAPPER_REGISTRATION_TYPE_FULL; hr = RegistrationSetVariables(®istration, &variables); TestThrowOnFailure(hr, L"Failed to set registration variables."); -- cgit v1.2.3-55-g6feb