aboutsummaryrefslogtreecommitdiff
path: root/src/burn/engine/plan.cpp
diff options
context:
space:
mode:
authorBob Arnson <bob@firegiant.com>2026-02-10 20:33:03 -0500
committerBob Arnson <github@bobs.org>2026-02-11 13:21:20 -0500
commitde80ff1102a1b34e430bbc718fe65a42bab196cf (patch)
tree1eb70c137c84ae7c9d8c73370c7e39b4cf76a377 /src/burn/engine/plan.cpp
parentcd5f73d939b6d91ce3d9efcc5b8a800542041698 (diff)
downloadwix-de80ff1102a1b34e430bbc718fe65a42bab196cf.tar.gz
wix-de80ff1102a1b34e430bbc718fe65a42bab196cf.tar.bz2
wix-de80ff1102a1b34e430bbc718fe65a42bab196cf.zip
Log detected package scope and lock bundle scope.HEADmain
- Fixes https://github.com/wixtoolset/issues/issues/9232 - Fixes https://github.com/wixtoolset/issues/issues/9240
Diffstat (limited to '')
-rw-r--r--src/burn/engine/plan.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/burn/engine/plan.cpp b/src/burn/engine/plan.cpp
index 6c46269b..889ad68c 100644
--- a/src/burn/engine/plan.cpp
+++ b/src/burn/engine/plan.cpp
@@ -342,7 +342,7 @@ extern "C" HRESULT PlanSetVariables(
342 hr = VariableSetNumeric(pVariables, BURN_BUNDLE_ACTION, action, TRUE); 342 hr = VariableSetNumeric(pVariables, BURN_BUNDLE_ACTION, action, TRUE);
343 ExitOnFailure(hr, "Failed to set the bundle action built-in variable."); 343 ExitOnFailure(hr, "Failed to set the bundle action built-in variable.");
344 344
345 hr = VariableSetNumeric(pVariables, BURN_BUNDLE_SCOPE, authoredScope, TRUE); 345 hr = VariableSetNumeric(pVariables, BURN_BUNDLE_AUTHORED_SCOPE, authoredScope, TRUE);
346 ExitOnFailure(hr, "Failed to set the bundle authored scope built-in variable."); 346 ExitOnFailure(hr, "Failed to set the bundle authored scope built-in variable.");
347 347
348 hr = VariableSetNumeric(pVariables, BURN_BUNDLE_PLANNED_SCOPE, plannedScope, TRUE); 348 hr = VariableSetNumeric(pVariables, BURN_BUNDLE_PLANNED_SCOPE, plannedScope, TRUE);
@@ -826,6 +826,7 @@ extern "C" HRESULT PlanPackagesAndBundleScope(
826 __in BOOTSTRAPPER_SCOPE scope, 826 __in BOOTSTRAPPER_SCOPE scope,
827 __in BOOTSTRAPPER_PACKAGE_SCOPE authoredScope, 827 __in BOOTSTRAPPER_PACKAGE_SCOPE authoredScope,
828 __in BOOTSTRAPPER_SCOPE commandLineScope, 828 __in BOOTSTRAPPER_SCOPE commandLineScope,
829 __in BOOTSTRAPPER_SCOPE detectedScope,
829 __out BOOTSTRAPPER_SCOPE* pResultingScope, 830 __out BOOTSTRAPPER_SCOPE* pResultingScope,
830 __out BOOL* pfRegistrationPerMachine 831 __out BOOL* pfRegistrationPerMachine
831) 832)
@@ -854,6 +855,13 @@ extern "C" HRESULT PlanPackagesAndBundleScope(
854 } 855 }
855 } 856 }
856 857
858 if (BOOTSTRAPPER_SCOPE_DEFAULT != detectedScope)
859 {
860 scope = detectedScope;
861
862 LogId(REPORT_WARNING, MSG_PLAN_INSTALLED_SCOPE, LoggingBundleScopeToString(detectedScope));
863 }
864
857 for (DWORD i = 0; i < cPackages; ++i) 865 for (DWORD i = 0; i < cPackages; ++i)
858 { 866 {
859 BURN_PACKAGE* pPackage = rgPackages + i; 867 BURN_PACKAGE* pPackage = rgPackages + i;