aboutsummaryrefslogtreecommitdiff
path: root/src/burn/engine/bootstrapperapplication.cpp
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2025-02-11 05:21:34 -0800
committerRob Mensching <rob@firegiant.com>2025-02-11 15:49:33 -0800
commitf2e9af96142439ebfdbc1e884335bb8874f8a427 (patch)
treef3ffd15660a7041d1f70d793e2b2200ccbe42af5 /src/burn/engine/bootstrapperapplication.cpp
parent81fb512834c65b0a8f99c3a266879c476e382875 (diff)
downloadwix-f2e9af96142439ebfdbc1e884335bb8874f8a427.tar.gz
wix-f2e9af96142439ebfdbc1e884335bb8874f8a427.tar.bz2
wix-f2e9af96142439ebfdbc1e884335bb8874f8a427.zip
Harden Burn's BootstrapperApplication and elevated engine extraction
Fixes 8914
Diffstat (limited to 'src/burn/engine/bootstrapperapplication.cpp')
-rw-r--r--src/burn/engine/bootstrapperapplication.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/burn/engine/bootstrapperapplication.cpp b/src/burn/engine/bootstrapperapplication.cpp
index 947b3720..dc3bd5da 100644
--- a/src/burn/engine/bootstrapperapplication.cpp
+++ b/src/burn/engine/bootstrapperapplication.cpp
@@ -306,6 +306,14 @@ EXTERN_C HRESULT BootstrapperApplicationRemove(
306{ 306{
307 HRESULT hr = S_OK; 307 HRESULT hr = S_OK;
308 308
309 // Release any open file handles so we can try to recursively delete the temp folder.
310 for (DWORD i = 0; i < pUserExperience->payloads.cPayloads; ++i)
311 {
312 BURN_PAYLOAD* pPayload = pUserExperience->payloads.rgPayloads + i;
313
314 ReleaseFileHandle(pPayload->hLocalFile);
315 }
316
309 // Remove temporary UX directory 317 // Remove temporary UX directory
310 if (pUserExperience->sczTempDirectory) 318 if (pUserExperience->sczTempDirectory)
311 { 319 {