diff options
Diffstat (limited to 'src/ext/NetFx')
21 files changed, 93 insertions, 93 deletions
diff --git a/src/ext/NetFx/be/NetfxBundleExtension.cpp b/src/ext/NetFx/be/NetfxBootstrapperExtension.cpp index 838a97c1..ab30e378 100644 --- a/src/ext/NetFx/be/NetfxBundleExtension.cpp +++ b/src/ext/NetFx/be/NetfxBootstrapperExtension.cpp | |||
@@ -1,11 +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 "BextBaseBundleExtension.h" | 4 | #include "BextBaseBootstrapperExtension.h" |
5 | 5 | ||
6 | class CWixNetfxBundleExtension : public CBextBaseBundleExtension | 6 | class CWixNetfxBootstrapperExtension : public CBextBaseBootstrapperExtension |
7 | { | 7 | { |
8 | public: // IBundleExtension | 8 | public: // IBootstrapperExtension |
9 | virtual STDMETHODIMP Search( | 9 | virtual STDMETHODIMP Search( |
10 | __in LPCWSTR wzId, | 10 | __in LPCWSTR wzId, |
11 | __in LPCWSTR wzVariable | 11 | __in LPCWSTR wzVariable |
@@ -18,18 +18,18 @@ public: // IBundleExtension | |||
18 | return hr; | 18 | return hr; |
19 | } | 19 | } |
20 | 20 | ||
21 | public: //CBextBaseBundleExtension | 21 | public: //CBextBaseBootstrapperExtension |
22 | virtual STDMETHODIMP Initialize( | 22 | virtual STDMETHODIMP Initialize( |
23 | __in const BUNDLE_EXTENSION_CREATE_ARGS* pCreateArgs | 23 | __in const BOOTSTRAPPER_EXTENSION_CREATE_ARGS* pCreateArgs |
24 | ) | 24 | ) |
25 | { | 25 | { |
26 | HRESULT hr = S_OK; | 26 | HRESULT hr = S_OK; |
27 | LPWSTR sczModulePath = NULL; | 27 | LPWSTR sczModulePath = NULL; |
28 | IXMLDOMDocument* pixdManifest = NULL; | 28 | IXMLDOMDocument* pixdManifest = NULL; |
29 | IXMLDOMNode* pixnBundleExtension = NULL; | 29 | IXMLDOMNode* pixnBootstrapperExtension = NULL; |
30 | 30 | ||
31 | hr = __super::Initialize(pCreateArgs); | 31 | hr = __super::Initialize(pCreateArgs); |
32 | BextExitOnFailure(hr, "CBextBaseBundleExtension initialization failed."); | 32 | BextExitOnFailure(hr, "CBextBaseBootstrapperExtension initialization failed."); |
33 | 33 | ||
34 | hr = PathForCurrentProcess(&sczModulePath, m_hInstance); | 34 | hr = PathForCurrentProcess(&sczModulePath, m_hInstance); |
35 | BextExitOnFailure(hr, "Failed to get bundle extension path."); | 35 | BextExitOnFailure(hr, "Failed to get bundle extension path."); |
@@ -37,17 +37,17 @@ public: //CBextBaseBundleExtension | |||
37 | hr = PathGetDirectory(sczModulePath, &m_sczBaseDirectory); | 37 | hr = PathGetDirectory(sczModulePath, &m_sczBaseDirectory); |
38 | BextExitOnFailure(hr, "Failed to get bundle extension base directory."); | 38 | BextExitOnFailure(hr, "Failed to get bundle extension base directory."); |
39 | 39 | ||
40 | hr = XmlLoadDocumentFromFile(m_sczBundleExtensionDataPath, &pixdManifest); | 40 | hr = XmlLoadDocumentFromFile(m_sczBootstrapperExtensionDataPath, &pixdManifest); |
41 | BextExitOnFailure(hr, "Failed to load bundle extension manifest from path: %ls", m_sczBundleExtensionDataPath); | 41 | BextExitOnFailure(hr, "Failed to load bundle extension manifest from path: %ls", m_sczBootstrapperExtensionDataPath); |
42 | 42 | ||
43 | hr = BextGetBundleExtensionDataNode(pixdManifest, NETFX_BUNDLE_EXTENSION_ID, &pixnBundleExtension); | 43 | hr = BextGetBootstrapperExtensionDataNode(pixdManifest, NETFX_BOOTSTRAPPER_EXTENSION_ID, &pixnBootstrapperExtension); |
44 | BextExitOnFailure(hr, "Failed to get BundleExtension '%ls'", NETFX_BUNDLE_EXTENSION_ID); | 44 | BextExitOnFailure(hr, "Failed to get BootstrapperExtension '%ls'", NETFX_BOOTSTRAPPER_EXTENSION_ID); |
45 | 45 | ||
46 | hr = NetfxSearchParseFromXml(&m_searches, pixnBundleExtension); | 46 | hr = NetfxSearchParseFromXml(&m_searches, pixnBootstrapperExtension); |
47 | BextExitOnFailure(hr, "Failed to parse searches from bundle extension manifest."); | 47 | BextExitOnFailure(hr, "Failed to parse searches from bundle extension manifest."); |
48 | 48 | ||
49 | LExit: | 49 | LExit: |
50 | ReleaseObject(pixnBundleExtension); | 50 | ReleaseObject(pixnBootstrapperExtension); |
51 | ReleaseObject(pixdManifest); | 51 | ReleaseObject(pixdManifest); |
52 | ReleaseStr(sczModulePath); | 52 | ReleaseStr(sczModulePath); |
53 | 53 | ||
@@ -55,17 +55,17 @@ public: //CBextBaseBundleExtension | |||
55 | } | 55 | } |
56 | 56 | ||
57 | public: | 57 | public: |
58 | CWixNetfxBundleExtension( | 58 | CWixNetfxBootstrapperExtension( |
59 | __in HINSTANCE hInstance, | 59 | __in HINSTANCE hInstance, |
60 | __in IBundleExtensionEngine* pEngine | 60 | __in IBootstrapperExtensionEngine* pEngine |
61 | ) : CBextBaseBundleExtension(pEngine) | 61 | ) : CBextBaseBootstrapperExtension(pEngine) |
62 | { | 62 | { |
63 | m_searches = { }; | 63 | m_searches = { }; |
64 | m_hInstance = hInstance; | 64 | m_hInstance = hInstance; |
65 | m_sczBaseDirectory = NULL; | 65 | m_sczBaseDirectory = NULL; |
66 | } | 66 | } |
67 | 67 | ||
68 | ~CWixNetfxBundleExtension() | 68 | ~CWixNetfxBootstrapperExtension() |
69 | { | 69 | { |
70 | NetfxSearchUninitialize(&m_searches); | 70 | NetfxSearchUninitialize(&m_searches); |
71 | ReleaseStr(m_sczBaseDirectory); | 71 | ReleaseStr(m_sczBaseDirectory); |
@@ -77,23 +77,23 @@ private: | |||
77 | LPWSTR m_sczBaseDirectory; | 77 | LPWSTR m_sczBaseDirectory; |
78 | }; | 78 | }; |
79 | 79 | ||
80 | HRESULT NetfxBundleExtensionCreate( | 80 | HRESULT NetfxBootstrapperExtensionCreate( |
81 | __in HINSTANCE hInstance, | 81 | __in HINSTANCE hInstance, |
82 | __in IBundleExtensionEngine* pEngine, | 82 | __in IBootstrapperExtensionEngine* pEngine, |
83 | __in const BUNDLE_EXTENSION_CREATE_ARGS* pArgs, | 83 | __in const BOOTSTRAPPER_EXTENSION_CREATE_ARGS* pArgs, |
84 | __out IBundleExtension** ppBundleExtension | 84 | __out IBootstrapperExtension** ppBootstrapperExtension |
85 | ) | 85 | ) |
86 | { | 86 | { |
87 | HRESULT hr = S_OK; | 87 | HRESULT hr = S_OK; |
88 | CWixNetfxBundleExtension* pExtension = NULL; | 88 | CWixNetfxBootstrapperExtension* pExtension = NULL; |
89 | 89 | ||
90 | pExtension = new CWixNetfxBundleExtension(hInstance, pEngine); | 90 | pExtension = new CWixNetfxBootstrapperExtension(hInstance, pEngine); |
91 | BextExitOnNull(pExtension, hr, E_OUTOFMEMORY, "Failed to create new CWixNetfxBundleExtension."); | 91 | BextExitOnNull(pExtension, hr, E_OUTOFMEMORY, "Failed to create new CWixNetfxBootstrapperExtension."); |
92 | 92 | ||
93 | hr = pExtension->Initialize(pArgs); | 93 | hr = pExtension->Initialize(pArgs); |
94 | BextExitOnFailure(hr, "CWixNetfxBundleExtension initialization failed."); | 94 | BextExitOnFailure(hr, "CWixNetfxBootstrapperExtension initialization failed."); |
95 | 95 | ||
96 | *ppBundleExtension = pExtension; | 96 | *ppBootstrapperExtension = pExtension; |
97 | pExtension = NULL; | 97 | pExtension = NULL; |
98 | 98 | ||
99 | LExit: | 99 | LExit: |
diff --git a/src/ext/NetFx/be/NetfxBootstrapperExtension.h b/src/ext/NetFx/be/NetfxBootstrapperExtension.h new file mode 100644 index 00000000..36563dae --- /dev/null +++ b/src/ext/NetFx/be/NetfxBootstrapperExtension.h | |||
@@ -0,0 +1,17 @@ | |||
1 | #pragma once | ||
2 | // 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. | ||
3 | |||
4 | |||
5 | // constants | ||
6 | |||
7 | #define NETFX_BOOTSTRAPPER_EXTENSION_ID BOOTSTRAPPER_EXTENSION_DECORATION(L"NetfxBootstrapperExtension") | ||
8 | |||
9 | |||
10 | // function declarations | ||
11 | |||
12 | HRESULT NetfxBootstrapperExtensionCreate( | ||
13 | __in HINSTANCE hInstance, | ||
14 | __in IBootstrapperExtensionEngine* pEngine, | ||
15 | __in const BOOTSTRAPPER_EXTENSION_CREATE_ARGS* pArgs, | ||
16 | __out IBootstrapperExtension** ppBootstrapperExtension | ||
17 | ); | ||
diff --git a/src/ext/NetFx/be/NetfxBundleExtension.h b/src/ext/NetFx/be/NetfxBundleExtension.h deleted file mode 100644 index 0746dbed..00000000 --- a/src/ext/NetFx/be/NetfxBundleExtension.h +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | #pragma once | ||
2 | // 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. | ||
3 | |||
4 | |||
5 | // constants | ||
6 | |||
7 | #define NETFX_BUNDLE_EXTENSION_ID BUNDLE_EXTENSION_DECORATION(L"NetfxBundleExtension") | ||
8 | |||
9 | |||
10 | // function declarations | ||
11 | |||
12 | HRESULT NetfxBundleExtensionCreate( | ||
13 | __in HINSTANCE hInstance, | ||
14 | __in IBundleExtensionEngine* pEngine, | ||
15 | __in const BUNDLE_EXTENSION_CREATE_ARGS* pArgs, | ||
16 | __out IBundleExtension** ppBundleExtension | ||
17 | ); | ||
diff --git a/src/ext/NetFx/be/detectnetcore.cpp b/src/ext/NetFx/be/detectnetcore.cpp index 3ed26549..c20cc831 100644 --- a/src/ext/NetFx/be/detectnetcore.cpp +++ b/src/ext/NetFx/be/detectnetcore.cpp | |||
@@ -45,7 +45,7 @@ LExit: | |||
45 | HRESULT NetfxPerformDetectNetCore( | 45 | HRESULT NetfxPerformDetectNetCore( |
46 | __in LPCWSTR wzVariable, | 46 | __in LPCWSTR wzVariable, |
47 | __in NETFX_SEARCH* pSearch, | 47 | __in NETFX_SEARCH* pSearch, |
48 | __in IBundleExtensionEngine* pEngine, | 48 | __in IBootstrapperExtensionEngine* pEngine, |
49 | __in LPCWSTR wzBaseDirectory | 49 | __in LPCWSTR wzBaseDirectory |
50 | ) | 50 | ) |
51 | { | 51 | { |
diff --git a/src/ext/NetFx/be/detectnetcore.h b/src/ext/NetFx/be/detectnetcore.h index ef93b39b..cd664b57 100644 --- a/src/ext/NetFx/be/detectnetcore.h +++ b/src/ext/NetFx/be/detectnetcore.h | |||
@@ -4,6 +4,6 @@ | |||
4 | HRESULT NetfxPerformDetectNetCore( | 4 | HRESULT NetfxPerformDetectNetCore( |
5 | __in LPCWSTR wzVariable, | 5 | __in LPCWSTR wzVariable, |
6 | __in NETFX_SEARCH* pSearch, | 6 | __in NETFX_SEARCH* pSearch, |
7 | __in IBundleExtensionEngine* pEngine, | 7 | __in IBootstrapperExtensionEngine* pEngine, |
8 | __in LPCWSTR wzBaseDirectory | 8 | __in LPCWSTR wzBaseDirectory |
9 | ); | 9 | ); |
diff --git a/src/ext/NetFx/be/detectnetcoresdk.cpp b/src/ext/NetFx/be/detectnetcoresdk.cpp index 332d8712..03162eea 100644 --- a/src/ext/NetFx/be/detectnetcoresdk.cpp +++ b/src/ext/NetFx/be/detectnetcoresdk.cpp | |||
@@ -27,7 +27,7 @@ LExit: | |||
27 | HRESULT NetfxPerformDetectNetCoreSdk( | 27 | HRESULT NetfxPerformDetectNetCoreSdk( |
28 | __in LPCWSTR wzVariable, | 28 | __in LPCWSTR wzVariable, |
29 | __in NETFX_SEARCH* pSearch, | 29 | __in NETFX_SEARCH* pSearch, |
30 | __in IBundleExtensionEngine* pEngine, | 30 | __in IBootstrapperExtensionEngine* pEngine, |
31 | __in LPCWSTR wzBaseDirectory | 31 | __in LPCWSTR wzBaseDirectory |
32 | ) | 32 | ) |
33 | { | 33 | { |
diff --git a/src/ext/NetFx/be/detectnetcoresdk.h b/src/ext/NetFx/be/detectnetcoresdk.h index 025deaa2..0eef945a 100644 --- a/src/ext/NetFx/be/detectnetcoresdk.h +++ b/src/ext/NetFx/be/detectnetcoresdk.h | |||
@@ -4,6 +4,6 @@ | |||
4 | HRESULT NetfxPerformDetectNetCoreSdk( | 4 | HRESULT NetfxPerformDetectNetCoreSdk( |
5 | __in LPCWSTR wzVariable, | 5 | __in LPCWSTR wzVariable, |
6 | __in NETFX_SEARCH* pSearch, | 6 | __in NETFX_SEARCH* pSearch, |
7 | __in IBundleExtensionEngine* pEngine, | 7 | __in IBootstrapperExtensionEngine* pEngine, |
8 | __in LPCWSTR wzBaseDirectory | 8 | __in LPCWSTR wzBaseDirectory |
9 | ); | 9 | ); |
diff --git a/src/ext/NetFx/be/detectnetcoresdkfeatureband.cpp b/src/ext/NetFx/be/detectnetcoresdkfeatureband.cpp index d48c7a85..eca61fad 100644 --- a/src/ext/NetFx/be/detectnetcoresdkfeatureband.cpp +++ b/src/ext/NetFx/be/detectnetcoresdkfeatureband.cpp | |||
@@ -29,7 +29,7 @@ LExit: | |||
29 | HRESULT NetfxPerformDetectNetCoreSdkFeatureBand( | 29 | HRESULT NetfxPerformDetectNetCoreSdkFeatureBand( |
30 | __in LPCWSTR wzVariable, | 30 | __in LPCWSTR wzVariable, |
31 | __in NETFX_SEARCH* pSearch, | 31 | __in NETFX_SEARCH* pSearch, |
32 | __in IBundleExtensionEngine* pEngine, | 32 | __in IBootstrapperExtensionEngine* pEngine, |
33 | __in LPCWSTR wzBaseDirectory | 33 | __in LPCWSTR wzBaseDirectory |
34 | ) | 34 | ) |
35 | { | 35 | { |
diff --git a/src/ext/NetFx/be/detectnetcoresdkfeatureband.h b/src/ext/NetFx/be/detectnetcoresdkfeatureband.h index 1f92cd58..d194c6b7 100644 --- a/src/ext/NetFx/be/detectnetcoresdkfeatureband.h +++ b/src/ext/NetFx/be/detectnetcoresdkfeatureband.h | |||
@@ -4,6 +4,6 @@ | |||
4 | HRESULT NetfxPerformDetectNetCoreSdkFeatureBand( | 4 | HRESULT NetfxPerformDetectNetCoreSdkFeatureBand( |
5 | __in LPCWSTR wzVariable, | 5 | __in LPCWSTR wzVariable, |
6 | __in NETFX_SEARCH* pSearch, | 6 | __in NETFX_SEARCH* pSearch, |
7 | __in IBundleExtensionEngine* pEngine, | 7 | __in IBootstrapperExtensionEngine* pEngine, |
8 | __in LPCWSTR wzBaseDirectory | 8 | __in LPCWSTR wzBaseDirectory |
9 | ); | 9 | ); |
diff --git a/src/ext/NetFx/be/netfxbe.cpp b/src/ext/NetFx/be/netfxbe.cpp index 3a34cea3..72eda51a 100644 --- a/src/ext/NetFx/be/netfxbe.cpp +++ b/src/ext/NetFx/be/netfxbe.cpp | |||
@@ -1,10 +1,10 @@ | |||
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 "BextBaseBundleExtensionProc.h" | 4 | #include "BextBaseBootstrapperExtensionProc.h" |
5 | 5 | ||
6 | static HINSTANCE vhInstance = NULL; | 6 | static HINSTANCE vhInstance = NULL; |
7 | static IBundleExtension* vpBundleExtension = NULL; | 7 | static IBootstrapperExtension* vpBootstrapperExtension = NULL; |
8 | 8 | ||
9 | // function definitions | 9 | // function definitions |
10 | 10 | ||
@@ -28,13 +28,13 @@ extern "C" BOOL WINAPI DllMain( | |||
28 | return TRUE; | 28 | return TRUE; |
29 | } | 29 | } |
30 | 30 | ||
31 | extern "C" HRESULT WINAPI BundleExtensionCreate( | 31 | extern "C" HRESULT WINAPI BootstrapperExtensionCreate( |
32 | __in const BUNDLE_EXTENSION_CREATE_ARGS* pArgs, | 32 | __in const BOOTSTRAPPER_EXTENSION_CREATE_ARGS* pArgs, |
33 | __inout BUNDLE_EXTENSION_CREATE_RESULTS* pResults | 33 | __inout BOOTSTRAPPER_EXTENSION_CREATE_RESULTS* pResults |
34 | ) | 34 | ) |
35 | { | 35 | { |
36 | HRESULT hr = S_OK; | 36 | HRESULT hr = S_OK; |
37 | IBundleExtensionEngine* pEngine = NULL; | 37 | IBootstrapperExtensionEngine* pEngine = NULL; |
38 | 38 | ||
39 | hr = XmlInitialize(); | 39 | hr = XmlInitialize(); |
40 | ExitOnFailure(hr, "Failed to initialize XML."); | 40 | ExitOnFailure(hr, "Failed to initialize XML."); |
@@ -42,11 +42,11 @@ extern "C" HRESULT WINAPI BundleExtensionCreate( | |||
42 | hr = BextInitializeFromCreateArgs(pArgs, &pEngine); | 42 | hr = BextInitializeFromCreateArgs(pArgs, &pEngine); |
43 | ExitOnFailure(hr, "Failed to initialize bext"); | 43 | ExitOnFailure(hr, "Failed to initialize bext"); |
44 | 44 | ||
45 | hr = NetfxBundleExtensionCreate(vhInstance, pEngine, pArgs, &vpBundleExtension); | 45 | hr = NetfxBootstrapperExtensionCreate(vhInstance, pEngine, pArgs, &vpBootstrapperExtension); |
46 | BextExitOnFailure(hr, "Failed to create WixNetfxBundleExtension"); | 46 | BextExitOnFailure(hr, "Failed to create WixNetfxBootstrapperExtension"); |
47 | 47 | ||
48 | pResults->pfnBundleExtensionProc = BextBaseBundleExtensionProc; | 48 | pResults->pfnBootstrapperExtensionProc = BextBaseBootstrapperExtensionProc; |
49 | pResults->pvBundleExtensionProcContext = vpBundleExtension; | 49 | pResults->pvBootstrapperExtensionProcContext = vpBootstrapperExtension; |
50 | 50 | ||
51 | LExit: | 51 | LExit: |
52 | ReleaseObject(pEngine); | 52 | ReleaseObject(pEngine); |
@@ -54,9 +54,9 @@ LExit: | |||
54 | return hr; | 54 | return hr; |
55 | } | 55 | } |
56 | 56 | ||
57 | extern "C" void WINAPI BundleExtensionDestroy() | 57 | extern "C" void WINAPI BootstrapperExtensionDestroy() |
58 | { | 58 | { |
59 | BextUninitialize(); | 59 | BextUninitialize(); |
60 | ReleaseNullObject(vpBundleExtension); | 60 | ReleaseNullObject(vpBootstrapperExtension); |
61 | XmlUninitialize(); | 61 | XmlUninitialize(); |
62 | } | 62 | } |
diff --git a/src/ext/NetFx/be/netfxbe.def b/src/ext/NetFx/be/netfxbe.def index c6605241..2eeaf32c 100644 --- a/src/ext/NetFx/be/netfxbe.def +++ b/src/ext/NetFx/be/netfxbe.def | |||
@@ -4,5 +4,5 @@ | |||
4 | LIBRARY "netfxbe" | 4 | LIBRARY "netfxbe" |
5 | 5 | ||
6 | EXPORTS | 6 | EXPORTS |
7 | BundleExtensionCreate | 7 | BootstrapperExtensionCreate |
8 | BundleExtensionDestroy | 8 | BootstrapperExtensionDestroy |
diff --git a/src/ext/NetFx/be/netfxbe.vcxproj b/src/ext/NetFx/be/netfxbe.vcxproj index 94026960..d157b64a 100644 --- a/src/ext/NetFx/be/netfxbe.vcxproj +++ b/src/ext/NetFx/be/netfxbe.vcxproj | |||
@@ -35,7 +35,7 @@ | |||
35 | <TargetName>netfxbe</TargetName> | 35 | <TargetName>netfxbe</TargetName> |
36 | <CharacterSet>Unicode</CharacterSet> | 36 | <CharacterSet>Unicode</CharacterSet> |
37 | <ProjectModuleDefinitionFile>netfxbe.def</ProjectModuleDefinitionFile> | 37 | <ProjectModuleDefinitionFile>netfxbe.def</ProjectModuleDefinitionFile> |
38 | <Description>WiX Toolset Netfx BundleExtension</Description> | 38 | <Description>WiX Toolset Netfx BootstrapperExtension</Description> |
39 | </PropertyGroup> | 39 | </PropertyGroup> |
40 | 40 | ||
41 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | 41 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> |
@@ -50,7 +50,7 @@ | |||
50 | <ClCompile Include="detectnetcoresdk.cpp" /> | 50 | <ClCompile Include="detectnetcoresdk.cpp" /> |
51 | <ClCompile Include="detectnetcoresdkfeatureband.cpp" /> | 51 | <ClCompile Include="detectnetcoresdkfeatureband.cpp" /> |
52 | <ClCompile Include="netfxbe.cpp" /> | 52 | <ClCompile Include="netfxbe.cpp" /> |
53 | <ClCompile Include="NetfxBundleExtension.cpp" /> | 53 | <ClCompile Include="NetfxBootstrapperExtension.cpp" /> |
54 | <ClCompile Include="netfxsearch.cpp" /> | 54 | <ClCompile Include="netfxsearch.cpp" /> |
55 | <ClCompile Include="precomp.cpp"> | 55 | <ClCompile Include="precomp.cpp"> |
56 | <PrecompiledHeader>Create</PrecompiledHeader> | 56 | <PrecompiledHeader>Create</PrecompiledHeader> |
@@ -62,7 +62,7 @@ | |||
62 | <ClInclude Include="detectnetcore.h" /> | 62 | <ClInclude Include="detectnetcore.h" /> |
63 | <ClInclude Include="detectnetcoresdk.h" /> | 63 | <ClInclude Include="detectnetcoresdk.h" /> |
64 | <ClInclude Include="detectnetcoresdkfeatureband.h" /> | 64 | <ClInclude Include="detectnetcoresdkfeatureband.h" /> |
65 | <ClInclude Include="NetfxBundleExtension.h" /> | 65 | <ClInclude Include="NetfxBootstrapperExtension.h" /> |
66 | <ClInclude Include="netfxsearch.h" /> | 66 | <ClInclude Include="netfxsearch.h" /> |
67 | <ClInclude Include="precomp.h" /> | 67 | <ClInclude Include="precomp.h" /> |
68 | <ClInclude Include="runnetcoresearch.h" /> | 68 | <ClInclude Include="runnetcoresearch.h" /> |
@@ -73,7 +73,7 @@ | |||
73 | </ItemGroup> | 73 | </ItemGroup> |
74 | 74 | ||
75 | <ItemGroup> | 75 | <ItemGroup> |
76 | <PackageReference Include="WixToolset.BextUtil" /> | 76 | <PackageReference Include="WixToolset.BootstrapperExtensionApi" /> |
77 | 77 | ||
78 | <PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" /> | 78 | <PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" /> |
79 | </ItemGroup> | 79 | </ItemGroup> |
diff --git a/src/ext/NetFx/be/netfxsearch.cpp b/src/ext/NetFx/be/netfxsearch.cpp index ffbf6ee0..38c34e3c 100644 --- a/src/ext/NetFx/be/netfxsearch.cpp +++ b/src/ext/NetFx/be/netfxsearch.cpp | |||
@@ -5,7 +5,7 @@ | |||
5 | 5 | ||
6 | STDMETHODIMP NetfxSearchParseFromXml( | 6 | STDMETHODIMP NetfxSearchParseFromXml( |
7 | __in NETFX_SEARCHES* pSearches, | 7 | __in NETFX_SEARCHES* pSearches, |
8 | __in IXMLDOMNode* pixnBundleExtension | 8 | __in IXMLDOMNode* pixnBootstrapperExtension |
9 | ) | 9 | ) |
10 | { | 10 | { |
11 | HRESULT hr = S_OK; | 11 | HRESULT hr = S_OK; |
@@ -15,7 +15,7 @@ STDMETHODIMP NetfxSearchParseFromXml( | |||
15 | BSTR bstrNodeName = NULL; | 15 | BSTR bstrNodeName = NULL; |
16 | 16 | ||
17 | // Select Netfx search nodes. | 17 | // Select Netfx search nodes. |
18 | hr = XmlSelectNodes(pixnBundleExtension, L"NetFxNetCoreSearch|NetFxNetCoreSdkSearch|NetFxNetCoreSdkFeatureBandSearch", &pixnNodes); | 18 | hr = XmlSelectNodes(pixnBootstrapperExtension, L"NetFxNetCoreSearch|NetFxNetCoreSdkSearch|NetFxNetCoreSdkFeatureBandSearch", &pixnNodes); |
19 | BextExitOnFailure(hr, "Failed to select Netfx search nodes."); | 19 | BextExitOnFailure(hr, "Failed to select Netfx search nodes."); |
20 | 20 | ||
21 | // Get Netfx search node count. | 21 | // Get Netfx search node count. |
@@ -135,7 +135,7 @@ STDMETHODIMP NetfxSearchExecute( | |||
135 | __in NETFX_SEARCHES* pSearches, | 135 | __in NETFX_SEARCHES* pSearches, |
136 | __in LPCWSTR wzSearchId, | 136 | __in LPCWSTR wzSearchId, |
137 | __in LPCWSTR wzVariable, | 137 | __in LPCWSTR wzVariable, |
138 | __in IBundleExtensionEngine* pEngine, | 138 | __in IBootstrapperExtensionEngine* pEngine, |
139 | __in LPCWSTR wzBaseDirectory | 139 | __in LPCWSTR wzBaseDirectory |
140 | ) | 140 | ) |
141 | { | 141 | { |
diff --git a/src/ext/NetFx/be/netfxsearch.h b/src/ext/NetFx/be/netfxsearch.h index 5793dd55..f532a5a5 100644 --- a/src/ext/NetFx/be/netfxsearch.h +++ b/src/ext/NetFx/be/netfxsearch.h | |||
@@ -68,7 +68,7 @@ typedef struct _NETFX_SEARCHES | |||
68 | 68 | ||
69 | STDMETHODIMP NetfxSearchParseFromXml( | 69 | STDMETHODIMP NetfxSearchParseFromXml( |
70 | __in NETFX_SEARCHES* pSearches, | 70 | __in NETFX_SEARCHES* pSearches, |
71 | __in IXMLDOMNode* pixnBundleExtension | 71 | __in IXMLDOMNode* pixnBootstrapperExtension |
72 | ); | 72 | ); |
73 | 73 | ||
74 | void NetfxSearchUninitialize( | 74 | void NetfxSearchUninitialize( |
@@ -79,7 +79,7 @@ STDMETHODIMP NetfxSearchExecute( | |||
79 | __in NETFX_SEARCHES* pSearches, | 79 | __in NETFX_SEARCHES* pSearches, |
80 | __in LPCWSTR wzSearchId, | 80 | __in LPCWSTR wzSearchId, |
81 | __in LPCWSTR wzVariable, | 81 | __in LPCWSTR wzVariable, |
82 | __in IBundleExtensionEngine* pEngine, | 82 | __in IBootstrapperExtensionEngine* pEngine, |
83 | __in LPCWSTR wzBaseDirectory | 83 | __in LPCWSTR wzBaseDirectory |
84 | ); | 84 | ); |
85 | 85 | ||
diff --git a/src/ext/NetFx/be/precomp.h b/src/ext/NetFx/be/precomp.h index a0ae1038..a97b3c5e 100644 --- a/src/ext/NetFx/be/precomp.h +++ b/src/ext/NetFx/be/precomp.h | |||
@@ -20,12 +20,12 @@ | |||
20 | #include <xmlutil.h> | 20 | #include <xmlutil.h> |
21 | 21 | ||
22 | #include <bextutil.h> | 22 | #include <bextutil.h> |
23 | #include <BextBundleExtensionEngine.h> | 23 | #include <BextBootstrapperExtensionEngine.h> |
24 | 24 | ||
25 | #include "..\..\beDecor.h" | 25 | #include "..\..\beDecor.h" |
26 | #include "netfxsearch.h" | 26 | #include "netfxsearch.h" |
27 | #include "detectnetcore.h" | 27 | #include "detectnetcore.h" |
28 | #include "detectnetcoresdk.h" | 28 | #include "detectnetcoresdk.h" |
29 | #include "detectnetcoresdkfeatureband.h" | 29 | #include "detectnetcoresdkfeatureband.h" |
30 | #include "NetfxBundleExtension.h" | 30 | #include "NetfxBootstrapperExtension.h" |
31 | #include "runnetcoresearch.h" | 31 | #include "runnetcoresearch.h" |
diff --git a/src/ext/NetFx/wixext/NetFxCompiler.cs b/src/ext/NetFx/wixext/NetFxCompiler.cs index bfadbe07..70e83cc9 100644 --- a/src/ext/NetFx/wixext/NetFxCompiler.cs +++ b/src/ext/NetFx/wixext/NetFxCompiler.cs | |||
@@ -225,15 +225,15 @@ namespace WixToolset.Netfx | |||
225 | 225 | ||
226 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element); | 226 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element); |
227 | 227 | ||
228 | var bundleExtensionId = this.ParseHelper.CreateIdentifierValueFromPlatform("Wix4NetfxBundleExtension", this.Context.Platform, BurnPlatforms.X86 | BurnPlatforms.X64 | BurnPlatforms.ARM64); | 228 | var bootstrapperExtensionId = this.ParseHelper.CreateIdentifierValueFromPlatform("Wix4NetfxBootstrapperExtension", this.Context.Platform, BurnPlatforms.X86 | BurnPlatforms.X64 | BurnPlatforms.ARM64); |
229 | if (bundleExtensionId == null) | 229 | if (bootstrapperExtensionId == null) |
230 | { | 230 | { |
231 | this.Messaging.Write(ErrorMessages.UnsupportedPlatformForElement(sourceLineNumbers, this.Context.Platform.ToString(), element.Name.LocalName)); | 231 | this.Messaging.Write(ErrorMessages.UnsupportedPlatformForElement(sourceLineNumbers, this.Context.Platform.ToString(), element.Name.LocalName)); |
232 | } | 232 | } |
233 | 233 | ||
234 | if (!this.Messaging.EncounteredError) | 234 | if (!this.Messaging.EncounteredError) |
235 | { | 235 | { |
236 | this.ParseHelper.CreateWixSearchSymbol(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, bundleExtensionId); | 236 | this.ParseHelper.CreateWixSearchSymbol(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, bootstrapperExtensionId); |
237 | 237 | ||
238 | section.AddSymbol(new NetFxNetCoreSearchSymbol(sourceLineNumbers, id) | 238 | section.AddSymbol(new NetFxNetCoreSearchSymbol(sourceLineNumbers, id) |
239 | { | 239 | { |
@@ -354,15 +354,15 @@ namespace WixToolset.Netfx | |||
354 | 354 | ||
355 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element); | 355 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element); |
356 | 356 | ||
357 | var bundleExtensionId = this.ParseHelper.CreateIdentifierValueFromPlatform("Wix4NetfxBundleExtension", this.Context.Platform, BurnPlatforms.X86 | BurnPlatforms.X64 | BurnPlatforms.ARM64); | 357 | var bootstrapperExtensionId = this.ParseHelper.CreateIdentifierValueFromPlatform("Wix4NetfxBootstrapperExtension", this.Context.Platform, BurnPlatforms.X86 | BurnPlatforms.X64 | BurnPlatforms.ARM64); |
358 | if (bundleExtensionId == null) | 358 | if (bootstrapperExtensionId == null) |
359 | { | 359 | { |
360 | this.Messaging.Write(ErrorMessages.UnsupportedPlatformForElement(sourceLineNumbers, this.Context.Platform.ToString(), element.Name.LocalName)); | 360 | this.Messaging.Write(ErrorMessages.UnsupportedPlatformForElement(sourceLineNumbers, this.Context.Platform.ToString(), element.Name.LocalName)); |
361 | } | 361 | } |
362 | 362 | ||
363 | if (!this.Messaging.EncounteredError) | 363 | if (!this.Messaging.EncounteredError) |
364 | { | 364 | { |
365 | this.ParseHelper.CreateWixSearchSymbol(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, bundleExtensionId); | 365 | this.ParseHelper.CreateWixSearchSymbol(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, bootstrapperExtensionId); |
366 | 366 | ||
367 | section.AddSymbol(new NetFxNetCoreSdkSearchSymbol(sourceLineNumbers, id) | 367 | section.AddSymbol(new NetFxNetCoreSdkSearchSymbol(sourceLineNumbers, id) |
368 | { | 368 | { |
@@ -503,15 +503,15 @@ namespace WixToolset.Netfx | |||
503 | 503 | ||
504 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element); | 504 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element); |
505 | 505 | ||
506 | var bundleExtensionId = this.ParseHelper.CreateIdentifierValueFromPlatform("Wix4NetfxBundleExtension", this.Context.Platform, BurnPlatforms.X86 | BurnPlatforms.X64 | BurnPlatforms.ARM64); | 506 | var bootstrapperExtensionId = this.ParseHelper.CreateIdentifierValueFromPlatform("Wix4NetfxBootstrapperExtension", this.Context.Platform, BurnPlatforms.X86 | BurnPlatforms.X64 | BurnPlatforms.ARM64); |
507 | if (bundleExtensionId == null) | 507 | if (bootstrapperExtensionId == null) |
508 | { | 508 | { |
509 | this.Messaging.Write(ErrorMessages.UnsupportedPlatformForElement(sourceLineNumbers, this.Context.Platform.ToString(), element.Name.LocalName)); | 509 | this.Messaging.Write(ErrorMessages.UnsupportedPlatformForElement(sourceLineNumbers, this.Context.Platform.ToString(), element.Name.LocalName)); |
510 | } | 510 | } |
511 | 511 | ||
512 | if (!this.Messaging.EncounteredError) | 512 | if (!this.Messaging.EncounteredError) |
513 | { | 513 | { |
514 | this.ParseHelper.CreateWixSearchSymbol(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, bundleExtensionId); | 514 | this.ParseHelper.CreateWixSearchSymbol(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, bootstrapperExtensionId); |
515 | 515 | ||
516 | section.AddSymbol(new NetFxNetCoreSdkFeatureBandSearchSymbol(sourceLineNumbers, id) | 516 | section.AddSymbol(new NetFxNetCoreSdkFeatureBandSearchSymbol(sourceLineNumbers, id) |
517 | { | 517 | { |
diff --git a/src/ext/NetFx/wixext/Symbols/NetfxSymbolDefinitions.cs b/src/ext/NetFx/wixext/Symbols/NetfxSymbolDefinitions.cs index 6371a951..cc25a3eb 100644 --- a/src/ext/NetFx/wixext/Symbols/NetfxSymbolDefinitions.cs +++ b/src/ext/NetFx/wixext/Symbols/NetfxSymbolDefinitions.cs | |||
@@ -53,9 +53,9 @@ namespace WixToolset.Netfx | |||
53 | 53 | ||
54 | static NetfxSymbolDefinitions() | 54 | static NetfxSymbolDefinitions() |
55 | { | 55 | { |
56 | NetFxNetCoreSearch.AddTag(BurnConstants.BundleExtensionSearchSymbolDefinitionTag); | 56 | NetFxNetCoreSearch.AddTag(BurnConstants.BootstrapperExtensionSearchSymbolDefinitionTag); |
57 | NetFxNetCoreSdkSearch.AddTag(BurnConstants.BundleExtensionSearchSymbolDefinitionTag); | 57 | NetFxNetCoreSdkSearch.AddTag(BurnConstants.BootstrapperExtensionSearchSymbolDefinitionTag); |
58 | NetFxNetCoreSdkFeatureBandSearch.AddTag(BurnConstants.BundleExtensionSearchSymbolDefinitionTag); | 58 | NetFxNetCoreSdkFeatureBandSearch.AddTag(BurnConstants.BootstrapperExtensionSearchSymbolDefinitionTag); |
59 | } | 59 | } |
60 | } | 60 | } |
61 | } | 61 | } |
diff --git a/src/ext/NetFx/wixlib/NetfxBundleExtension_Platform.wxi b/src/ext/NetFx/wixlib/NetfxBootstrapperExtension_Platform.wxi index bc332efc..98fbd523 100644 --- a/src/ext/NetFx/wixlib/NetfxBundleExtension_Platform.wxi +++ b/src/ext/NetFx/wixlib/NetfxBootstrapperExtension_Platform.wxi | |||
@@ -5,11 +5,11 @@ | |||
5 | <?include ..\..\caDecor.wxi ?> | 5 | <?include ..\..\caDecor.wxi ?> |
6 | 6 | ||
7 | <Fragment> | 7 | <Fragment> |
8 | <BundleExtension Id="$(var.Prefix)NetfxBundleExtension$(var.Suffix)" SourceFile="!(bindpath.netfxbe.$(var.platform))netfxbe.dll" Name="$(var.Prefix)NetfxBundleExtension$(var.Suffix)\netfxbe.dll"> | 8 | <BootstrapperExtension Id="$(var.Prefix)NetfxBootstrapperExtension$(var.Suffix)" SourceFile="!(bindpath.netfxbe.$(var.platform))netfxbe.dll" Name="$(var.Prefix)NetfxBootstrapperExtension$(var.Suffix)\netfxbe.dll"> |
9 | <?foreach PLATFORM in x86;x64;arm64?> | 9 | <?foreach PLATFORM in x86;x64;arm64?> |
10 | <Payload SourceFile="!(bindpath.netcoresearch.$(var.PLATFORM))netcoresearch.exe" Name="$(var.Prefix)NetfxBundleExtension$(var.Suffix)\$(var.PLATFORM)\netcoresearch.exe" /> | 10 | <Payload SourceFile="!(bindpath.netcoresearch.$(var.PLATFORM))netcoresearch.exe" Name="$(var.Prefix)NetfxBootstrapperExtension$(var.Suffix)\$(var.PLATFORM)\netcoresearch.exe" /> |
11 | <Payload SourceFile="!(bindpath.netcoresearch.$(var.PLATFORM))hostfxr.dll" Name="$(var.Prefix)NetfxBundleExtension$(var.Suffix)\$(var.PLATFORM)\hostfxr.dll" /> | 11 | <Payload SourceFile="!(bindpath.netcoresearch.$(var.PLATFORM))hostfxr.dll" Name="$(var.Prefix)NetfxBootstrapperExtension$(var.Suffix)\$(var.PLATFORM)\hostfxr.dll" /> |
12 | <?endforeach?> | 12 | <?endforeach?> |
13 | </BundleExtension> | 13 | </BootstrapperExtension> |
14 | </Fragment> | 14 | </Fragment> |
15 | </Include> | 15 | </Include> |
diff --git a/src/ext/NetFx/wixlib/NetfxBundleExtension_arm64.wxs b/src/ext/NetFx/wixlib/NetfxBootstrapperExtension_arm64.wxs index 13757dd8..00b607a1 100644 --- a/src/ext/NetFx/wixlib/NetfxBundleExtension_arm64.wxs +++ b/src/ext/NetFx/wixlib/NetfxBootstrapperExtension_arm64.wxs | |||
@@ -3,5 +3,5 @@ | |||
3 | 3 | ||
4 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | 4 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> |
5 | <?define platform=arm64 ?> | 5 | <?define platform=arm64 ?> |
6 | <?include NetfxBundleExtension_Platform.wxi ?> | 6 | <?include NetfxBootstrapperExtension_Platform.wxi ?> |
7 | </Wix> | 7 | </Wix> |
diff --git a/src/ext/NetFx/wixlib/NetfxBundleExtension_x64.wxs b/src/ext/NetFx/wixlib/NetfxBootstrapperExtension_x64.wxs index f6c27a8e..a7412e60 100644 --- a/src/ext/NetFx/wixlib/NetfxBundleExtension_x64.wxs +++ b/src/ext/NetFx/wixlib/NetfxBootstrapperExtension_x64.wxs | |||
@@ -3,5 +3,5 @@ | |||
3 | 3 | ||
4 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | 4 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> |
5 | <?define platform=x64 ?> | 5 | <?define platform=x64 ?> |
6 | <?include NetfxBundleExtension_Platform.wxi ?> | 6 | <?include NetfxBootstrapperExtension_Platform.wxi ?> |
7 | </Wix> | 7 | </Wix> |
diff --git a/src/ext/NetFx/wixlib/NetfxBundleExtension_x86.wxs b/src/ext/NetFx/wixlib/NetfxBootstrapperExtension_x86.wxs index 76a8358f..406f6139 100644 --- a/src/ext/NetFx/wixlib/NetfxBundleExtension_x86.wxs +++ b/src/ext/NetFx/wixlib/NetfxBootstrapperExtension_x86.wxs | |||
@@ -3,5 +3,5 @@ | |||
3 | 3 | ||
4 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | 4 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> |
5 | <?define platform=x86 ?> | 5 | <?define platform=x86 ?> |
6 | <?include NetfxBundleExtension_Platform.wxi ?> | 6 | <?include NetfxBootstrapperExtension_Platform.wxi ?> |
7 | </Wix> | 7 | </Wix> |