diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/WixToolset.BootstrapperCore.Native/inc/BootstrapperApplication.h | 12 | ||||
| -rw-r--r-- | src/engine/mspengine.cpp | 8 | ||||
| -rw-r--r-- | src/engine/userexperience.cpp | 20 | ||||
| -rw-r--r-- | src/engine/userexperience.h | 4 |
4 files changed, 22 insertions, 22 deletions
diff --git a/src/WixToolset.BootstrapperCore.Native/inc/BootstrapperApplication.h b/src/WixToolset.BootstrapperCore.Native/inc/BootstrapperApplication.h index 48bd813d..1ba25cd7 100644 --- a/src/WixToolset.BootstrapperCore.Native/inc/BootstrapperApplication.h +++ b/src/WixToolset.BootstrapperCore.Native/inc/BootstrapperApplication.h | |||
| @@ -93,12 +93,12 @@ enum BOOTSTRAPPER_APPLICATION_MESSAGE | |||
| 93 | BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTRELATEDBUNDLE, | 93 | BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTRELATEDBUNDLE, |
| 94 | BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTPACKAGEBEGIN, | 94 | BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTPACKAGEBEGIN, |
| 95 | BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTRELATEDMSIPACKAGE, | 95 | BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTRELATEDMSIPACKAGE, |
| 96 | BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTTARGETMSIPACKAGE, | 96 | BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTPATCHTARGET, |
| 97 | BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTMSIFEATURE, | 97 | BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTMSIFEATURE, |
| 98 | BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTPACKAGECOMPLETE, | 98 | BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTPACKAGECOMPLETE, |
| 99 | BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANRELATEDBUNDLE, | 99 | BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANRELATEDBUNDLE, |
| 100 | BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANPACKAGEBEGIN, | 100 | BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANPACKAGEBEGIN, |
| 101 | BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANTARGETMSIPACKAGE, | 101 | BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANPATCHTARGET, |
| 102 | BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANMSIFEATURE, | 102 | BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANMSIFEATURE, |
| 103 | BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANPACKAGECOMPLETE, | 103 | BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANPACKAGECOMPLETE, |
| 104 | BOOTSTRAPPER_APPLICATION_MESSAGE_ONAPPLYBEGIN, | 104 | BOOTSTRAPPER_APPLICATION_MESSAGE_ONAPPLYBEGIN, |
| @@ -571,7 +571,7 @@ struct BA_ONDETECTRELATEDMSIPACKAGE_RESULTS | |||
| 571 | BOOL fCancel; | 571 | BOOL fCancel; |
| 572 | }; | 572 | }; |
| 573 | 573 | ||
| 574 | struct BA_ONDETECTTARGETMSIPACKAGE_ARGS | 574 | struct BA_ONDETECTPATCHTARGET_ARGS |
| 575 | { | 575 | { |
| 576 | DWORD cbSize; | 576 | DWORD cbSize; |
| 577 | LPCWSTR wzPackageId; | 577 | LPCWSTR wzPackageId; |
| @@ -579,7 +579,7 @@ struct BA_ONDETECTTARGETMSIPACKAGE_ARGS | |||
| 579 | BOOTSTRAPPER_PACKAGE_STATE patchState; | 579 | BOOTSTRAPPER_PACKAGE_STATE patchState; |
| 580 | }; | 580 | }; |
| 581 | 581 | ||
| 582 | struct BA_ONDETECTTARGETMSIPACKAGE_RESULTS | 582 | struct BA_ONDETECTPATCHTARGET_RESULTS |
| 583 | { | 583 | { |
| 584 | DWORD cbSize; | 584 | DWORD cbSize; |
| 585 | BOOL fCancel; | 585 | BOOL fCancel; |
| @@ -929,7 +929,7 @@ struct BA_ONPLANRELATEDBUNDLE_RESULTS | |||
| 929 | BOOTSTRAPPER_REQUEST_STATE requestedState; | 929 | BOOTSTRAPPER_REQUEST_STATE requestedState; |
| 930 | }; | 930 | }; |
| 931 | 931 | ||
| 932 | struct BA_ONPLANTARGETMSIPACKAGE_ARGS | 932 | struct BA_ONPLANPATCHTARGET_ARGS |
| 933 | { | 933 | { |
| 934 | DWORD cbSize; | 934 | DWORD cbSize; |
| 935 | LPCWSTR wzPackageId; | 935 | LPCWSTR wzPackageId; |
| @@ -937,7 +937,7 @@ struct BA_ONPLANTARGETMSIPACKAGE_ARGS | |||
| 937 | BOOTSTRAPPER_REQUEST_STATE recommendedState; | 937 | BOOTSTRAPPER_REQUEST_STATE recommendedState; |
| 938 | }; | 938 | }; |
| 939 | 939 | ||
| 940 | struct BA_ONPLANTARGETMSIPACKAGE_RESULTS | 940 | struct BA_ONPLANPATCHTARGET_RESULTS |
| 941 | { | 941 | { |
| 942 | DWORD cbSize; | 942 | DWORD cbSize; |
| 943 | BOOTSTRAPPER_REQUEST_STATE requestedState; | 943 | BOOTSTRAPPER_REQUEST_STATE requestedState; |
diff --git a/src/engine/mspengine.cpp b/src/engine/mspengine.cpp index 2c3a866a..7f591d82 100644 --- a/src/engine/mspengine.cpp +++ b/src/engine/mspengine.cpp | |||
| @@ -268,8 +268,8 @@ extern "C" HRESULT MspEngineDetectPackage( | |||
| 268 | } | 268 | } |
| 269 | } | 269 | } |
| 270 | 270 | ||
| 271 | hr = UserExperienceOnDetectTargetMsiPackage(pUserExperience, pPackage->sczId, pTargetProduct->wzTargetProductCode, pTargetProduct->patchPackageState); | 271 | hr = UserExperienceOnDetectPatchTarget(pUserExperience, pPackage->sczId, pTargetProduct->wzTargetProductCode, pTargetProduct->patchPackageState); |
| 272 | ExitOnRootFailure(hr, "BA aborted detect target MSI package."); | 272 | ExitOnRootFailure(hr, "BA aborted detect patch target."); |
| 273 | } | 273 | } |
| 274 | } | 274 | } |
| 275 | 275 | ||
| @@ -300,8 +300,8 @@ extern "C" HRESULT MspEnginePlanCalculatePackage( | |||
| 300 | BOOTSTRAPPER_ACTION_STATE execute = BOOTSTRAPPER_ACTION_STATE_NONE; | 300 | BOOTSTRAPPER_ACTION_STATE execute = BOOTSTRAPPER_ACTION_STATE_NONE; |
| 301 | BOOTSTRAPPER_ACTION_STATE rollback = BOOTSTRAPPER_ACTION_STATE_NONE; | 301 | BOOTSTRAPPER_ACTION_STATE rollback = BOOTSTRAPPER_ACTION_STATE_NONE; |
| 302 | 302 | ||
| 303 | hr = UserExperienceOnPlanTargetMsiPackage(pUserExperience, pPackage->sczId, pTargetProduct->wzTargetProductCode, &requested); | 303 | hr = UserExperienceOnPlanPatchTarget(pUserExperience, pPackage->sczId, pTargetProduct->wzTargetProductCode, &requested); |
| 304 | ExitOnRootFailure(hr, "BA aborted plan target MSI package."); | 304 | ExitOnRootFailure(hr, "BA aborted plan patch target."); |
| 305 | 305 | ||
| 306 | // Calculate the execute action. | 306 | // Calculate the execute action. |
| 307 | switch (pTargetProduct->patchPackageState) | 307 | switch (pTargetProduct->patchPackageState) |
diff --git a/src/engine/userexperience.cpp b/src/engine/userexperience.cpp index a0fb341d..12c3f6df 100644 --- a/src/engine/userexperience.cpp +++ b/src/engine/userexperience.cpp | |||
| @@ -947,7 +947,7 @@ LExit: | |||
| 947 | return hr; | 947 | return hr; |
| 948 | } | 948 | } |
| 949 | 949 | ||
| 950 | EXTERN_C BAAPI UserExperienceOnDetectTargetMsiPackage( | 950 | EXTERN_C BAAPI UserExperienceOnDetectPatchTarget( |
| 951 | __in BURN_USER_EXPERIENCE* pUserExperience, | 951 | __in BURN_USER_EXPERIENCE* pUserExperience, |
| 952 | __in_z LPCWSTR wzPackageId, | 952 | __in_z LPCWSTR wzPackageId, |
| 953 | __in_z LPCWSTR wzProductCode, | 953 | __in_z LPCWSTR wzProductCode, |
| @@ -955,8 +955,8 @@ EXTERN_C BAAPI UserExperienceOnDetectTargetMsiPackage( | |||
| 955 | ) | 955 | ) |
| 956 | { | 956 | { |
| 957 | HRESULT hr = S_OK; | 957 | HRESULT hr = S_OK; |
| 958 | BA_ONDETECTTARGETMSIPACKAGE_ARGS args = { }; | 958 | BA_ONDETECTPATCHTARGET_ARGS args = { }; |
| 959 | BA_ONDETECTTARGETMSIPACKAGE_RESULTS results = { }; | 959 | BA_ONDETECTPATCHTARGET_RESULTS results = { }; |
| 960 | 960 | ||
| 961 | args.cbSize = sizeof(args); | 961 | args.cbSize = sizeof(args); |
| 962 | args.wzPackageId = wzPackageId; | 962 | args.wzPackageId = wzPackageId; |
| @@ -965,8 +965,8 @@ EXTERN_C BAAPI UserExperienceOnDetectTargetMsiPackage( | |||
| 965 | 965 | ||
| 966 | results.cbSize = sizeof(results); | 966 | results.cbSize = sizeof(results); |
| 967 | 967 | ||
| 968 | hr = SendBAMessage(pUserExperience, BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTTARGETMSIPACKAGE, &args, &results); | 968 | hr = SendBAMessage(pUserExperience, BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTPATCHTARGET, &args, &results); |
| 969 | ExitOnFailure(hr, "BA OnDetectTargetMsiPackage failed."); | 969 | ExitOnFailure(hr, "BA OnDetectPatchTarget failed."); |
| 970 | 970 | ||
| 971 | if (results.fCancel) | 971 | if (results.fCancel) |
| 972 | { | 972 | { |
| @@ -1697,7 +1697,7 @@ LExit: | |||
| 1697 | return hr; | 1697 | return hr; |
| 1698 | } | 1698 | } |
| 1699 | 1699 | ||
| 1700 | EXTERN_C BAAPI UserExperienceOnPlanTargetMsiPackage( | 1700 | EXTERN_C BAAPI UserExperienceOnPlanPatchTarget( |
| 1701 | __in BURN_USER_EXPERIENCE* pUserExperience, | 1701 | __in BURN_USER_EXPERIENCE* pUserExperience, |
| 1702 | __in_z LPCWSTR wzPackageId, | 1702 | __in_z LPCWSTR wzPackageId, |
| 1703 | __in_z LPCWSTR wzProductCode, | 1703 | __in_z LPCWSTR wzProductCode, |
| @@ -1705,8 +1705,8 @@ EXTERN_C BAAPI UserExperienceOnPlanTargetMsiPackage( | |||
| 1705 | ) | 1705 | ) |
| 1706 | { | 1706 | { |
| 1707 | HRESULT hr = S_OK; | 1707 | HRESULT hr = S_OK; |
| 1708 | BA_ONPLANTARGETMSIPACKAGE_ARGS args = { }; | 1708 | BA_ONPLANPATCHTARGET_ARGS args = { }; |
| 1709 | BA_ONPLANTARGETMSIPACKAGE_RESULTS results = { }; | 1709 | BA_ONPLANPATCHTARGET_RESULTS results = { }; |
| 1710 | 1710 | ||
| 1711 | args.cbSize = sizeof(args); | 1711 | args.cbSize = sizeof(args); |
| 1712 | args.wzPackageId = wzPackageId; | 1712 | args.wzPackageId = wzPackageId; |
| @@ -1716,8 +1716,8 @@ EXTERN_C BAAPI UserExperienceOnPlanTargetMsiPackage( | |||
| 1716 | results.cbSize = sizeof(results); | 1716 | results.cbSize = sizeof(results); |
| 1717 | results.requestedState = *pRequestedState; | 1717 | results.requestedState = *pRequestedState; |
| 1718 | 1718 | ||
| 1719 | hr = SendBAMessage(pUserExperience, BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANTARGETMSIPACKAGE, &args, &results); | 1719 | hr = SendBAMessage(pUserExperience, BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANPATCHTARGET, &args, &results); |
| 1720 | ExitOnFailure(hr, "BA OnPlanTargetMsiPackage failed."); | 1720 | ExitOnFailure(hr, "BA OnPlanPatchTarget failed."); |
| 1721 | 1721 | ||
| 1722 | if (results.fCancel) | 1722 | if (results.fCancel) |
| 1723 | { | 1723 | { |
diff --git a/src/engine/userexperience.h b/src/engine/userexperience.h index 363c0f06..930e7268 100644 --- a/src/engine/userexperience.h +++ b/src/engine/userexperience.h | |||
| @@ -237,7 +237,7 @@ BAAPI UserExperienceOnDetectRelatedMsiPackage( | |||
| 237 | __in VERUTIL_VERSION* pVersion, | 237 | __in VERUTIL_VERSION* pVersion, |
| 238 | __in BOOTSTRAPPER_RELATED_OPERATION operation | 238 | __in BOOTSTRAPPER_RELATED_OPERATION operation |
| 239 | ); | 239 | ); |
| 240 | BAAPI UserExperienceOnDetectTargetMsiPackage( | 240 | BAAPI UserExperienceOnDetectPatchTarget( |
| 241 | __in BURN_USER_EXPERIENCE* pUserExperience, | 241 | __in BURN_USER_EXPERIENCE* pUserExperience, |
| 242 | __in_z LPCWSTR wzPackageId, | 242 | __in_z LPCWSTR wzPackageId, |
| 243 | __in_z LPCWSTR wzProductCode, | 243 | __in_z LPCWSTR wzProductCode, |
| @@ -391,7 +391,7 @@ BAAPI UserExperienceOnPlanRelatedBundle( | |||
| 391 | __in_z LPCWSTR wzBundleId, | 391 | __in_z LPCWSTR wzBundleId, |
| 392 | __inout BOOTSTRAPPER_REQUEST_STATE* pRequestedState | 392 | __inout BOOTSTRAPPER_REQUEST_STATE* pRequestedState |
| 393 | ); | 393 | ); |
| 394 | BAAPI UserExperienceOnPlanTargetMsiPackage( | 394 | BAAPI UserExperienceOnPlanPatchTarget( |
| 395 | __in BURN_USER_EXPERIENCE* pUserExperience, | 395 | __in BURN_USER_EXPERIENCE* pUserExperience, |
| 396 | __in_z LPCWSTR wzPackageId, | 396 | __in_z LPCWSTR wzPackageId, |
| 397 | __in_z LPCWSTR wzProductCode, | 397 | __in_z LPCWSTR wzProductCode, |
