From 8b25ff41809c63c92d5acb06a3f8792cb58170e6 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Tue, 9 Mar 2021 13:46:58 -0600 Subject: Consider the bundle as eligible for cleanup if running from the cache. --- src/engine/detect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/engine/detect.cpp b/src/engine/detect.cpp index 9bb58487..4265cf9b 100644 --- a/src/engine/detect.cpp +++ b/src/engine/detect.cpp @@ -202,7 +202,7 @@ extern "C" HRESULT DetectReportRelatedBundles( HRESULT hr = S_OK; int nCompareResult = 0; BOOTSTRAPPER_REQUEST_STATE uninstallRequestState = BOOTSTRAPPER_REQUEST_STATE_NONE; - *pfEligibleForCleanup = pRegistration->fInstalled; + *pfEligibleForCleanup = pRegistration->fInstalled || CacheBundleRunningFromCache(); for (DWORD iRelatedBundle = 0; iRelatedBundle < pRegistration->relatedBundles.cRelatedBundles; ++iRelatedBundle) { -- cgit v1.2.3-55-g6feb