diff options
Diffstat (limited to 'src/engine/userexperience.cpp')
| -rw-r--r-- | src/engine/userexperience.cpp | 99 |
1 files changed, 1 insertions, 98 deletions
diff --git a/src/engine/userexperience.cpp b/src/engine/userexperience.cpp index 8e782e71..ea8b8a19 100644 --- a/src/engine/userexperience.cpp +++ b/src/engine/userexperience.cpp | |||
| @@ -104,7 +104,7 @@ extern "C" HRESULT UserExperienceLoad( | |||
| 104 | args.pCommand = pCommand; | 104 | args.pCommand = pCommand; |
| 105 | args.pfnBootstrapperEngineProc = EngineForApplicationProc; | 105 | args.pfnBootstrapperEngineProc = EngineForApplicationProc; |
| 106 | args.pvBootstrapperEngineProcContext = pEngineContext; | 106 | args.pvBootstrapperEngineProcContext = pEngineContext; |
| 107 | args.qwEngineAPIVersion = MAKEQWORDVERSION(2020, 11, 17, 0); | 107 | args.qwEngineAPIVersion = MAKEQWORDVERSION(2021, 1, 30, 0); |
| 108 | 108 | ||
| 109 | results.cbSize = sizeof(BOOTSTRAPPER_CREATE_RESULTS); | 109 | results.cbSize = sizeof(BOOTSTRAPPER_CREATE_RESULTS); |
| 110 | 110 | ||
| @@ -747,36 +747,6 @@ LExit: | |||
| 747 | return hr; | 747 | return hr; |
| 748 | } | 748 | } |
| 749 | 749 | ||
| 750 | EXTERN_C BAAPI UserExperienceOnDetectCompatibleMsiPackage( | ||
| 751 | __in BURN_USER_EXPERIENCE* pUserExperience, | ||
| 752 | __in_z LPCWSTR wzPackageId, | ||
| 753 | __in_z LPCWSTR wzCompatiblePackageId, | ||
| 754 | __in VERUTIL_VERSION* pCompatiblePackageVersion | ||
| 755 | ) | ||
| 756 | { | ||
| 757 | HRESULT hr = S_OK; | ||
| 758 | BA_ONDETECTCOMPATIBLEMSIPACKAGE_ARGS args = { }; | ||
| 759 | BA_ONDETECTCOMPATIBLEMSIPACKAGE_RESULTS results = { }; | ||
| 760 | |||
| 761 | args.cbSize = sizeof(args); | ||
| 762 | args.wzPackageId = wzPackageId; | ||
| 763 | args.wzCompatiblePackageId = wzCompatiblePackageId; | ||
| 764 | args.wzCompatiblePackageVersion = pCompatiblePackageVersion->sczVersion; | ||
| 765 | |||
| 766 | results.cbSize = sizeof(results); | ||
| 767 | |||
| 768 | hr = SendBAMessage(pUserExperience, BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTCOMPATIBLEMSIPACKAGE, &args, &results); | ||
| 769 | ExitOnFailure(hr, "BA OnDetectCompatibleMsiPackage failed."); | ||
| 770 | |||
| 771 | if (results.fCancel) | ||
| 772 | { | ||
| 773 | hr = HRESULT_FROM_WIN32(ERROR_INSTALL_USEREXIT); | ||
| 774 | } | ||
| 775 | |||
| 776 | LExit: | ||
| 777 | return hr; | ||
| 778 | } | ||
| 779 | |||
| 780 | EXTERN_C BAAPI UserExperienceOnDetectComplete( | 750 | EXTERN_C BAAPI UserExperienceOnDetectComplete( |
| 781 | __in BURN_USER_EXPERIENCE* pUserExperience, | 751 | __in BURN_USER_EXPERIENCE* pUserExperience, |
| 782 | __in HRESULT hrStatus | 752 | __in HRESULT hrStatus |
| @@ -1555,73 +1525,6 @@ LExit: | |||
| 1555 | return hr; | 1525 | return hr; |
| 1556 | } | 1526 | } |
| 1557 | 1527 | ||
| 1558 | EXTERN_C BAAPI UserExperienceOnPlanCompatibleMsiPackageBegin( | ||
| 1559 | __in BURN_USER_EXPERIENCE* pUserExperience, | ||
| 1560 | __in_z LPCWSTR wzPackageId, | ||
| 1561 | __in_z LPCWSTR wzCompatiblePackageId, | ||
| 1562 | __in VERUTIL_VERSION* pCompatiblePackageVersion, | ||
| 1563 | __inout BOOTSTRAPPER_REQUEST_STATE* pRequestedState | ||
| 1564 | ) | ||
| 1565 | { | ||
| 1566 | HRESULT hr = S_OK; | ||
| 1567 | BA_ONPLANCOMPATIBLEMSIPACKAGEBEGIN_ARGS args = { }; | ||
| 1568 | BA_ONPLANCOMPATIBLEMSIPACKAGEBEGIN_RESULTS results = { }; | ||
| 1569 | |||
| 1570 | args.cbSize = sizeof(args); | ||
| 1571 | args.wzPackageId = wzPackageId; | ||
| 1572 | args.wzCompatiblePackageId = wzCompatiblePackageId; | ||
| 1573 | args.wzCompatiblePackageVersion = pCompatiblePackageVersion->sczVersion; | ||
| 1574 | args.recommendedState = *pRequestedState; | ||
| 1575 | |||
| 1576 | results.cbSize = sizeof(results); | ||
| 1577 | results.requestedState = *pRequestedState; | ||
| 1578 | |||
| 1579 | hr = SendBAMessage(pUserExperience, BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANCOMPATIBLEMSIPACKAGEBEGIN, &args, &results); | ||
| 1580 | ExitOnFailure(hr, "BA OnPlanCompatibleMsiPackageBegin failed."); | ||
| 1581 | |||
| 1582 | if (results.fCancel) | ||
| 1583 | { | ||
| 1584 | hr = HRESULT_FROM_WIN32(ERROR_INSTALL_USEREXIT); | ||
| 1585 | } | ||
| 1586 | *pRequestedState = results.requestedState; | ||
| 1587 | |||
| 1588 | LExit: | ||
| 1589 | return hr; | ||
| 1590 | } | ||
| 1591 | |||
| 1592 | EXTERN_C BAAPI UserExperienceOnPlanCompatibleMsiPackageComplete( | ||
| 1593 | __in BURN_USER_EXPERIENCE* pUserExperience, | ||
| 1594 | __in_z LPCWSTR wzPackageId, | ||
| 1595 | __in_z LPCWSTR wzCompatiblePackageId, | ||
| 1596 | __in HRESULT hrStatus, | ||
| 1597 | __in BOOTSTRAPPER_PACKAGE_STATE state, | ||
| 1598 | __in BOOTSTRAPPER_REQUEST_STATE requested, | ||
| 1599 | __in BOOTSTRAPPER_ACTION_STATE execute, | ||
| 1600 | __in BOOTSTRAPPER_ACTION_STATE rollback | ||
| 1601 | ) | ||
| 1602 | { | ||
| 1603 | HRESULT hr = S_OK; | ||
| 1604 | BA_ONPLANCOMPATIBLEMSIPACKAGECOMPLETE_ARGS args = { }; | ||
| 1605 | BA_ONPLANCOMPATIBLEMSIPACKAGECOMPLETE_RESULTS results = { }; | ||
| 1606 | |||
| 1607 | args.cbSize = sizeof(args); | ||
| 1608 | args.wzPackageId = wzPackageId; | ||
| 1609 | args.wzCompatiblePackageId = wzCompatiblePackageId; | ||
| 1610 | args.hrStatus = hrStatus; | ||
| 1611 | args.state = state; | ||
| 1612 | args.requested = requested; | ||
| 1613 | args.execute = execute; | ||
| 1614 | args.rollback = rollback; | ||
| 1615 | |||
| 1616 | results.cbSize = sizeof(results); | ||
| 1617 | |||
| 1618 | hr = SendBAMessage(pUserExperience, BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANCOMPATIBLEMSIPACKAGECOMPLETE, &args, &results); | ||
| 1619 | ExitOnFailure(hr, "BA OnPlanCompatibleMsiPackageComplete failed."); | ||
| 1620 | |||
| 1621 | LExit: | ||
| 1622 | return hr; | ||
| 1623 | } | ||
| 1624 | |||
| 1625 | EXTERN_C BAAPI UserExperienceOnPlanMsiFeature( | 1528 | EXTERN_C BAAPI UserExperienceOnPlanMsiFeature( |
| 1626 | __in BURN_USER_EXPERIENCE* pUserExperience, | 1529 | __in BURN_USER_EXPERIENCE* pUserExperience, |
| 1627 | __in_z LPCWSTR wzPackageId, | 1530 | __in_z LPCWSTR wzPackageId, |
