Consider the bundle as eligible for cleanup if running from the cache.
Sean Hall committed
Mar 9, 2021 at 13:46 UTC
8b25ff41809c63c92d5acb06a3f8792cb58170e6
1 file changed
+1
-1
src/engine/detect.cpp
+1
-1
@@ -202,7 +202,7 @@ extern "C" HRESULT DetectReportRelatedBundles(
202
HRESULT hr = S_OK;
203
int nCompareResult = 0;
204
BOOTSTRAPPER_REQUEST_STATE uninstallRequestState = BOOTSTRAPPER_REQUEST_STATE_NONE;
205
- *pfEligibleForCleanup = pRegistration->fInstalled;
205
+ *pfEligibleForCleanup = pRegistration->fInstalled || CacheBundleRunningFromCache();
206
207
for (DWORD iRelatedBundle = 0; iRelatedBundle < pRegistration->relatedBundles.cRelatedBundles; ++iRelatedBundle)
208
{