diff options
author | Rob Mensching <rob@firegiant.com> | 2024-03-21 00:59:21 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2024-03-21 13:07:14 -0700 |
commit | 90cdebbe94c7f60db86965ffb97d9ba51d0bc9fc (patch) | |
tree | 8701442f92b68fc5d7d24ebc09449419b6824cd5 /src/ext | |
parent | a2b75ebed82be8c488f2840c359a512e865d682c (diff) | |
download | wix-90cdebbe94c7f60db86965ffb97d9ba51d0bc9fc.tar.gz wix-90cdebbe94c7f60db86965ffb97d9ba51d0bc9fc.tar.bz2 wix-90cdebbe94c7f60db86965ffb97d9ba51d0bc9fc.zip |
Simplify BootstrapperApplication header files
Take this breaking change opportunity to simplify the header files used by
BA devs.
Diffstat (limited to 'src/ext')
-rw-r--r-- | src/ext/Bal/Samples/bafunctions/precomp.h | 7 | ||||
-rw-r--r-- | src/ext/Bal/stdbas/WixInternalUIBootstrapperApplication.cpp | 9 | ||||
-rw-r--r-- | src/ext/Bal/stdbas/WixStandardBootstrapperApplication.cpp | 15 | ||||
-rw-r--r-- | src/ext/Bal/stdbas/precomp.h | 8 | ||||
-rw-r--r-- | src/ext/Bal/test/WixStdFnUnitTest/TestBootstrapperApplication.cpp | 5 | ||||
-rw-r--r-- | src/ext/Bal/test/WixStdFnUnitTest/precomp.h | 4 | ||||
-rw-r--r-- | src/ext/Bal/wixiuiba/precomp.h | 6 | ||||
-rw-r--r-- | src/ext/Bal/wixprqba/precomp.h | 7 | ||||
-rw-r--r-- | src/ext/Bal/wixstdba/precomp.h | 6 |
9 files changed, 20 insertions, 47 deletions
diff --git a/src/ext/Bal/Samples/bafunctions/precomp.h b/src/ext/Bal/Samples/bafunctions/precomp.h index 542ac606..4e88a4a0 100644 --- a/src/ext/Bal/Samples/bafunctions/precomp.h +++ b/src/ext/Bal/Samples/bafunctions/precomp.h | |||
@@ -34,12 +34,7 @@ | |||
34 | //#include "xmlutil.h" | 34 | //#include "xmlutil.h" |
35 | #include "regutil.h" | 35 | #include "regutil.h" |
36 | 36 | ||
37 | //#include "IBootstrapperApplication.h" | 37 | #include "BootstrapperApplicationBase.h" |
38 | |||
39 | #include "BalBaseBootstrapperApplication.h" | ||
40 | //#include "balinfo.h" | ||
41 | //#include "balcondition.h" | ||
42 | #include "balutil.h" | ||
43 | 38 | ||
44 | #include "BAFunctions.h" | 39 | #include "BAFunctions.h" |
45 | #include "IBAFunctions.h" | 40 | #include "IBAFunctions.h" |
diff --git a/src/ext/Bal/stdbas/WixInternalUIBootstrapperApplication.cpp b/src/ext/Bal/stdbas/WixInternalUIBootstrapperApplication.cpp index a8967a31..23db7c5f 100644 --- a/src/ext/Bal/stdbas/WixInternalUIBootstrapperApplication.cpp +++ b/src/ext/Bal/stdbas/WixInternalUIBootstrapperApplication.cpp | |||
@@ -1,7 +1,6 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. |
2 | 2 | ||
3 | #include "precomp.h" | 3 | #include "precomp.h" |
4 | #include "BalBaseBootstrapperApplication.h" | ||
5 | 4 | ||
6 | static const LPCWSTR WIXIUIBA_WINDOW_CLASS = L"WixInternalUIBA"; | 5 | static const LPCWSTR WIXIUIBA_WINDOW_CLASS = L"WixInternalUIBA"; |
7 | 6 | ||
@@ -15,10 +14,10 @@ enum WM_WIXIUIBA | |||
15 | }; | 14 | }; |
16 | 15 | ||
17 | 16 | ||
18 | class CWixInternalUIBootstrapperApplication : public CBalBaseBootstrapperApplication | 17 | class CWixInternalUIBootstrapperApplication : public CBootstrapperApplicationBase |
19 | { | 18 | { |
20 | public: // IBootstrapperApplication | 19 | public: // IBootstrapperApplication |
21 | STDMETHODIMP OnCreate( | 20 | virtual STDMETHODIMP OnCreate( |
22 | __in IBootstrapperEngine* pEngine, | 21 | __in IBootstrapperEngine* pEngine, |
23 | __in BOOTSTRAPPER_COMMAND* pCommand | 22 | __in BOOTSTRAPPER_COMMAND* pCommand |
24 | ) | 23 | ) |
@@ -26,7 +25,7 @@ public: // IBootstrapperApplication | |||
26 | HRESULT hr = S_OK; | 25 | HRESULT hr = S_OK; |
27 | 26 | ||
28 | hr = __super::OnCreate(pEngine, pCommand); | 27 | hr = __super::OnCreate(pEngine, pCommand); |
29 | BalExitOnFailure(hr, "CBalBaseBootstrapperApplication initialization failed."); | 28 | BalExitOnFailure(hr, "CBootstrapperApplicationBase initialization failed."); |
30 | 29 | ||
31 | m_commandAction = pCommand->action; | 30 | m_commandAction = pCommand->action; |
32 | m_commandDisplay = pCommand->display; | 31 | m_commandDisplay = pCommand->display; |
@@ -794,7 +793,7 @@ public: | |||
794 | // | 793 | // |
795 | CWixInternalUIBootstrapperApplication( | 794 | CWixInternalUIBootstrapperApplication( |
796 | __in HMODULE hModule | 795 | __in HMODULE hModule |
797 | ) : CBalBaseBootstrapperApplication(3, 3000) | 796 | ) : CBootstrapperApplicationBase(3, 3000) |
798 | { | 797 | { |
799 | m_hModule = hModule; | 798 | m_hModule = hModule; |
800 | m_commandAction = BOOTSTRAPPER_ACTION_UNKNOWN; | 799 | m_commandAction = BOOTSTRAPPER_ACTION_UNKNOWN; |
diff --git a/src/ext/Bal/stdbas/WixStandardBootstrapperApplication.cpp b/src/ext/Bal/stdbas/WixStandardBootstrapperApplication.cpp index 233cabbc..c86a4a1d 100644 --- a/src/ext/Bal/stdbas/WixStandardBootstrapperApplication.cpp +++ b/src/ext/Bal/stdbas/WixStandardBootstrapperApplication.cpp | |||
@@ -1,7 +1,6 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. |
2 | 2 | ||
3 | #include "precomp.h" | 3 | #include "precomp.h" |
4 | #include "BalBaseBootstrapperApplication.h" | ||
5 | 4 | ||
6 | static const LPCWSTR WIXBUNDLE_VARIABLE_CANRESTART = L"WixCanRestart"; | 5 | static const LPCWSTR WIXBUNDLE_VARIABLE_CANRESTART = L"WixCanRestart"; |
7 | static const LPCWSTR WIXBUNDLE_VARIABLE_ELEVATED = L"WixBundleElevated"; | 6 | static const LPCWSTR WIXBUNDLE_VARIABLE_ELEVATED = L"WixBundleElevated"; |
@@ -178,10 +177,10 @@ static LPCSTR LoggingMsiFeatureStateToString( | |||
178 | ); | 177 | ); |
179 | 178 | ||
180 | 179 | ||
181 | class CWixStandardBootstrapperApplication : public CBalBaseBootstrapperApplication | 180 | class CWixStandardBootstrapperApplication : public CBootstrapperApplicationBase |
182 | { | 181 | { |
183 | public: // IBootstrapperApplication | 182 | public: // IBootstrapperApplication |
184 | STDMETHODIMP OnCreate( | 183 | virtual STDMETHODIMP OnCreate( |
185 | __in IBootstrapperEngine* pEngine, | 184 | __in IBootstrapperEngine* pEngine, |
186 | __in BOOTSTRAPPER_COMMAND* pCommand | 185 | __in BOOTSTRAPPER_COMMAND* pCommand |
187 | ) | 186 | ) |
@@ -189,7 +188,7 @@ public: // IBootstrapperApplication | |||
189 | HRESULT hr = S_OK; | 188 | HRESULT hr = S_OK; |
190 | 189 | ||
191 | hr = __super::OnCreate(pEngine, pCommand); | 190 | hr = __super::OnCreate(pEngine, pCommand); |
192 | BalExitOnFailure(hr, "CBalBaseBootstrapperApplication initialization failed."); | 191 | BalExitOnFailure(hr, "CBootstrapperApplicationBase initialization failed."); |
193 | 192 | ||
194 | m_commandAction = pCommand->action; | 193 | m_commandAction = pCommand->action; |
195 | m_commandDisplay = pCommand->display; | 194 | m_commandDisplay = pCommand->display; |
@@ -388,7 +387,7 @@ public: // IBootstrapperApplication | |||
388 | } | 387 | } |
389 | 388 | ||
390 | LExit: | 389 | LExit: |
391 | return CBalBaseBootstrapperApplication::OnDetectRelatedBundle(wzBundleId, relationType, wzBundleTag, fPerMachine, wzVersion, fMissingFromCache, pfCancel); | 390 | return CBootstrapperApplicationBase::OnDetectRelatedBundle(wzBundleId, relationType, wzBundleTag, fPerMachine, wzVersion, fMissingFromCache, pfCancel); |
392 | } | 391 | } |
393 | 392 | ||
394 | 393 | ||
@@ -563,7 +562,7 @@ public: // IBootstrapperApplication | |||
563 | *pRequestedType = BOOTSTRAPPER_RELATED_BUNDLE_PLAN_TYPE_NONE; | 562 | *pRequestedType = BOOTSTRAPPER_RELATED_BUNDLE_PLAN_TYPE_NONE; |
564 | } | 563 | } |
565 | 564 | ||
566 | return CBalBaseBootstrapperApplication::OnPlanRelatedBundleType(wzBundleId, recommendedType, pRequestedType, pfCancel); | 565 | return CBootstrapperApplicationBase::OnPlanRelatedBundleType(wzBundleId, recommendedType, pRequestedType, pfCancel); |
567 | } | 566 | } |
568 | 567 | ||
569 | 568 | ||
@@ -633,7 +632,7 @@ public: // IBootstrapperApplication | |||
633 | } | 632 | } |
634 | } | 633 | } |
635 | 634 | ||
636 | return CBalBaseBootstrapperApplication::OnPlanPackageBegin(wzPackageId, state, fCached, installCondition, repairCondition, recommendedState, recommendedCacheType, pRequestState, pRequestedCacheType, pfCancel); | 635 | return CBootstrapperApplicationBase::OnPlanPackageBegin(wzPackageId, state, fCached, installCondition, repairCondition, recommendedState, recommendedCacheType, pRequestState, pRequestedCacheType, pfCancel); |
637 | } | 636 | } |
638 | 637 | ||
639 | 638 | ||
@@ -4778,7 +4777,7 @@ public: | |||
4778 | CWixStandardBootstrapperApplication( | 4777 | CWixStandardBootstrapperApplication( |
4779 | __in HMODULE hModule, | 4778 | __in HMODULE hModule, |
4780 | __in BOOL fRunAsPrereqBA | 4779 | __in BOOL fRunAsPrereqBA |
4781 | ) : CBalBaseBootstrapperApplication(3, 3000) | 4780 | ) : CBootstrapperApplicationBase(3, 3000) |
4782 | { | 4781 | { |
4783 | THEME_ASSIGN_CONTROL_ID* pAssignControl = NULL; | 4782 | THEME_ASSIGN_CONTROL_ID* pAssignControl = NULL; |
4784 | DWORD dwAutomaticBehaviorType = THEME_CONTROL_AUTOMATIC_BEHAVIOR_EXCLUDE_ENABLED | THEME_CONTROL_AUTOMATIC_BEHAVIOR_EXCLUDE_VISIBLE | THEME_CONTROL_AUTOMATIC_BEHAVIOR_EXCLUDE_ACTION | THEME_CONTROL_AUTOMATIC_BEHAVIOR_EXCLUDE_VALUE; | 4783 | DWORD dwAutomaticBehaviorType = THEME_CONTROL_AUTOMATIC_BEHAVIOR_EXCLUDE_ENABLED | THEME_CONTROL_AUTOMATIC_BEHAVIOR_EXCLUDE_VISIBLE | THEME_CONTROL_AUTOMATIC_BEHAVIOR_EXCLUDE_ACTION | THEME_CONTROL_AUTOMATIC_BEHAVIOR_EXCLUDE_VALUE; |
diff --git a/src/ext/Bal/stdbas/precomp.h b/src/ext/Bal/stdbas/precomp.h index 00d0d03f..a6c4cfe4 100644 --- a/src/ext/Bal/stdbas/precomp.h +++ b/src/ext/Bal/stdbas/precomp.h | |||
@@ -36,13 +36,9 @@ | |||
36 | #include <uriutil.h> | 36 | #include <uriutil.h> |
37 | #include <xmlutil.h> | 37 | #include <xmlutil.h> |
38 | 38 | ||
39 | #include <IBootstrapperApplication.h> | 39 | #include <BootstrapperApplicationBase.h> |
40 | |||
41 | #include <balutil.h> | ||
42 | #include <balinfo.h> | ||
43 | #include <balcondition.h> | ||
44 | |||
45 | #include <BAFunctions.h> | 40 | #include <BAFunctions.h> |
41 | #include <balcondition.h> | ||
46 | 42 | ||
47 | #include "stdbas.messages.h" | 43 | #include "stdbas.messages.h" |
48 | #include "WixStandardBootstrapperApplication.h" | 44 | #include "WixStandardBootstrapperApplication.h" |
diff --git a/src/ext/Bal/test/WixStdFnUnitTest/TestBootstrapperApplication.cpp b/src/ext/Bal/test/WixStdFnUnitTest/TestBootstrapperApplication.cpp index b345ab9f..d0b38064 100644 --- a/src/ext/Bal/test/WixStdFnUnitTest/TestBootstrapperApplication.cpp +++ b/src/ext/Bal/test/WixStdFnUnitTest/TestBootstrapperApplication.cpp | |||
@@ -1,12 +1,11 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. |
2 | 2 | ||
3 | #include "precomp.h" | 3 | #include "precomp.h" |
4 | #include "BalBaseBootstrapperApplication.h" | ||
5 | 4 | ||
6 | class CTestBootstrapperApplication : public CBalBaseBootstrapperApplication | 5 | class CTestBootstrapperApplication : public CBootstrapperApplicationBase |
7 | { | 6 | { |
8 | public: | 7 | public: |
9 | CTestBootstrapperApplication() : CBalBaseBootstrapperApplication() | 8 | CTestBootstrapperApplication() : CBootstrapperApplicationBase() |
10 | { | 9 | { |
11 | } | 10 | } |
12 | }; | 11 | }; |
diff --git a/src/ext/Bal/test/WixStdFnUnitTest/precomp.h b/src/ext/Bal/test/WixStdFnUnitTest/precomp.h index 4cdd262c..23bc7a6c 100644 --- a/src/ext/Bal/test/WixStdFnUnitTest/precomp.h +++ b/src/ext/Bal/test/WixStdFnUnitTest/precomp.h | |||
@@ -15,10 +15,8 @@ | |||
15 | #include <dutil.h> | 15 | #include <dutil.h> |
16 | #include <dictutil.h> | 16 | #include <dictutil.h> |
17 | 17 | ||
18 | #include <IBootstrapperApplication.h> | 18 | #include <BootstrapperApplicationBase.h> |
19 | #include <IBAFunctions.h> | 19 | #include <IBAFunctions.h> |
20 | #include <balutil.h> | ||
21 | #include <balretry.h> | ||
22 | 20 | ||
23 | #include "TestBAFunctions.h" | 21 | #include "TestBAFunctions.h" |
24 | #include "TestBootstrapperApplication.h" | 22 | #include "TestBootstrapperApplication.h" |
diff --git a/src/ext/Bal/wixiuiba/precomp.h b/src/ext/Bal/wixiuiba/precomp.h index 782c0b1b..a4ce6776 100644 --- a/src/ext/Bal/wixiuiba/precomp.h +++ b/src/ext/Bal/wixiuiba/precomp.h | |||
@@ -15,10 +15,6 @@ | |||
15 | #include <strutil.h> | 15 | #include <strutil.h> |
16 | #include <xmlutil.h> | 16 | #include <xmlutil.h> |
17 | 17 | ||
18 | #include <IBootstrapperApplication.h> | 18 | #include <BootstrapperApplication.h> |
19 | |||
20 | #include <balutil.h> | ||
21 | #include <balinfo.h> | ||
22 | #include <balcondition.h> | ||
23 | 19 | ||
24 | #include "WixInternalUIBootstrapperApplication.h" | 20 | #include "WixInternalUIBootstrapperApplication.h" |
diff --git a/src/ext/Bal/wixprqba/precomp.h b/src/ext/Bal/wixprqba/precomp.h index a47f411b..b6178be3 100644 --- a/src/ext/Bal/wixprqba/precomp.h +++ b/src/ext/Bal/wixprqba/precomp.h | |||
@@ -35,12 +35,7 @@ | |||
35 | #include <uriutil.h> | 35 | #include <uriutil.h> |
36 | #include <xmlutil.h> | 36 | #include <xmlutil.h> |
37 | 37 | ||
38 | #include <IBootstrapperApplication.h> | 38 | #include <BootstrapperApplication.h> |
39 | |||
40 | #include <balutil.h> | ||
41 | #include <balinfo.h> | ||
42 | #include <balcondition.h> | ||
43 | |||
44 | #include <BAFunctions.h> | 39 | #include <BAFunctions.h> |
45 | 40 | ||
46 | #include "WixStandardBootstrapperApplication.h" | 41 | #include "WixStandardBootstrapperApplication.h" |
diff --git a/src/ext/Bal/wixstdba/precomp.h b/src/ext/Bal/wixstdba/precomp.h index a47f411b..66c5152d 100644 --- a/src/ext/Bal/wixstdba/precomp.h +++ b/src/ext/Bal/wixstdba/precomp.h | |||
@@ -35,12 +35,8 @@ | |||
35 | #include <uriutil.h> | 35 | #include <uriutil.h> |
36 | #include <xmlutil.h> | 36 | #include <xmlutil.h> |
37 | 37 | ||
38 | #include <IBootstrapperApplication.h> | 38 | #include <BootstrapperApplication.h> |
39 | |||
40 | #include <balutil.h> | 39 | #include <balutil.h> |
41 | #include <balinfo.h> | ||
42 | #include <balcondition.h> | ||
43 | |||
44 | #include <BAFunctions.h> | 40 | #include <BAFunctions.h> |
45 | 41 | ||
46 | #include "WixStandardBootstrapperApplication.h" | 42 | #include "WixStandardBootstrapperApplication.h" |