@joebigelow / wix / commits / 237fba1e

Always append Windows Installer logs in Burn.

Fixes #4828

Sean Hall committed Jul 6, 2021 at 10:59 UTC 237fba1e28e4f75068e509f38da7db1ba75fc0a9
2 files changed +2 -2
src/burn/engine/msiengine.cpp
+1 -1
@@ -1146,7 +1146,7 @@ extern "C" HRESULT MsiEngineExecutePackage(
1146
1147 if (pExecuteAction->msiPackage.sczLogPath && *pExecuteAction->msiPackage.sczLogPath)
1148 {
1149 - hr = WiuEnableLog(dwLogMode, pExecuteAction->msiPackage.sczLogPath, 0);
1149 + hr = WiuEnableLog(dwLogMode, pExecuteAction->msiPackage.sczLogPath, INSTALLLOGATTRIBUTES_APPEND);
1150 ExitOnFailure(hr, "Failed to enable logging for package: %ls to: %ls", pPackage->sczId, pExecuteAction->msiPackage.sczLogPath);
1151 }
1152
src/burn/engine/mspengine.cpp
+1 -1
@@ -623,7 +623,7 @@ extern "C" HRESULT MspEngineExecutePackage(
623
624 if (pExecuteAction->mspTarget.sczLogPath && *pExecuteAction->mspTarget.sczLogPath)
625 {
626 - hr = WiuEnableLog(dwLogMode, pExecuteAction->mspTarget.sczLogPath, 0);
626 + hr = WiuEnableLog(dwLogMode, pExecuteAction->mspTarget.sczLogPath, INSTALLLOGATTRIBUTES_APPEND);
627 ExitOnFailure(hr, "Failed to enable logging for package: %ls to: %ls", pExecuteAction->mspTarget.pPackage->sczId, pExecuteAction->mspTarget.sczLogPath);
628 }
629