aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2021-03-09 13:46:58 -0600
committerSean Hall <r.sean.hall@gmail.com>2021-03-09 14:34:45 -0600
commit8b25ff41809c63c92d5acb06a3f8792cb58170e6 (patch)
treef324f1cf12916cf758d5d329ec941e5b2f1bfa75 /src
parent838d10a319d0c35ed71fcd3e14d2a830883dbbbd (diff)
downloadwix-8b25ff41809c63c92d5acb06a3f8792cb58170e6.tar.gz
wix-8b25ff41809c63c92d5acb06a3f8792cb58170e6.tar.bz2
wix-8b25ff41809c63c92d5acb06a3f8792cb58170e6.zip
Consider the bundle as eligible for cleanup if running from the cache.
Diffstat (limited to 'src')
-rw-r--r--src/engine/detect.cpp2
1 files changed, 1 insertions, 1 deletions
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(
202 HRESULT hr = S_OK; 202 HRESULT hr = S_OK;
203 int nCompareResult = 0; 203 int nCompareResult = 0;
204 BOOTSTRAPPER_REQUEST_STATE uninstallRequestState = BOOTSTRAPPER_REQUEST_STATE_NONE; 204 BOOTSTRAPPER_REQUEST_STATE uninstallRequestState = BOOTSTRAPPER_REQUEST_STATE_NONE;
205 *pfEligibleForCleanup = pRegistration->fInstalled; 205 *pfEligibleForCleanup = pRegistration->fInstalled || CacheBundleRunningFromCache();
206 206
207 for (DWORD iRelatedBundle = 0; iRelatedBundle < pRegistration->relatedBundles.cRelatedBundles; ++iRelatedBundle) 207 for (DWORD iRelatedBundle = 0; iRelatedBundle < pRegistration->relatedBundles.cRelatedBundles; ++iRelatedBundle)
208 { 208 {