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/PlanTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/burn/test/BurnUnitTest/PlanTest.cpp') diff --git a/src/burn/test/BurnUnitTest/PlanTest.cpp b/src/burn/test/BurnUnitTest/PlanTest.cpp index ba28713f..685d2ca9 100644 --- a/src/burn/test/BurnUnitTest/PlanTest.cpp +++ b/src/burn/test/BurnUnitTest/PlanTest.cpp @@ -792,7 +792,7 @@ namespace Bootstrapper InitializeEngineStateForCorePlan(wzSingleMsiManifestFileName, pEngineState); DetectPackagesAsAbsent(pEngineState); - pEngineState->registration.fInstalled = TRUE; + pEngineState->registration.detectedRegistrationType = BOOTSTRAPPER_REGISTRATION_TYPE_FULL; hr = CorePlan(pEngineState, BOOTSTRAPPER_ACTION_MODIFY); NativeAssert::Succeeded(hr, "CorePlan failed"); @@ -1457,7 +1457,7 @@ namespace Bootstrapper { PlanTestDetect(pEngineState); - pEngineState->registration.fInstalled = TRUE; + pEngineState->registration.detectedRegistrationType = BOOTSTRAPPER_REGISTRATION_TYPE_FULL; for (DWORD i = 0; i < pEngineState->packages.cPackages; ++i) { @@ -1486,7 +1486,7 @@ namespace Bootstrapper { PlanTestDetect(pEngineState); - pEngineState->registration.fInstalled = TRUE; + pEngineState->registration.detectedRegistrationType = BOOTSTRAPPER_REGISTRATION_TYPE_FULL; for (DWORD i = 0; i < pEngineState->packages.cPackages; ++i) { -- cgit v1.2.3-55-g6feb