diff options
Diffstat (limited to 'src/api/burn/balutil')
| -rw-r--r-- | src/api/burn/balutil/BalBootstrapperEngine.cpp | 13 | ||||
| -rw-r--r-- | src/api/burn/balutil/inc/BootstrapperApplicationBase.h | 14 | ||||
| -rw-r--r-- | src/api/burn/balutil/inc/IBootstrapperEngine.h | 3 |
3 files changed, 21 insertions, 9 deletions
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 | |||
| 1188 | } | 1188 | } |
| 1189 | 1189 | ||
| 1190 | virtual STDMETHODIMP Plan( | 1190 | virtual STDMETHODIMP Plan( |
| 1191 | __in BOOTSTRAPPER_ACTION action | 1191 | __in BOOTSTRAPPER_ACTION action, |
| 1192 | __in BOOTSTRAPPER_SCOPE plannedScope | ||
| 1192 | ) | 1193 | ) |
| 1193 | { | 1194 | { |
| 1194 | HRESULT hr = S_OK; | 1195 | HRESULT hr = S_OK; |
| @@ -1199,17 +1200,21 @@ public: // IBootstrapperEngine | |||
| 1199 | PIPE_RPC_RESULT rpc = { }; | 1200 | PIPE_RPC_RESULT rpc = { }; |
| 1200 | 1201 | ||
| 1201 | // Init send structs. | 1202 | // Init send structs. |
| 1202 | args.dwApiVersion = WIX_5_BOOTSTRAPPER_APPLICATION_API_VERSION; | 1203 | args.dwApiVersion = WIX_7_BOOTSTRAPPER_APPLICATION_API_VERSION; |
| 1203 | args.action = action; | 1204 | args.action = action; |
| 1205 | args.plannedScope = plannedScope; | ||
| 1204 | 1206 | ||
| 1205 | results.dwApiVersion = WIX_5_BOOTSTRAPPER_APPLICATION_API_VERSION; | 1207 | results.dwApiVersion = WIX_7_BOOTSTRAPPER_APPLICATION_API_VERSION; |
| 1206 | 1208 | ||
| 1207 | // Send args. | 1209 | // Send args. |
| 1208 | hr = BuffWriteNumberToBuffer(&bufferArgs, args.dwApiVersion); | 1210 | hr = BuffWriteNumberToBuffer(&bufferArgs, args.dwApiVersion); |
| 1209 | ExitOnFailure(hr, "Failed to write API version of Plan args."); | 1211 | ExitOnFailure(hr, "Failed to write API version of Plan args."); |
| 1210 | 1212 | ||
| 1211 | hr = BuffWriteNumberToBuffer(&bufferArgs, static_cast<DWORD>(args.action)); | 1213 | hr = BuffWriteNumberToBuffer(&bufferArgs, static_cast<DWORD>(args.action)); |
| 1212 | ExitOnFailure(hr, "Failed to write parent window of Plan args."); | 1214 | ExitOnFailure(hr, "Failed to write action of Plan args."); |
| 1215 | |||
| 1216 | hr = BuffWriteNumberToBuffer(&bufferArgs, static_cast<DWORD>(args.plannedScope)); | ||
| 1217 | ExitOnFailure(hr, "Failed to write planned scope of Plan args."); | ||
| 1213 | 1218 | ||
| 1214 | // Send results. | 1219 | // Send results. |
| 1215 | hr = BuffWriteNumberToBuffer(&bufferResults, results.dwApiVersion); | 1220 | hr = BuffWriteNumberToBuffer(&bufferResults, results.dwApiVersion); |
diff --git a/src/api/burn/balutil/inc/BootstrapperApplicationBase.h b/src/api/burn/balutil/inc/BootstrapperApplicationBase.h index 80bfd361..41c151d9 100644 --- a/src/api/burn/balutil/inc/BootstrapperApplicationBase.h +++ b/src/api/burn/balutil/inc/BootstrapperApplicationBase.h | |||
| @@ -16,7 +16,7 @@ class CBootstrapperApplicationBase : public IBootstrapperApplication | |||
| 16 | public: // IUnknown | 16 | public: // IUnknown |
| 17 | virtual STDMETHODIMP QueryInterface( | 17 | virtual STDMETHODIMP QueryInterface( |
| 18 | __in REFIID riid, | 18 | __in REFIID riid, |
| 19 | __out LPVOID *ppvObject | 19 | __out LPVOID* ppvObject |
| 20 | ) | 20 | ) |
| 21 | { | 21 | { |
| 22 | if (!ppvObject) | 22 | if (!ppvObject) |
| @@ -478,12 +478,14 @@ public: // IBootstrapperApplication | |||
| 478 | __in DWORD dwCode, | 478 | __in DWORD dwCode, |
| 479 | __in_z LPCWSTR wzError, | 479 | __in_z LPCWSTR wzError, |
| 480 | __in DWORD dwUIHint, | 480 | __in DWORD dwUIHint, |
| 481 | __in DWORD /*cData*/, | 481 | __in DWORD cData, |
| 482 | __in_ecount_z_opt(cData) LPCWSTR* /*rgwzData*/, | 482 | __in_ecount_z_opt(cData) LPCWSTR* /*rgwzData*/, |
| 483 | __in int /*nRecommendation*/, | 483 | __in int /*nRecommendation*/, |
| 484 | __inout int* pResult | 484 | __inout int* pResult |
| 485 | ) | 485 | ) |
| 486 | { | 486 | { |
| 487 | UNREFERENCED_PARAMETER(cData); | ||
| 488 | |||
| 487 | BalRetryErrorOccurred(wzPackageId, dwCode); | 489 | BalRetryErrorOccurred(wzPackageId, dwCode); |
| 488 | 490 | ||
| 489 | if (BOOTSTRAPPER_DISPLAY_EMBEDDED == m_commandDisplay) | 491 | if (BOOTSTRAPPER_DISPLAY_EMBEDDED == m_commandDisplay) |
| @@ -781,12 +783,14 @@ public: // IBootstrapperApplication | |||
| 781 | __in INSTALLMESSAGE /*messageType*/, | 783 | __in INSTALLMESSAGE /*messageType*/, |
| 782 | __in DWORD /*dwUIHint*/, | 784 | __in DWORD /*dwUIHint*/, |
| 783 | __in_z LPCWSTR /*wzMessage*/, | 785 | __in_z LPCWSTR /*wzMessage*/, |
| 784 | __in DWORD /*cData*/, | 786 | __in DWORD cData, |
| 785 | __in_ecount_z_opt(cData) LPCWSTR* /*rgwzData*/, | 787 | __in_ecount_z_opt(cData) LPCWSTR* /*rgwzData*/, |
| 786 | __in int /*nRecommendation*/, | 788 | __in int /*nRecommendation*/, |
| 787 | __inout int* pResult | 789 | __inout int* pResult |
| 788 | ) | 790 | ) |
| 789 | { | 791 | { |
| 792 | UNREFERENCED_PARAMETER(cData); | ||
| 793 | |||
| 790 | if (CheckCanceled()) | 794 | if (CheckCanceled()) |
| 791 | { | 795 | { |
| 792 | *pResult = IDCANCEL; | 796 | *pResult = IDCANCEL; |
| @@ -797,13 +801,15 @@ public: // IBootstrapperApplication | |||
| 797 | 801 | ||
| 798 | virtual STDMETHODIMP OnExecuteFilesInUse( | 802 | virtual STDMETHODIMP OnExecuteFilesInUse( |
| 799 | __in_z LPCWSTR /*wzPackageId*/, | 803 | __in_z LPCWSTR /*wzPackageId*/, |
| 800 | __in DWORD /*cFiles*/, | 804 | __in DWORD cFiles, |
| 801 | __in_ecount_z(cFiles) LPCWSTR* /*rgwzFiles*/, | 805 | __in_ecount_z(cFiles) LPCWSTR* /*rgwzFiles*/, |
| 802 | __in int /*nRecommendation*/, | 806 | __in int /*nRecommendation*/, |
| 803 | __in BOOTSTRAPPER_FILES_IN_USE_TYPE /*source*/, | 807 | __in BOOTSTRAPPER_FILES_IN_USE_TYPE /*source*/, |
| 804 | __inout int* pResult | 808 | __inout int* pResult |
| 805 | ) | 809 | ) |
| 806 | { | 810 | { |
| 811 | UNREFERENCED_PARAMETER(cFiles); | ||
| 812 | |||
| 807 | if (CheckCanceled()) | 813 | if (CheckCanceled()) |
| 808 | { | 814 | { |
| 809 | *pResult = IDCANCEL; | 815 | *pResult = IDCANCEL; |
diff --git a/src/api/burn/balutil/inc/IBootstrapperEngine.h b/src/api/burn/balutil/inc/IBootstrapperEngine.h index 57fc9be9..ad6e6042 100644 --- a/src/api/burn/balutil/inc/IBootstrapperEngine.h +++ b/src/api/burn/balutil/inc/IBootstrapperEngine.h | |||
| @@ -108,7 +108,8 @@ DECLARE_INTERFACE_IID_(IBootstrapperEngine, IUnknown, "6480D616-27A0-44D7-905B-8 | |||
| 108 | ) = 0; | 108 | ) = 0; |
| 109 | 109 | ||
| 110 | STDMETHOD(Plan)( | 110 | STDMETHOD(Plan)( |
| 111 | __in BOOTSTRAPPER_ACTION action | 111 | __in BOOTSTRAPPER_ACTION action, |
| 112 | __in BOOTSTRAPPER_SCOPE plannedScope | ||
| 112 | ) = 0; | 113 | ) = 0; |
| 113 | 114 | ||
| 114 | STDMETHOD(Elevate)( | 115 | STDMETHOD(Elevate)( |
