diff options
| author | Bob Arnson <bob@firegiant.com> | 2026-02-10 20:33:03 -0500 |
|---|---|---|
| committer | Bob Arnson <bob@firegiant.com> | 2026-02-10 20:33:03 -0500 |
| commit | 702b38fe565781f3bfc5b1d92a3404b535ace2a1 (patch) | |
| tree | 1eb70c137c84ae7c9d8c73370c7e39b4cf76a377 /src/burn/engine/plan.cpp | |
| parent | cd5f73d939b6d91ce3d9efcc5b8a800542041698 (diff) | |
| download | wix-702b38fe565781f3bfc5b1d92a3404b535ace2a1.tar.gz wix-702b38fe565781f3bfc5b1d92a3404b535ace2a1.tar.bz2 wix-702b38fe565781f3bfc5b1d92a3404b535ace2a1.zip | |
Log detected package scope and lock bundle scope.bob/BurnScopeDetect
- Fixes https://github.com/wixtoolset/issues/issues/9232
- Fixes https://github.com/wixtoolset/issues/issues/9240
Diffstat (limited to 'src/burn/engine/plan.cpp')
| -rw-r--r-- | src/burn/engine/plan.cpp | 10 |
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; |
