diff options
| author | Bob Arnson <bob@firegiant.com> | 2026-02-04 20:47:04 -0500 |
|---|---|---|
| committer | Bob Arnson <bob@firegiant.com> | 2026-02-04 20:47:04 -0500 |
| commit | edccb203c421d2bd820062024088c6698424d9ee (patch) | |
| tree | 6b47c3eb5ca53bd9f79f3d032dc1a596d411bf38 /src/ext/Bal/stdbas | |
| parent | a3d3963f806117ce123d95e8b77e73e1c1545b25 (diff) | |
| download | wix-bob/ConfigurableScopeBundles.tar.gz wix-bob/ConfigurableScopeBundles.tar.bz2 wix-bob/ConfigurableScopeBundles.zip | |
Support dual-purpose packages in Burn.bob/ConfigurableScopeBundles
Fixes https://github.com/wixtoolset/issues/issues/8958
Diffstat (limited to 'src/ext/Bal/stdbas')
| -rw-r--r-- | src/ext/Bal/stdbas/WixInternalUIBootstrapperApplication.cpp | 5 | ||||
| -rw-r--r-- | src/ext/Bal/stdbas/WixStandardBootstrapperApplication.cpp | 12 |
2 files changed, 9 insertions, 8 deletions
diff --git a/src/ext/Bal/stdbas/WixInternalUIBootstrapperApplication.cpp b/src/ext/Bal/stdbas/WixInternalUIBootstrapperApplication.cpp index bae098d4..e746ff75 100644 --- a/src/ext/Bal/stdbas/WixInternalUIBootstrapperApplication.cpp +++ b/src/ext/Bal/stdbas/WixInternalUIBootstrapperApplication.cpp | |||
| @@ -708,7 +708,10 @@ private: | |||
| 708 | 708 | ||
| 709 | m_plannedAction = action; | 709 | m_plannedAction = action; |
| 710 | 710 | ||
| 711 | hr = m_pEngine->Plan(action); | 711 | // InternalUiBootstrapperApplication isn't in a position to let the user |
| 712 | // choose the scope, so we use the default. Unfortunately, a scope choice | ||
| 713 | // in the MSI UI can't "flow" back to affect bundle scope. | ||
| 714 | hr = m_pEngine->Plan(action, BOOTSTRAPPER_SCOPE_DEFAULT); | ||
| 712 | BalExitOnFailure(hr, "Failed to start planning packages."); | 715 | BalExitOnFailure(hr, "Failed to start planning packages."); |
| 713 | 716 | ||
| 714 | LExit: | 717 | LExit: |
diff --git a/src/ext/Bal/stdbas/WixStandardBootstrapperApplication.cpp b/src/ext/Bal/stdbas/WixStandardBootstrapperApplication.cpp index c1e8b2b3..74c6b4db 100644 --- a/src/ext/Bal/stdbas/WixStandardBootstrapperApplication.cpp +++ b/src/ext/Bal/stdbas/WixStandardBootstrapperApplication.cpp | |||
| @@ -3420,7 +3420,7 @@ private: | |||
| 3420 | 3420 | ||
| 3421 | 3421 | ||
| 3422 | static LRESULT CallDefaultWndProc( | 3422 | static LRESULT CallDefaultWndProc( |
| 3423 | __in CWixStandardBootstrapperApplication* pBA, | 3423 | __in_opt CWixStandardBootstrapperApplication* pBA, |
| 3424 | __in HWND hWnd, | 3424 | __in HWND hWnd, |
| 3425 | __in UINT uMsg, | 3425 | __in UINT uMsg, |
| 3426 | __in WPARAM wParam, | 3426 | __in WPARAM wParam, |
| @@ -3824,7 +3824,7 @@ private: | |||
| 3824 | 3824 | ||
| 3825 | SetState(WIXSTDBA_STATE_PLANNING, hr); | 3825 | SetState(WIXSTDBA_STATE_PLANNING, hr); |
| 3826 | 3826 | ||
| 3827 | hr = m_pEngine->Plan(action); | 3827 | hr = m_pEngine->Plan(action, BOOTSTRAPPER_SCOPE_DEFAULT/*TODO*/); |
| 3828 | BalExitOnFailure(hr, "Failed to start planning packages."); | 3828 | BalExitOnFailure(hr, "Failed to start planning packages."); |
| 3829 | 3829 | ||
| 3830 | LExit: | 3830 | LExit: |
| @@ -3848,7 +3848,7 @@ private: | |||
| 3848 | 3848 | ||
| 3849 | SetState(WIXSTDBA_STATE_PLANNING_PREREQS, hr); | 3849 | SetState(WIXSTDBA_STATE_PLANNING_PREREQS, hr); |
| 3850 | 3850 | ||
| 3851 | hr = m_pEngine->Plan(action); | 3851 | hr = m_pEngine->Plan(action, BOOTSTRAPPER_SCOPE_DEFAULT); |
| 3852 | BalExitOnFailure(hr, "Failed to start planning prereq packages."); | 3852 | BalExitOnFailure(hr, "Failed to start planning prereq packages."); |
| 3853 | 3853 | ||
| 3854 | LExit: | 3854 | LExit: |
| @@ -4546,6 +4546,8 @@ LExit: | |||
| 4546 | __out DWORD* pdwPageId | 4546 | __out DWORD* pdwPageId |
| 4547 | ) | 4547 | ) |
| 4548 | { | 4548 | { |
| 4549 | *pdwPageId = 0; | ||
| 4550 | |||
| 4549 | if (BOOTSTRAPPER_DISPLAY_PASSIVE == m_commandDisplay) | 4551 | if (BOOTSTRAPPER_DISPLAY_PASSIVE == m_commandDisplay) |
| 4550 | { | 4552 | { |
| 4551 | switch (state) | 4553 | switch (state) |
| @@ -4574,10 +4576,6 @@ LExit: | |||
| 4574 | case WIXSTDBA_STATE_EXECUTED: | 4576 | case WIXSTDBA_STATE_EXECUTED: |
| 4575 | *pdwPageId = m_rgdwPageIds[WIXSTDBA_PAGE_PROGRESS_PASSIVE] ? m_rgdwPageIds[WIXSTDBA_PAGE_PROGRESS_PASSIVE] : m_rgdwPageIds[WIXSTDBA_PAGE_PROGRESS]; | 4577 | *pdwPageId = m_rgdwPageIds[WIXSTDBA_PAGE_PROGRESS_PASSIVE] ? m_rgdwPageIds[WIXSTDBA_PAGE_PROGRESS_PASSIVE] : m_rgdwPageIds[WIXSTDBA_PAGE_PROGRESS]; |
| 4576 | break; | 4578 | break; |
| 4577 | |||
| 4578 | default: | ||
| 4579 | *pdwPageId = 0; | ||
| 4580 | break; | ||
| 4581 | } | 4579 | } |
| 4582 | } | 4580 | } |
| 4583 | else if (BOOTSTRAPPER_DISPLAY_FULL == m_commandDisplay) | 4581 | else if (BOOTSTRAPPER_DISPLAY_FULL == m_commandDisplay) |
