From edccb203c421d2bd820062024088c6698424d9ee Mon Sep 17 00:00:00 2001 From: Bob Arnson Date: Wed, 4 Feb 2026 20:47:04 -0500 Subject: Support dual-purpose packages in Burn. Fixes https://github.com/wixtoolset/issues/issues/8958 --- src/api/burn/balutil/BalBootstrapperEngine.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/api/burn/balutil/BalBootstrapperEngine.cpp') diff --git a/src/api/burn/balutil/BalBootstrapperEngine.cpp b/src/api/burn/balutil/BalBootstrapperEngine.cpp index 61e7e31b..14aa5c25 100644 --- a/src/api/burn/balutil/BalBootstrapperEngine.cpp +++ b/src/api/burn/balutil/BalBootstrapperEngine.cpp @@ -1188,7 +1188,8 @@ public: // IBootstrapperEngine } virtual STDMETHODIMP Plan( - __in BOOTSTRAPPER_ACTION action + __in BOOTSTRAPPER_ACTION action, + __in BOOTSTRAPPER_SCOPE plannedScope ) { HRESULT hr = S_OK; @@ -1199,17 +1200,21 @@ public: // IBootstrapperEngine PIPE_RPC_RESULT rpc = { }; // Init send structs. - args.dwApiVersion = WIX_5_BOOTSTRAPPER_APPLICATION_API_VERSION; + args.dwApiVersion = WIX_7_BOOTSTRAPPER_APPLICATION_API_VERSION; args.action = action; + args.plannedScope = plannedScope; - results.dwApiVersion = WIX_5_BOOTSTRAPPER_APPLICATION_API_VERSION; + results.dwApiVersion = WIX_7_BOOTSTRAPPER_APPLICATION_API_VERSION; // Send args. hr = BuffWriteNumberToBuffer(&bufferArgs, args.dwApiVersion); ExitOnFailure(hr, "Failed to write API version of Plan args."); hr = BuffWriteNumberToBuffer(&bufferArgs, static_cast(args.action)); - ExitOnFailure(hr, "Failed to write parent window of Plan args."); + ExitOnFailure(hr, "Failed to write action of Plan args."); + + hr = BuffWriteNumberToBuffer(&bufferArgs, static_cast(args.plannedScope)); + ExitOnFailure(hr, "Failed to write planned scope of Plan args."); // Send results. hr = BuffWriteNumberToBuffer(&bufferResults, results.dwApiVersion); -- cgit v1.2.3-55-g6feb