summaryrefslogtreecommitdiff
path: root/src/burn/engine/elevation.cpp
diff options
context:
space:
mode:
authorNir Bar <nir.bar@panel-sw.co.il>2021-08-12 14:16:01 -0500
committerSean Hall <r.sean.hall@gmail.com>2021-08-12 14:50:55 -0500
commitbb18c9c4f0e6da640775b85ebda68b31f2b391ed (patch)
tree5ce6107321293f7af7a0504588e3d0c6642472ff /src/burn/engine/elevation.cpp
parent0042e3d4554a0d92e1da6141854b0f1aafa07d5b (diff)
downloadwix-bb18c9c4f0e6da640775b85ebda68b31f2b391ed.tar.gz
wix-bb18c9c4f0e6da640775b85ebda68b31f2b391ed.tar.bz2
wix-bb18c9c4f0e6da640775b85ebda68b31f2b391ed.zip
Set the log file path for MSI transactions.
Diffstat (limited to 'src/burn/engine/elevation.cpp')
-rw-r--r--src/burn/engine/elevation.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/burn/engine/elevation.cpp b/src/burn/engine/elevation.cpp
index 0e1cf0b7..ba6b1dd3 100644
--- a/src/burn/engine/elevation.cpp
+++ b/src/burn/engine/elevation.cpp
@@ -3246,7 +3246,10 @@ static HRESULT OnMsiBeginTransaction(
3246 hr = PackageFindRollbackBoundaryById(pPackages, sczId, &pRollbackBoundary); 3246 hr = PackageFindRollbackBoundaryById(pPackages, sczId, &pRollbackBoundary);
3247 ExitOnFailure(hr, "Failed to find rollback boundary: %ls", sczId); 3247 ExitOnFailure(hr, "Failed to find rollback boundary: %ls", sczId);
3248 3248
3249 pRollbackBoundary->sczLogPath = sczLogPath; 3249 if (sczLogPath && *sczLogPath)
3250 {
3251 pRollbackBoundary->sczLogPath = sczLogPath;
3252 }
3250 3253
3251 hr = MsiEngineBeginTransaction(pRollbackBoundary); 3254 hr = MsiEngineBeginTransaction(pRollbackBoundary);
3252 3255
@@ -3284,7 +3287,10 @@ static HRESULT OnMsiCommitTransaction(
3284 hr = PackageFindRollbackBoundaryById(pPackages, sczId, &pRollbackBoundary); 3287 hr = PackageFindRollbackBoundaryById(pPackages, sczId, &pRollbackBoundary);
3285 ExitOnFailure(hr, "Failed to find rollback boundary: %ls", sczId); 3288 ExitOnFailure(hr, "Failed to find rollback boundary: %ls", sczId);
3286 3289
3287 pRollbackBoundary->sczLogPath = sczLogPath; 3290 if (sczLogPath && *sczLogPath)
3291 {
3292 pRollbackBoundary->sczLogPath = sczLogPath;
3293 }
3288 3294
3289 hr = MsiEngineCommitTransaction(pRollbackBoundary); 3295 hr = MsiEngineCommitTransaction(pRollbackBoundary);
3290 3296
@@ -3322,7 +3328,10 @@ static HRESULT OnMsiRollbackTransaction(
3322 hr = PackageFindRollbackBoundaryById(pPackages, sczId, &pRollbackBoundary); 3328 hr = PackageFindRollbackBoundaryById(pPackages, sczId, &pRollbackBoundary);
3323 ExitOnFailure(hr, "Failed to find rollback boundary: %ls", sczId); 3329 ExitOnFailure(hr, "Failed to find rollback boundary: %ls", sczId);
3324 3330
3325 pRollbackBoundary->sczLogPath = sczLogPath; 3331 if (sczLogPath && *sczLogPath)
3332 {
3333 pRollbackBoundary->sczLogPath = sczLogPath;
3334 }
3326 3335
3327 hr = MsiEngineRollbackTransaction(pRollbackBoundary); 3336 hr = MsiEngineRollbackTransaction(pRollbackBoundary);
3328 3337