diff options
Diffstat (limited to '')
| -rw-r--r-- | src/burn/engine/bootstrapperapplication.cpp | 8 |
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 | { |
