diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2021-02-15 13:25:35 -0600 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2021-02-22 20:25:06 -0600 |
commit | b6862716cd27cefa541b85c63dd30dc3f0749d87 (patch) | |
tree | ab351296b2adb62a7c4b6723cbf246878f0a3a45 /src/engine | |
parent | 1fc35ce3263e9351bb719c6c7f9b6351c52ee18c (diff) | |
download | wix-b6862716cd27cefa541b85c63dd30dc3f0749d87.tar.gz wix-b6862716cd27cefa541b85c63dd30dc3f0749d87.tar.bz2 wix-b6862716cd27cefa541b85c63dd30dc3f0749d87.zip |
Rename *TargetMsiPackage BA events to *PatchTarget.
Diffstat (limited to 'src/engine')
-rw-r--r-- | src/engine/mspengine.cpp | 8 | ||||
-rw-r--r-- | src/engine/userexperience.cpp | 20 | ||||
-rw-r--r-- | src/engine/userexperience.h | 4 |
3 files changed, 16 insertions, 16 deletions
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, |