diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2021-03-02 17:26:47 -0600 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2021-03-02 17:37:00 -0600 |
commit | 8ec8f5b0091fce08be88acee1f49dbf2edf040a9 (patch) | |
tree | 323f3a08079f0d2136414583babd6b331be71685 /src/dnchost | |
parent | 2b0b668cf38f06bf1a577f218f217e8edf6494c1 (diff) | |
download | wix-8ec8f5b0091fce08be88acee1f49dbf2edf040a9.tar.gz wix-8ec8f5b0091fce08be88acee1f49dbf2edf040a9.tar.bz2 wix-8ec8f5b0091fce08be88acee1f49dbf2edf040a9.zip |
Update dependencies and integrate changes.
Diffstat (limited to 'src/dnchost')
-rw-r--r-- | src/dnchost/dnchost.cpp | 23 | ||||
-rw-r--r-- | src/dnchost/dnchost.vcxproj | 12 | ||||
-rw-r--r-- | src/dnchost/packages.config | 6 |
3 files changed, 11 insertions, 30 deletions
diff --git a/src/dnchost/dnchost.cpp b/src/dnchost/dnchost.cpp index 503537c0..8ca326fc 100644 --- a/src/dnchost/dnchost.cpp +++ b/src/dnchost/dnchost.cpp | |||
@@ -169,9 +169,6 @@ static HRESULT LoadDncConfiguration( | |||
169 | HRESULT hr = S_OK; | 169 | HRESULT hr = S_OK; |
170 | IXMLDOMDocument* pixdManifest = NULL; | 170 | IXMLDOMDocument* pixdManifest = NULL; |
171 | IXMLDOMNode* pixnHost = NULL; | 171 | IXMLDOMNode* pixnHost = NULL; |
172 | IXMLDOMNode* pixnPayload = NULL; | ||
173 | LPWSTR sczPayloadId = NULL; | ||
174 | LPWSTR sczPayloadXPath = NULL; | ||
175 | LPWSTR sczPayloadName = NULL; | 172 | LPWSTR sczPayloadName = NULL; |
176 | DWORD dwBool = 0; | 173 | DWORD dwBool = 0; |
177 | 174 | ||
@@ -187,21 +184,8 @@ static HRESULT LoadDncConfiguration( | |||
187 | BalExitOnRootFailure(hr, "Failed to find WixBalBAFactoryAssembly element in bootstrapper application config."); | 184 | BalExitOnRootFailure(hr, "Failed to find WixBalBAFactoryAssembly element in bootstrapper application config."); |
188 | } | 185 | } |
189 | 186 | ||
190 | hr = XmlGetAttributeEx(pixnHost, L"PayloadId", &sczPayloadId); | 187 | hr = XmlGetAttributeEx(pixnHost, L"FilePath", &sczPayloadName); |
191 | BalExitOnFailure(hr, "Failed to get WixBalBAFactoryAssembly/@PayloadId."); | 188 | BalExitOnFailure(hr, "Failed to get WixBalBAFactoryAssembly/@FilePath."); |
192 | |||
193 | hr = StrAllocFormatted(&sczPayloadXPath, L"/BootstrapperApplicationData/WixPayloadProperties[@Payload='%ls']", sczPayloadId); | ||
194 | BalExitOnFailure(hr, "Failed to format BAFactoryAssembly payload XPath."); | ||
195 | |||
196 | hr = XmlSelectSingleNode(pixdManifest, sczPayloadXPath, &pixnPayload); | ||
197 | if (S_FALSE == hr) | ||
198 | { | ||
199 | hr = E_NOTFOUND; | ||
200 | } | ||
201 | BalExitOnFailure(hr, "Failed to find WixPayloadProperties node for BAFactoryAssembly PayloadId: %ls.", sczPayloadId); | ||
202 | |||
203 | hr = XmlGetAttributeEx(pixnPayload, L"Name", &sczPayloadName); | ||
204 | BalExitOnFailure(hr, "Failed to get BAFactoryAssembly payload Name."); | ||
205 | 189 | ||
206 | hr = PathConcat(pArgs->pCommand->wzBootstrapperWorkingFolder, sczPayloadName, &pState->sczBaFactoryAssemblyPath); | 190 | hr = PathConcat(pArgs->pCommand->wzBootstrapperWorkingFolder, sczPayloadName, &pState->sczBaFactoryAssemblyPath); |
207 | BalExitOnFailure(hr, "Failed to create BaFactoryAssemblyPath."); | 191 | BalExitOnFailure(hr, "Failed to create BaFactoryAssemblyPath."); |
@@ -250,9 +234,6 @@ static HRESULT LoadDncConfiguration( | |||
250 | 234 | ||
251 | LExit: | 235 | LExit: |
252 | ReleaseStr(sczPayloadName); | 236 | ReleaseStr(sczPayloadName); |
253 | ReleaseObject(pixnPayload); | ||
254 | ReleaseStr(sczPayloadXPath); | ||
255 | ReleaseStr(sczPayloadId); | ||
256 | ReleaseObject(pixnHost); | 237 | ReleaseObject(pixnHost); |
257 | ReleaseObject(pixdManifest); | 238 | ReleaseObject(pixdManifest); |
258 | 239 | ||
diff --git a/src/dnchost/dnchost.vcxproj b/src/dnchost/dnchost.vcxproj index 9c04849c..c5b6b416 100644 --- a/src/dnchost/dnchost.vcxproj +++ b/src/dnchost/dnchost.vcxproj | |||
@@ -4,9 +4,9 @@ | |||
4 | <Import Project="..\..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.props" Condition="Exists('..\..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.props')" /> | 4 | <Import Project="..\..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.props" Condition="Exists('..\..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.props')" /> |
5 | <Import Project="..\..\packages\Microsoft.SourceLink.Common.1.0.0\build\Microsoft.SourceLink.Common.props" Condition="Exists('..\..\packages\Microsoft.SourceLink.Common.1.0.0\build\Microsoft.SourceLink.Common.props')" /> | 5 | <Import Project="..\..\packages\Microsoft.SourceLink.Common.1.0.0\build\Microsoft.SourceLink.Common.props" Condition="Exists('..\..\packages\Microsoft.SourceLink.Common.1.0.0\build\Microsoft.SourceLink.Common.props')" /> |
6 | <Import Project="..\..\packages\Microsoft.Build.Tasks.Git.1.0.0\build\Microsoft.Build.Tasks.Git.props" Condition="Exists('..\..\packages\Microsoft.Build.Tasks.Git.1.0.0\build\Microsoft.Build.Tasks.Git.props')" /> | 6 | <Import Project="..\..\packages\Microsoft.Build.Tasks.Git.1.0.0\build\Microsoft.Build.Tasks.Git.props" Condition="Exists('..\..\packages\Microsoft.Build.Tasks.Git.1.0.0\build\Microsoft.Build.Tasks.Git.props')" /> |
7 | <Import Project="..\..\packages\WixToolset.BalUtil.4.0.49\build\WixToolset.BalUtil.props" Condition="Exists('..\..\packages\WixToolset.BalUtil.4.0.49\build\WixToolset.BalUtil.props')" /> | 7 | <Import Project="..\..\packages\WixToolset.BalUtil.4.0.50\build\WixToolset.BalUtil.props" Condition="Exists('..\..\packages\WixToolset.BalUtil.4.0.50\build\WixToolset.BalUtil.props')" /> |
8 | <Import Project="..\..\packages\WixToolset.BootstrapperCore.Native.4.0.89\build\WixToolset.BootstrapperCore.Native.props" Condition="Exists('..\..\packages\WixToolset.BootstrapperCore.Native.4.0.89\build\WixToolset.BootstrapperCore.Native.props')" /> | 8 | <Import Project="..\..\packages\WixToolset.BootstrapperCore.Native.4.0.94\build\WixToolset.BootstrapperCore.Native.props" Condition="Exists('..\..\packages\WixToolset.BootstrapperCore.Native.4.0.94\build\WixToolset.BootstrapperCore.Native.props')" /> |
9 | <Import Project="..\..\packages\WixToolset.DUtil.4.0.62\build\WixToolset.DUtil.props" Condition="Exists('..\..\packages\WixToolset.DUtil.4.0.62\build\WixToolset.DUtil.props')" /> | 9 | <Import Project="..\..\packages\WixToolset.DUtil.4.0.64\build\WixToolset.DUtil.props" Condition="Exists('..\..\packages\WixToolset.DUtil.4.0.64\build\WixToolset.DUtil.props')" /> |
10 | <ItemGroup Label="ProjectConfigurations"> | 10 | <ItemGroup Label="ProjectConfigurations"> |
11 | <ProjectConfiguration Include="Debug|ARM64"> | 11 | <ProjectConfiguration Include="Debug|ARM64"> |
12 | <Configuration>Debug</Configuration> | 12 | <Configuration>Debug</Configuration> |
@@ -99,8 +99,8 @@ | |||
99 | <Error Condition="!Exists('..\..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.props'))" /> | 99 | <Error Condition="!Exists('..\..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.props'))" /> |
100 | <Error Condition="!Exists('..\..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.targets'))" /> | 100 | <Error Condition="!Exists('..\..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.targets'))" /> |
101 | <Error Condition="!Exists('..\..\packages\Nerdbank.GitVersioning.3.3.37\build\Nerdbank.GitVersioning.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Nerdbank.GitVersioning.3.3.37\build\Nerdbank.GitVersioning.targets'))" /> | 101 | <Error Condition="!Exists('..\..\packages\Nerdbank.GitVersioning.3.3.37\build\Nerdbank.GitVersioning.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Nerdbank.GitVersioning.3.3.37\build\Nerdbank.GitVersioning.targets'))" /> |
102 | <Error Condition="!Exists('..\..\packages\WixToolset.BalUtil.4.0.49\build\WixToolset.BalUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.BalUtil.4.0.49\build\WixToolset.BalUtil.props'))" /> | 102 | <Error Condition="!Exists('..\..\packages\WixToolset.BalUtil.4.0.50\build\WixToolset.BalUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.BalUtil.4.0.50\build\WixToolset.BalUtil.props'))" /> |
103 | <Error Condition="!Exists('..\..\packages\WixToolset.BootstrapperCore.Native.4.0.89\build\WixToolset.BootstrapperCore.Native.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.BootstrapperCore.Native.4.0.89\build\WixToolset.BootstrapperCore.Native.props'))" /> | 103 | <Error Condition="!Exists('..\..\packages\WixToolset.BootstrapperCore.Native.4.0.94\build\WixToolset.BootstrapperCore.Native.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.BootstrapperCore.Native.4.0.94\build\WixToolset.BootstrapperCore.Native.props'))" /> |
104 | <Error Condition="!Exists('..\..\packages\WixToolset.DUtil.4.0.62\build\WixToolset.DUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.DUtil.4.0.62\build\WixToolset.DUtil.props'))" /> | 104 | <Error Condition="!Exists('..\..\packages\WixToolset.DUtil.4.0.64\build\WixToolset.DUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.DUtil.4.0.64\build\WixToolset.DUtil.props'))" /> |
105 | </Target> | 105 | </Target> |
106 | </Project> \ No newline at end of file | 106 | </Project> \ No newline at end of file |
diff --git a/src/dnchost/packages.config b/src/dnchost/packages.config index f60d813a..61787995 100644 --- a/src/dnchost/packages.config +++ b/src/dnchost/packages.config | |||
@@ -7,7 +7,7 @@ | |||
7 | <package id="runtime.win-arm64.Microsoft.NETCore.DotNetAppHost" version="5.0.0" targetFramework="native" /> | 7 | <package id="runtime.win-arm64.Microsoft.NETCore.DotNetAppHost" version="5.0.0" targetFramework="native" /> |
8 | <package id="runtime.win-x64.Microsoft.NETCore.DotNetAppHost" version="5.0.0" targetFramework="native" /> | 8 | <package id="runtime.win-x64.Microsoft.NETCore.DotNetAppHost" version="5.0.0" targetFramework="native" /> |
9 | <package id="runtime.win-x86.Microsoft.NETCore.DotNetAppHost" version="5.0.0" targetFramework="native" /> | 9 | <package id="runtime.win-x86.Microsoft.NETCore.DotNetAppHost" version="5.0.0" targetFramework="native" /> |
10 | <package id="WixToolset.BalUtil" version="4.0.49" targetFramework="native" /> | 10 | <package id="WixToolset.BalUtil" version="4.0.50" targetFramework="native" /> |
11 | <package id="WixToolset.BootstrapperCore.Native" version="4.0.89" targetFramework="native" /> | 11 | <package id="WixToolset.BootstrapperCore.Native" version="4.0.94" targetFramework="native" /> |
12 | <package id="WixToolset.DUtil" version="4.0.62" targetFramework="native" /> | 12 | <package id="WixToolset.DUtil" version="4.0.64" targetFramework="native" /> |
13 | </packages> \ No newline at end of file | 13 | </packages> \ No newline at end of file |