diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2021-12-07 17:34:09 -0600 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2021-12-08 17:14:11 -0600 |
| commit | 19d85eed389fbd964f64c2fbb85e40ec20439d26 (patch) | |
| tree | 29adf2c191ea8a50153238ee457ff34f0d73d059 /src/api/burn/balutil | |
| parent | 5c7b1a8fa2b02ddd758c0c267f59b7e77b527f62 (diff) | |
| download | wix-19d85eed389fbd964f64c2fbb85e40ec20439d26.tar.gz wix-19d85eed389fbd964f64c2fbb85e40ec20439d26.tar.bz2 wix-19d85eed389fbd964f64c2fbb85e40ec20439d26.zip | |
Add ability to customize file versioning rules for MsiPackage and MspPackage.
Fixes #5911
Diffstat (limited to 'src/api/burn/balutil')
4 files changed, 10 insertions, 4 deletions
diff --git a/src/api/burn/balutil/inc/BalBaseBAFunctions.h b/src/api/burn/balutil/inc/BalBaseBAFunctions.h index 2866f6b0..e45db2dc 100644 --- a/src/api/burn/balutil/inc/BalBaseBAFunctions.h +++ b/src/api/burn/balutil/inc/BalBaseBAFunctions.h | |||
| @@ -303,10 +303,12 @@ public: // IBootstrapperApplication | |||
| 303 | __in_z LPCWSTR /*wzPackageId*/, | 303 | __in_z LPCWSTR /*wzPackageId*/, |
| 304 | __in BOOL /*fExecute*/, | 304 | __in BOOL /*fExecute*/, |
| 305 | __in BOOTSTRAPPER_ACTION_STATE /*action*/, | 305 | __in BOOTSTRAPPER_ACTION_STATE /*action*/, |
| 306 | __in BOOTSTRAPPER_MSI_FILE_VERSIONING /*recommendedFileVersioning*/, | ||
| 306 | __inout BOOL* /*pfCancel*/, | 307 | __inout BOOL* /*pfCancel*/, |
| 307 | __inout BURN_MSI_PROPERTY* /*pActionMsiProperty*/, | 308 | __inout BURN_MSI_PROPERTY* /*pActionMsiProperty*/, |
| 308 | __inout INSTALLUILEVEL* /*pUiLevel*/, | 309 | __inout INSTALLUILEVEL* /*pUiLevel*/, |
| 309 | __inout BOOL* /*pfDisableExternalUiHandler*/ | 310 | __inout BOOL* /*pfDisableExternalUiHandler*/, |
| 311 | __inout BOOTSTRAPPER_MSI_FILE_VERSIONING* /*pFileVersioning*/ | ||
| 310 | ) | 312 | ) |
| 311 | { | 313 | { |
| 312 | return S_OK; | 314 | return S_OK; |
diff --git a/src/api/burn/balutil/inc/BalBaseBootstrapperApplication.h b/src/api/burn/balutil/inc/BalBaseBootstrapperApplication.h index 4c07ba89..c10b662c 100644 --- a/src/api/burn/balutil/inc/BalBaseBootstrapperApplication.h +++ b/src/api/burn/balutil/inc/BalBaseBootstrapperApplication.h | |||
| @@ -319,10 +319,12 @@ public: // IBootstrapperApplication | |||
| 319 | __in_z LPCWSTR /*wzPackageId*/, | 319 | __in_z LPCWSTR /*wzPackageId*/, |
| 320 | __in BOOL /*fExecute*/, | 320 | __in BOOL /*fExecute*/, |
| 321 | __in BOOTSTRAPPER_ACTION_STATE /*action*/, | 321 | __in BOOTSTRAPPER_ACTION_STATE /*action*/, |
| 322 | __in BOOTSTRAPPER_MSI_FILE_VERSIONING /*recommendedFileVersioning*/, | ||
| 322 | __inout BOOL* pfCancel, | 323 | __inout BOOL* pfCancel, |
| 323 | __inout BURN_MSI_PROPERTY* /*pActionMsiProperty*/, | 324 | __inout BURN_MSI_PROPERTY* /*pActionMsiProperty*/, |
| 324 | __inout INSTALLUILEVEL* /*pUiLevel*/, | 325 | __inout INSTALLUILEVEL* /*pUiLevel*/, |
| 325 | __inout BOOL* /*pfDisableExternalUiHandler*/ | 326 | __inout BOOL* /*pfDisableExternalUiHandler*/, |
| 327 | __inout BOOTSTRAPPER_MSI_FILE_VERSIONING* /*pFileVersioning*/ | ||
| 326 | ) | 328 | ) |
| 327 | { | 329 | { |
| 328 | *pfCancel |= CheckCanceled(); | 330 | *pfCancel |= CheckCanceled(); |
diff --git a/src/api/burn/balutil/inc/BalBaseBootstrapperApplicationProc.h b/src/api/burn/balutil/inc/BalBaseBootstrapperApplicationProc.h index d536729f..f17e1fcb 100644 --- a/src/api/burn/balutil/inc/BalBaseBootstrapperApplicationProc.h +++ b/src/api/burn/balutil/inc/BalBaseBootstrapperApplicationProc.h | |||
| @@ -510,7 +510,7 @@ static HRESULT BalBaseBAProcOnPlanMsiPackage( | |||
| 510 | __inout BA_ONPLANMSIPACKAGE_RESULTS* pResults | 510 | __inout BA_ONPLANMSIPACKAGE_RESULTS* pResults |
| 511 | ) | 511 | ) |
| 512 | { | 512 | { |
| 513 | return pBA->OnPlanMsiPackage(pArgs->wzPackageId, pArgs->fExecute, pArgs->action, &pResults->fCancel, &pResults->actionMsiProperty, &pResults->uiLevel, &pResults->fDisableExternalUiHandler); | 513 | return pBA->OnPlanMsiPackage(pArgs->wzPackageId, pArgs->fExecute, pArgs->action, pArgs->recommendedFileVersioning, &pResults->fCancel, &pResults->actionMsiProperty, &pResults->uiLevel, &pResults->fDisableExternalUiHandler, &pResults->fileVersioning); |
| 514 | } | 514 | } |
| 515 | 515 | ||
| 516 | static HRESULT BalBaseBAProcOnBeginMsiTransactionBegin( | 516 | static HRESULT BalBaseBAProcOnBeginMsiTransactionBegin( |
diff --git a/src/api/burn/balutil/inc/IBootstrapperApplication.h b/src/api/burn/balutil/inc/IBootstrapperApplication.h index 51f58ec7..1fc99988 100644 --- a/src/api/burn/balutil/inc/IBootstrapperApplication.h +++ b/src/api/burn/balutil/inc/IBootstrapperApplication.h | |||
| @@ -208,10 +208,12 @@ DECLARE_INTERFACE_IID_(IBootstrapperApplication, IUnknown, "53C31D56-49C0-426B-A | |||
| 208 | __in_z LPCWSTR wzPackageId, | 208 | __in_z LPCWSTR wzPackageId, |
| 209 | __in BOOL fExecute, // false means rollback. | 209 | __in BOOL fExecute, // false means rollback. |
| 210 | __in BOOTSTRAPPER_ACTION_STATE action, | 210 | __in BOOTSTRAPPER_ACTION_STATE action, |
| 211 | __in BOOTSTRAPPER_MSI_FILE_VERSIONING recommendedFileVersioning, | ||
| 211 | __inout BOOL* pfCancel, | 212 | __inout BOOL* pfCancel, |
| 212 | __inout BURN_MSI_PROPERTY* pActionMsiProperty, | 213 | __inout BURN_MSI_PROPERTY* pActionMsiProperty, |
| 213 | __inout INSTALLUILEVEL* pUiLevel, | 214 | __inout INSTALLUILEVEL* pUiLevel, |
| 214 | __inout BOOL* pfDisableExternalUiHandler | 215 | __inout BOOL* pfDisableExternalUiHandler, |
| 216 | __inout BOOTSTRAPPER_MSI_FILE_VERSIONING* pFileVersioning | ||
| 215 | ) = 0; | 217 | ) = 0; |
| 216 | 218 | ||
| 217 | // OnPlanPackageComplete - called after the engine has completed getting the BA's input | 219 | // OnPlanPackageComplete - called after the engine has completed getting the BA's input |
