From 5baa1dfe8ba2a3bd4728bca118fe1de225f848d4 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Thu, 7 Mar 2024 09:41:29 -0800 Subject: Rename "bundle extension" to "bootstrapper extension" for more consistency Also renames WixToolet.BextUtil nupkg to WixToolset.BootstrapperExtensionApi. --- src/ext/NetFx/be/NetfxBootstrapperExtension.cpp | 102 +++++++++++++++++++++ src/ext/NetFx/be/NetfxBootstrapperExtension.h | 17 ++++ src/ext/NetFx/be/NetfxBundleExtension.cpp | 102 --------------------- src/ext/NetFx/be/NetfxBundleExtension.h | 17 ---- src/ext/NetFx/be/detectnetcore.cpp | 2 +- src/ext/NetFx/be/detectnetcore.h | 2 +- src/ext/NetFx/be/detectnetcoresdk.cpp | 2 +- src/ext/NetFx/be/detectnetcoresdk.h | 2 +- src/ext/NetFx/be/detectnetcoresdkfeatureband.cpp | 2 +- src/ext/NetFx/be/detectnetcoresdkfeatureband.h | 2 +- src/ext/NetFx/be/netfxbe.cpp | 24 ++--- src/ext/NetFx/be/netfxbe.def | 4 +- src/ext/NetFx/be/netfxbe.vcxproj | 8 +- src/ext/NetFx/be/netfxsearch.cpp | 6 +- src/ext/NetFx/be/netfxsearch.h | 4 +- src/ext/NetFx/be/precomp.h | 4 +- src/ext/NetFx/wixext/NetFxCompiler.cs | 18 ++-- .../NetFx/wixext/Symbols/NetfxSymbolDefinitions.cs | 6 +- .../wixlib/NetfxBootstrapperExtension_Platform.wxi | 15 +++ .../wixlib/NetfxBootstrapperExtension_arm64.wxs | 7 ++ .../wixlib/NetfxBootstrapperExtension_x64.wxs | 7 ++ .../wixlib/NetfxBootstrapperExtension_x86.wxs | 7 ++ .../NetFx/wixlib/NetfxBundleExtension_Platform.wxi | 15 --- .../NetFx/wixlib/NetfxBundleExtension_arm64.wxs | 7 -- src/ext/NetFx/wixlib/NetfxBundleExtension_x64.wxs | 7 -- src/ext/NetFx/wixlib/NetfxBundleExtension_x86.wxs | 7 -- 26 files changed, 198 insertions(+), 198 deletions(-) create mode 100644 src/ext/NetFx/be/NetfxBootstrapperExtension.cpp create mode 100644 src/ext/NetFx/be/NetfxBootstrapperExtension.h delete mode 100644 src/ext/NetFx/be/NetfxBundleExtension.cpp delete mode 100644 src/ext/NetFx/be/NetfxBundleExtension.h create mode 100644 src/ext/NetFx/wixlib/NetfxBootstrapperExtension_Platform.wxi create mode 100644 src/ext/NetFx/wixlib/NetfxBootstrapperExtension_arm64.wxs create mode 100644 src/ext/NetFx/wixlib/NetfxBootstrapperExtension_x64.wxs create mode 100644 src/ext/NetFx/wixlib/NetfxBootstrapperExtension_x86.wxs delete mode 100644 src/ext/NetFx/wixlib/NetfxBundleExtension_Platform.wxi delete mode 100644 src/ext/NetFx/wixlib/NetfxBundleExtension_arm64.wxs delete mode 100644 src/ext/NetFx/wixlib/NetfxBundleExtension_x64.wxs delete mode 100644 src/ext/NetFx/wixlib/NetfxBundleExtension_x86.wxs (limited to 'src/ext/NetFx') diff --git a/src/ext/NetFx/be/NetfxBootstrapperExtension.cpp b/src/ext/NetFx/be/NetfxBootstrapperExtension.cpp new file mode 100644 index 00000000..ab30e378 --- /dev/null +++ b/src/ext/NetFx/be/NetfxBootstrapperExtension.cpp @@ -0,0 +1,102 @@ +// 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. + +#include "precomp.h" +#include "BextBaseBootstrapperExtension.h" + +class CWixNetfxBootstrapperExtension : public CBextBaseBootstrapperExtension +{ +public: // IBootstrapperExtension + virtual STDMETHODIMP Search( + __in LPCWSTR wzId, + __in LPCWSTR wzVariable + ) + { + HRESULT hr = S_OK; + + hr = NetfxSearchExecute(&m_searches, wzId, wzVariable, m_pEngine, m_sczBaseDirectory); + + return hr; + } + +public: //CBextBaseBootstrapperExtension + virtual STDMETHODIMP Initialize( + __in const BOOTSTRAPPER_EXTENSION_CREATE_ARGS* pCreateArgs + ) + { + HRESULT hr = S_OK; + LPWSTR sczModulePath = NULL; + IXMLDOMDocument* pixdManifest = NULL; + IXMLDOMNode* pixnBootstrapperExtension = NULL; + + hr = __super::Initialize(pCreateArgs); + BextExitOnFailure(hr, "CBextBaseBootstrapperExtension initialization failed."); + + hr = PathForCurrentProcess(&sczModulePath, m_hInstance); + BextExitOnFailure(hr, "Failed to get bundle extension path."); + + hr = PathGetDirectory(sczModulePath, &m_sczBaseDirectory); + BextExitOnFailure(hr, "Failed to get bundle extension base directory."); + + hr = XmlLoadDocumentFromFile(m_sczBootstrapperExtensionDataPath, &pixdManifest); + BextExitOnFailure(hr, "Failed to load bundle extension manifest from path: %ls", m_sczBootstrapperExtensionDataPath); + + hr = BextGetBootstrapperExtensionDataNode(pixdManifest, NETFX_BOOTSTRAPPER_EXTENSION_ID, &pixnBootstrapperExtension); + BextExitOnFailure(hr, "Failed to get BootstrapperExtension '%ls'", NETFX_BOOTSTRAPPER_EXTENSION_ID); + + hr = NetfxSearchParseFromXml(&m_searches, pixnBootstrapperExtension); + BextExitOnFailure(hr, "Failed to parse searches from bundle extension manifest."); + + LExit: + ReleaseObject(pixnBootstrapperExtension); + ReleaseObject(pixdManifest); + ReleaseStr(sczModulePath); + + return hr; + } + +public: + CWixNetfxBootstrapperExtension( + __in HINSTANCE hInstance, + __in IBootstrapperExtensionEngine* pEngine + ) : CBextBaseBootstrapperExtension(pEngine) + { + m_searches = { }; + m_hInstance = hInstance; + m_sczBaseDirectory = NULL; + } + + ~CWixNetfxBootstrapperExtension() + { + NetfxSearchUninitialize(&m_searches); + ReleaseStr(m_sczBaseDirectory); + } + +private: + NETFX_SEARCHES m_searches; + HINSTANCE m_hInstance; + LPWSTR m_sczBaseDirectory; +}; + +HRESULT NetfxBootstrapperExtensionCreate( + __in HINSTANCE hInstance, + __in IBootstrapperExtensionEngine* pEngine, + __in const BOOTSTRAPPER_EXTENSION_CREATE_ARGS* pArgs, + __out IBootstrapperExtension** ppBootstrapperExtension + ) +{ + HRESULT hr = S_OK; + CWixNetfxBootstrapperExtension* pExtension = NULL; + + pExtension = new CWixNetfxBootstrapperExtension(hInstance, pEngine); + BextExitOnNull(pExtension, hr, E_OUTOFMEMORY, "Failed to create new CWixNetfxBootstrapperExtension."); + + hr = pExtension->Initialize(pArgs); + BextExitOnFailure(hr, "CWixNetfxBootstrapperExtension initialization failed."); + + *ppBootstrapperExtension = pExtension; + pExtension = NULL; + +LExit: + ReleaseObject(pExtension); + return hr; +} 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 @@ +#pragma once +// 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. + + +// constants + +#define NETFX_BOOTSTRAPPER_EXTENSION_ID BOOTSTRAPPER_EXTENSION_DECORATION(L"NetfxBootstrapperExtension") + + +// function declarations + +HRESULT NetfxBootstrapperExtensionCreate( + __in HINSTANCE hInstance, + __in IBootstrapperExtensionEngine* pEngine, + __in const BOOTSTRAPPER_EXTENSION_CREATE_ARGS* pArgs, + __out IBootstrapperExtension** ppBootstrapperExtension + ); diff --git a/src/ext/NetFx/be/NetfxBundleExtension.cpp b/src/ext/NetFx/be/NetfxBundleExtension.cpp deleted file mode 100644 index 838a97c1..00000000 --- a/src/ext/NetFx/be/NetfxBundleExtension.cpp +++ /dev/null @@ -1,102 +0,0 @@ -// 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. - -#include "precomp.h" -#include "BextBaseBundleExtension.h" - -class CWixNetfxBundleExtension : public CBextBaseBundleExtension -{ -public: // IBundleExtension - virtual STDMETHODIMP Search( - __in LPCWSTR wzId, - __in LPCWSTR wzVariable - ) - { - HRESULT hr = S_OK; - - hr = NetfxSearchExecute(&m_searches, wzId, wzVariable, m_pEngine, m_sczBaseDirectory); - - return hr; - } - -public: //CBextBaseBundleExtension - virtual STDMETHODIMP Initialize( - __in const BUNDLE_EXTENSION_CREATE_ARGS* pCreateArgs - ) - { - HRESULT hr = S_OK; - LPWSTR sczModulePath = NULL; - IXMLDOMDocument* pixdManifest = NULL; - IXMLDOMNode* pixnBundleExtension = NULL; - - hr = __super::Initialize(pCreateArgs); - BextExitOnFailure(hr, "CBextBaseBundleExtension initialization failed."); - - hr = PathForCurrentProcess(&sczModulePath, m_hInstance); - BextExitOnFailure(hr, "Failed to get bundle extension path."); - - hr = PathGetDirectory(sczModulePath, &m_sczBaseDirectory); - BextExitOnFailure(hr, "Failed to get bundle extension base directory."); - - hr = XmlLoadDocumentFromFile(m_sczBundleExtensionDataPath, &pixdManifest); - BextExitOnFailure(hr, "Failed to load bundle extension manifest from path: %ls", m_sczBundleExtensionDataPath); - - hr = BextGetBundleExtensionDataNode(pixdManifest, NETFX_BUNDLE_EXTENSION_ID, &pixnBundleExtension); - BextExitOnFailure(hr, "Failed to get BundleExtension '%ls'", NETFX_BUNDLE_EXTENSION_ID); - - hr = NetfxSearchParseFromXml(&m_searches, pixnBundleExtension); - BextExitOnFailure(hr, "Failed to parse searches from bundle extension manifest."); - - LExit: - ReleaseObject(pixnBundleExtension); - ReleaseObject(pixdManifest); - ReleaseStr(sczModulePath); - - return hr; - } - -public: - CWixNetfxBundleExtension( - __in HINSTANCE hInstance, - __in IBundleExtensionEngine* pEngine - ) : CBextBaseBundleExtension(pEngine) - { - m_searches = { }; - m_hInstance = hInstance; - m_sczBaseDirectory = NULL; - } - - ~CWixNetfxBundleExtension() - { - NetfxSearchUninitialize(&m_searches); - ReleaseStr(m_sczBaseDirectory); - } - -private: - NETFX_SEARCHES m_searches; - HINSTANCE m_hInstance; - LPWSTR m_sczBaseDirectory; -}; - -HRESULT NetfxBundleExtensionCreate( - __in HINSTANCE hInstance, - __in IBundleExtensionEngine* pEngine, - __in const BUNDLE_EXTENSION_CREATE_ARGS* pArgs, - __out IBundleExtension** ppBundleExtension - ) -{ - HRESULT hr = S_OK; - CWixNetfxBundleExtension* pExtension = NULL; - - pExtension = new CWixNetfxBundleExtension(hInstance, pEngine); - BextExitOnNull(pExtension, hr, E_OUTOFMEMORY, "Failed to create new CWixNetfxBundleExtension."); - - hr = pExtension->Initialize(pArgs); - BextExitOnFailure(hr, "CWixNetfxBundleExtension initialization failed."); - - *ppBundleExtension = pExtension; - pExtension = NULL; - -LExit: - ReleaseObject(pExtension); - return hr; -} 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 @@ -#pragma once -// 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. - - -// constants - -#define NETFX_BUNDLE_EXTENSION_ID BUNDLE_EXTENSION_DECORATION(L"NetfxBundleExtension") - - -// function declarations - -HRESULT NetfxBundleExtensionCreate( - __in HINSTANCE hInstance, - __in IBundleExtensionEngine* pEngine, - __in const BUNDLE_EXTENSION_CREATE_ARGS* pArgs, - __out IBundleExtension** ppBundleExtension - ); 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: HRESULT NetfxPerformDetectNetCore( __in LPCWSTR wzVariable, __in NETFX_SEARCH* pSearch, - __in IBundleExtensionEngine* pEngine, + __in IBootstrapperExtensionEngine* pEngine, __in LPCWSTR wzBaseDirectory ) { 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 @@ HRESULT NetfxPerformDetectNetCore( __in LPCWSTR wzVariable, __in NETFX_SEARCH* pSearch, - __in IBundleExtensionEngine* pEngine, + __in IBootstrapperExtensionEngine* pEngine, __in LPCWSTR wzBaseDirectory ); 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: HRESULT NetfxPerformDetectNetCoreSdk( __in LPCWSTR wzVariable, __in NETFX_SEARCH* pSearch, - __in IBundleExtensionEngine* pEngine, + __in IBootstrapperExtensionEngine* pEngine, __in LPCWSTR wzBaseDirectory ) { 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 @@ HRESULT NetfxPerformDetectNetCoreSdk( __in LPCWSTR wzVariable, __in NETFX_SEARCH* pSearch, - __in IBundleExtensionEngine* pEngine, + __in IBootstrapperExtensionEngine* pEngine, __in LPCWSTR wzBaseDirectory ); 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: HRESULT NetfxPerformDetectNetCoreSdkFeatureBand( __in LPCWSTR wzVariable, __in NETFX_SEARCH* pSearch, - __in IBundleExtensionEngine* pEngine, + __in IBootstrapperExtensionEngine* pEngine, __in LPCWSTR wzBaseDirectory ) { 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 @@ HRESULT NetfxPerformDetectNetCoreSdkFeatureBand( __in LPCWSTR wzVariable, __in NETFX_SEARCH* pSearch, - __in IBundleExtensionEngine* pEngine, + __in IBootstrapperExtensionEngine* pEngine, __in LPCWSTR wzBaseDirectory ); 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 @@ // 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. #include "precomp.h" -#include "BextBaseBundleExtensionProc.h" +#include "BextBaseBootstrapperExtensionProc.h" static HINSTANCE vhInstance = NULL; -static IBundleExtension* vpBundleExtension = NULL; +static IBootstrapperExtension* vpBootstrapperExtension = NULL; // function definitions @@ -28,13 +28,13 @@ extern "C" BOOL WINAPI DllMain( return TRUE; } -extern "C" HRESULT WINAPI BundleExtensionCreate( - __in const BUNDLE_EXTENSION_CREATE_ARGS* pArgs, - __inout BUNDLE_EXTENSION_CREATE_RESULTS* pResults +extern "C" HRESULT WINAPI BootstrapperExtensionCreate( + __in const BOOTSTRAPPER_EXTENSION_CREATE_ARGS* pArgs, + __inout BOOTSTRAPPER_EXTENSION_CREATE_RESULTS* pResults ) { HRESULT hr = S_OK; - IBundleExtensionEngine* pEngine = NULL; + IBootstrapperExtensionEngine* pEngine = NULL; hr = XmlInitialize(); ExitOnFailure(hr, "Failed to initialize XML."); @@ -42,11 +42,11 @@ extern "C" HRESULT WINAPI BundleExtensionCreate( hr = BextInitializeFromCreateArgs(pArgs, &pEngine); ExitOnFailure(hr, "Failed to initialize bext"); - hr = NetfxBundleExtensionCreate(vhInstance, pEngine, pArgs, &vpBundleExtension); - BextExitOnFailure(hr, "Failed to create WixNetfxBundleExtension"); + hr = NetfxBootstrapperExtensionCreate(vhInstance, pEngine, pArgs, &vpBootstrapperExtension); + BextExitOnFailure(hr, "Failed to create WixNetfxBootstrapperExtension"); - pResults->pfnBundleExtensionProc = BextBaseBundleExtensionProc; - pResults->pvBundleExtensionProcContext = vpBundleExtension; + pResults->pfnBootstrapperExtensionProc = BextBaseBootstrapperExtensionProc; + pResults->pvBootstrapperExtensionProcContext = vpBootstrapperExtension; LExit: ReleaseObject(pEngine); @@ -54,9 +54,9 @@ LExit: return hr; } -extern "C" void WINAPI BundleExtensionDestroy() +extern "C" void WINAPI BootstrapperExtensionDestroy() { BextUninitialize(); - ReleaseNullObject(vpBundleExtension); + ReleaseNullObject(vpBootstrapperExtension); XmlUninitialize(); } 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 @@ LIBRARY "netfxbe" EXPORTS - BundleExtensionCreate - BundleExtensionDestroy + BootstrapperExtensionCreate + 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 @@ netfxbe Unicode netfxbe.def - WiX Toolset Netfx BundleExtension + WiX Toolset Netfx BootstrapperExtension @@ -50,7 +50,7 @@ - + Create @@ -62,7 +62,7 @@ - + @@ -73,7 +73,7 @@ - + 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 @@ STDMETHODIMP NetfxSearchParseFromXml( __in NETFX_SEARCHES* pSearches, - __in IXMLDOMNode* pixnBundleExtension + __in IXMLDOMNode* pixnBootstrapperExtension ) { HRESULT hr = S_OK; @@ -15,7 +15,7 @@ STDMETHODIMP NetfxSearchParseFromXml( BSTR bstrNodeName = NULL; // Select Netfx search nodes. - hr = XmlSelectNodes(pixnBundleExtension, L"NetFxNetCoreSearch|NetFxNetCoreSdkSearch|NetFxNetCoreSdkFeatureBandSearch", &pixnNodes); + hr = XmlSelectNodes(pixnBootstrapperExtension, L"NetFxNetCoreSearch|NetFxNetCoreSdkSearch|NetFxNetCoreSdkFeatureBandSearch", &pixnNodes); BextExitOnFailure(hr, "Failed to select Netfx search nodes."); // Get Netfx search node count. @@ -135,7 +135,7 @@ STDMETHODIMP NetfxSearchExecute( __in NETFX_SEARCHES* pSearches, __in LPCWSTR wzSearchId, __in LPCWSTR wzVariable, - __in IBundleExtensionEngine* pEngine, + __in IBootstrapperExtensionEngine* pEngine, __in LPCWSTR wzBaseDirectory ) { 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 STDMETHODIMP NetfxSearchParseFromXml( __in NETFX_SEARCHES* pSearches, - __in IXMLDOMNode* pixnBundleExtension + __in IXMLDOMNode* pixnBootstrapperExtension ); void NetfxSearchUninitialize( @@ -79,7 +79,7 @@ STDMETHODIMP NetfxSearchExecute( __in NETFX_SEARCHES* pSearches, __in LPCWSTR wzSearchId, __in LPCWSTR wzVariable, - __in IBundleExtensionEngine* pEngine, + __in IBootstrapperExtensionEngine* pEngine, __in LPCWSTR wzBaseDirectory ); 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 @@ #include #include -#include +#include #include "..\..\beDecor.h" #include "netfxsearch.h" #include "detectnetcore.h" #include "detectnetcoresdk.h" #include "detectnetcoresdkfeatureband.h" -#include "NetfxBundleExtension.h" +#include "NetfxBootstrapperExtension.h" #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 this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element); - var bundleExtensionId = this.ParseHelper.CreateIdentifierValueFromPlatform("Wix4NetfxBundleExtension", this.Context.Platform, BurnPlatforms.X86 | BurnPlatforms.X64 | BurnPlatforms.ARM64); - if (bundleExtensionId == null) + var bootstrapperExtensionId = this.ParseHelper.CreateIdentifierValueFromPlatform("Wix4NetfxBootstrapperExtension", this.Context.Platform, BurnPlatforms.X86 | BurnPlatforms.X64 | BurnPlatforms.ARM64); + if (bootstrapperExtensionId == null) { this.Messaging.Write(ErrorMessages.UnsupportedPlatformForElement(sourceLineNumbers, this.Context.Platform.ToString(), element.Name.LocalName)); } if (!this.Messaging.EncounteredError) { - this.ParseHelper.CreateWixSearchSymbol(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, bundleExtensionId); + this.ParseHelper.CreateWixSearchSymbol(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, bootstrapperExtensionId); section.AddSymbol(new NetFxNetCoreSearchSymbol(sourceLineNumbers, id) { @@ -354,15 +354,15 @@ namespace WixToolset.Netfx this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element); - var bundleExtensionId = this.ParseHelper.CreateIdentifierValueFromPlatform("Wix4NetfxBundleExtension", this.Context.Platform, BurnPlatforms.X86 | BurnPlatforms.X64 | BurnPlatforms.ARM64); - if (bundleExtensionId == null) + var bootstrapperExtensionId = this.ParseHelper.CreateIdentifierValueFromPlatform("Wix4NetfxBootstrapperExtension", this.Context.Platform, BurnPlatforms.X86 | BurnPlatforms.X64 | BurnPlatforms.ARM64); + if (bootstrapperExtensionId == null) { this.Messaging.Write(ErrorMessages.UnsupportedPlatformForElement(sourceLineNumbers, this.Context.Platform.ToString(), element.Name.LocalName)); } if (!this.Messaging.EncounteredError) { - this.ParseHelper.CreateWixSearchSymbol(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, bundleExtensionId); + this.ParseHelper.CreateWixSearchSymbol(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, bootstrapperExtensionId); section.AddSymbol(new NetFxNetCoreSdkSearchSymbol(sourceLineNumbers, id) { @@ -503,15 +503,15 @@ namespace WixToolset.Netfx this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element); - var bundleExtensionId = this.ParseHelper.CreateIdentifierValueFromPlatform("Wix4NetfxBundleExtension", this.Context.Platform, BurnPlatforms.X86 | BurnPlatforms.X64 | BurnPlatforms.ARM64); - if (bundleExtensionId == null) + var bootstrapperExtensionId = this.ParseHelper.CreateIdentifierValueFromPlatform("Wix4NetfxBootstrapperExtension", this.Context.Platform, BurnPlatforms.X86 | BurnPlatforms.X64 | BurnPlatforms.ARM64); + if (bootstrapperExtensionId == null) { this.Messaging.Write(ErrorMessages.UnsupportedPlatformForElement(sourceLineNumbers, this.Context.Platform.ToString(), element.Name.LocalName)); } if (!this.Messaging.EncounteredError) { - this.ParseHelper.CreateWixSearchSymbol(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, bundleExtensionId); + this.ParseHelper.CreateWixSearchSymbol(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, bootstrapperExtensionId); section.AddSymbol(new NetFxNetCoreSdkFeatureBandSearchSymbol(sourceLineNumbers, id) { 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 static NetfxSymbolDefinitions() { - NetFxNetCoreSearch.AddTag(BurnConstants.BundleExtensionSearchSymbolDefinitionTag); - NetFxNetCoreSdkSearch.AddTag(BurnConstants.BundleExtensionSearchSymbolDefinitionTag); - NetFxNetCoreSdkFeatureBandSearch.AddTag(BurnConstants.BundleExtensionSearchSymbolDefinitionTag); + NetFxNetCoreSearch.AddTag(BurnConstants.BootstrapperExtensionSearchSymbolDefinitionTag); + NetFxNetCoreSdkSearch.AddTag(BurnConstants.BootstrapperExtensionSearchSymbolDefinitionTag); + NetFxNetCoreSdkFeatureBandSearch.AddTag(BurnConstants.BootstrapperExtensionSearchSymbolDefinitionTag); } } } diff --git a/src/ext/NetFx/wixlib/NetfxBootstrapperExtension_Platform.wxi b/src/ext/NetFx/wixlib/NetfxBootstrapperExtension_Platform.wxi new file mode 100644 index 00000000..98fbd523 --- /dev/null +++ b/src/ext/NetFx/wixlib/NetfxBootstrapperExtension_Platform.wxi @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/src/ext/NetFx/wixlib/NetfxBootstrapperExtension_arm64.wxs b/src/ext/NetFx/wixlib/NetfxBootstrapperExtension_arm64.wxs new file mode 100644 index 00000000..00b607a1 --- /dev/null +++ b/src/ext/NetFx/wixlib/NetfxBootstrapperExtension_arm64.wxs @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/ext/NetFx/wixlib/NetfxBootstrapperExtension_x64.wxs b/src/ext/NetFx/wixlib/NetfxBootstrapperExtension_x64.wxs new file mode 100644 index 00000000..a7412e60 --- /dev/null +++ b/src/ext/NetFx/wixlib/NetfxBootstrapperExtension_x64.wxs @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/ext/NetFx/wixlib/NetfxBootstrapperExtension_x86.wxs b/src/ext/NetFx/wixlib/NetfxBootstrapperExtension_x86.wxs new file mode 100644 index 00000000..406f6139 --- /dev/null +++ b/src/ext/NetFx/wixlib/NetfxBootstrapperExtension_x86.wxs @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/ext/NetFx/wixlib/NetfxBundleExtension_Platform.wxi b/src/ext/NetFx/wixlib/NetfxBundleExtension_Platform.wxi deleted file mode 100644 index bc332efc..00000000 --- a/src/ext/NetFx/wixlib/NetfxBundleExtension_Platform.wxi +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/src/ext/NetFx/wixlib/NetfxBundleExtension_arm64.wxs b/src/ext/NetFx/wixlib/NetfxBundleExtension_arm64.wxs deleted file mode 100644 index 13757dd8..00000000 --- a/src/ext/NetFx/wixlib/NetfxBundleExtension_arm64.wxs +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/src/ext/NetFx/wixlib/NetfxBundleExtension_x64.wxs b/src/ext/NetFx/wixlib/NetfxBundleExtension_x64.wxs deleted file mode 100644 index f6c27a8e..00000000 --- a/src/ext/NetFx/wixlib/NetfxBundleExtension_x64.wxs +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/src/ext/NetFx/wixlib/NetfxBundleExtension_x86.wxs b/src/ext/NetFx/wixlib/NetfxBundleExtension_x86.wxs deleted file mode 100644 index 76a8358f..00000000 --- a/src/ext/NetFx/wixlib/NetfxBundleExtension_x86.wxs +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - -- cgit v1.2.3-55-g6feb