diff options
Diffstat (limited to 'src/ext')
-rw-r--r-- | src/ext/Bal/wixstdba/WixStandardBootstrapperApplication.cpp | 44 | ||||
-rw-r--r-- | src/ext/Bal/wixstdba/wixstdba.mc | 7 |
2 files changed, 51 insertions, 0 deletions
diff --git a/src/ext/Bal/wixstdba/WixStandardBootstrapperApplication.cpp b/src/ext/Bal/wixstdba/WixStandardBootstrapperApplication.cpp index 8c7bce7e..91033a26 100644 --- a/src/ext/Bal/wixstdba/WixStandardBootstrapperApplication.cpp +++ b/src/ext/Bal/wixstdba/WixStandardBootstrapperApplication.cpp | |||
@@ -169,6 +169,9 @@ static LPCSTR LoggingBoolToString( | |||
169 | static LPCSTR LoggingRequestStateToString( | 169 | static LPCSTR LoggingRequestStateToString( |
170 | __in BOOTSTRAPPER_REQUEST_STATE requestState | 170 | __in BOOTSTRAPPER_REQUEST_STATE requestState |
171 | ); | 171 | ); |
172 | static LPCSTR LoggingPlanRelationTypeToString( | ||
173 | __in BOOTSTRAPPER_RELATED_BUNDLE_PLAN_TYPE type | ||
174 | ); | ||
172 | static LPCSTR LoggingMsiFeatureStateToString( | 175 | static LPCSTR LoggingMsiFeatureStateToString( |
173 | __in BOOTSTRAPPER_FEATURE_STATE featureState | 176 | __in BOOTSTRAPPER_FEATURE_STATE featureState |
174 | ); | 177 | ); |
@@ -1436,6 +1439,12 @@ public: // IBootstrapperApplication | |||
1436 | case BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANNEDCOMPATIBLEPACKAGE: | 1439 | case BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANNEDCOMPATIBLEPACKAGE: |
1437 | OnPlannedCompatiblePackageFallback(reinterpret_cast<BA_ONPLANNEDCOMPATIBLEPACKAGE_ARGS*>(pvArgs), reinterpret_cast<BA_ONPLANNEDCOMPATIBLEPACKAGE_RESULTS*>(pvResults)); | 1440 | OnPlannedCompatiblePackageFallback(reinterpret_cast<BA_ONPLANNEDCOMPATIBLEPACKAGE_ARGS*>(pvArgs), reinterpret_cast<BA_ONPLANNEDCOMPATIBLEPACKAGE_RESULTS*>(pvResults)); |
1438 | break; | 1441 | break; |
1442 | case BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANRESTORERELATEDBUNDLE: | ||
1443 | OnPlanRestoreRelatedBundleFallback(reinterpret_cast<BA_ONPLANRESTORERELATEDBUNDLE_ARGS*>(pvArgs), reinterpret_cast<BA_ONPLANRESTORERELATEDBUNDLE_RESULTS*>(pvResults)); | ||
1444 | break; | ||
1445 | case BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANRELATEDBUNDLETYPE: | ||
1446 | OnPlanRelatedBundleTypeFallback(reinterpret_cast<BA_ONPLANRELATEDBUNDLETYPE_ARGS*>(pvArgs), reinterpret_cast<BA_ONPLANRELATEDBUNDLETYPE_RESULTS*>(pvResults)); | ||
1447 | break; | ||
1439 | default: | 1448 | default: |
1440 | #ifdef DEBUG | 1449 | #ifdef DEBUG |
1441 | BalLog(BOOTSTRAPPER_LOG_LEVEL_STANDARD, "WIXSTDBA: Forwarding unknown BA message: %d", message); | 1450 | BalLog(BOOTSTRAPPER_LOG_LEVEL_STANDARD, "WIXSTDBA: Forwarding unknown BA message: %d", message); |
@@ -1585,6 +1594,16 @@ private: // privates | |||
1585 | BalLogId(BOOTSTRAPPER_LOG_LEVEL_STANDARD, MSG_WIXSTDBA_PLANNED_RELATED_BUNDLE, m_hModule, pArgs->wzBundleId, LoggingRequestStateToString(requestedState), LoggingRequestStateToString(pResults->requestedState)); | 1594 | BalLogId(BOOTSTRAPPER_LOG_LEVEL_STANDARD, MSG_WIXSTDBA_PLANNED_RELATED_BUNDLE, m_hModule, pArgs->wzBundleId, LoggingRequestStateToString(requestedState), LoggingRequestStateToString(pResults->requestedState)); |
1586 | } | 1595 | } |
1587 | 1596 | ||
1597 | void OnPlanRelatedBundleTypeFallback( | ||
1598 | __in BA_ONPLANRELATEDBUNDLETYPE_ARGS* pArgs, | ||
1599 | __inout BA_ONPLANRELATEDBUNDLETYPE_RESULTS* pResults | ||
1600 | ) | ||
1601 | { | ||
1602 | BOOTSTRAPPER_RELATED_BUNDLE_PLAN_TYPE requestedType = pResults->requestedType; | ||
1603 | m_pfnBAFunctionsProc(BA_FUNCTIONS_MESSAGE_ONPLANRELATEDBUNDLETYPE, pArgs, pResults, m_pvBAFunctionsProcContext); | ||
1604 | BalLogId(BOOTSTRAPPER_LOG_LEVEL_STANDARD, MSG_WIXSTDBA_PLANNED_RELATED_BUNDLE_TYPE, m_hModule, pArgs->wzBundleId, LoggingPlanRelationTypeToString(requestedType), LoggingPlanRelationTypeToString(pResults->requestedType)); | ||
1605 | } | ||
1606 | |||
1588 | void OnPlanPackageBeginFallback( | 1607 | void OnPlanPackageBeginFallback( |
1589 | __in BA_ONPLANPACKAGEBEGIN_ARGS* pArgs, | 1608 | __in BA_ONPLANPACKAGEBEGIN_ARGS* pArgs, |
1590 | __inout BA_ONPLANPACKAGEBEGIN_RESULTS* pResults | 1609 | __inout BA_ONPLANPACKAGEBEGIN_RESULTS* pResults |
@@ -4672,6 +4691,31 @@ static LPCSTR LoggingRequestStateToString( | |||
4672 | } | 4691 | } |
4673 | } | 4692 | } |
4674 | 4693 | ||
4694 | static LPCSTR LoggingPlanRelationTypeToString( | ||
4695 | __in BOOTSTRAPPER_RELATED_BUNDLE_PLAN_TYPE type | ||
4696 | ) | ||
4697 | { | ||
4698 | switch (type) | ||
4699 | { | ||
4700 | case BOOTSTRAPPER_RELATED_BUNDLE_PLAN_TYPE_NONE: | ||
4701 | return "None"; | ||
4702 | case BOOTSTRAPPER_RELATED_BUNDLE_PLAN_TYPE_DOWNGRADE: | ||
4703 | return "Downgrade"; | ||
4704 | case BOOTSTRAPPER_RELATED_BUNDLE_PLAN_TYPE_UPGRADE: | ||
4705 | return "Upgrade"; | ||
4706 | case BOOTSTRAPPER_RELATED_BUNDLE_PLAN_TYPE_ADDON: | ||
4707 | return "Addon"; | ||
4708 | case BOOTSTRAPPER_RELATED_BUNDLE_PLAN_TYPE_PATCH: | ||
4709 | return "Patch"; | ||
4710 | case BOOTSTRAPPER_RELATED_BUNDLE_PLAN_TYPE_DEPENDENT_ADDON: | ||
4711 | return "DependentAddon"; | ||
4712 | case BOOTSTRAPPER_RELATED_BUNDLE_PLAN_TYPE_DEPENDENT_PATCH: | ||
4713 | return "DependentPatch"; | ||
4714 | default: | ||
4715 | return "Invalid"; | ||
4716 | } | ||
4717 | } | ||
4718 | |||
4675 | static LPCSTR LoggingMsiFeatureStateToString( | 4719 | static LPCSTR LoggingMsiFeatureStateToString( |
4676 | __in BOOTSTRAPPER_FEATURE_STATE featureState | 4720 | __in BOOTSTRAPPER_FEATURE_STATE featureState |
4677 | ) | 4721 | ) |
diff --git a/src/ext/Bal/wixstdba/wixstdba.mc b/src/ext/Bal/wixstdba/wixstdba.mc index eeb69914..025315a5 100644 --- a/src/ext/Bal/wixstdba/wixstdba.mc +++ b/src/ext/Bal/wixstdba/wixstdba.mc | |||
@@ -92,3 +92,10 @@ Language=English | |||
92 | WIXSTDBA: Planned restore related bundle: %1!ls!, wixstdba requested: %2!hs!, bafunctions requested: %3!hs! | 92 | WIXSTDBA: Planned restore related bundle: %1!ls!, wixstdba requested: %2!hs!, bafunctions requested: %3!hs! |
93 | . | 93 | . |
94 | 94 | ||
95 | MessageId=10 | ||
96 | Severity=Success | ||
97 | SymbolicName=MSG_WIXSTDBA_PLANNED_RELATED_BUNDLE_TYPE | ||
98 | Language=English | ||
99 | WIXSTDBA: Planned related bundle type: %1!ls!, wixstdba requested: %2!hs!, bafunctions requested: %3!hs! | ||
100 | . | ||
101 | |||