diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2020-06-24 09:20:15 +1000 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2020-06-24 20:38:36 +1000 |
commit | 453bec104676c7dd808a20eaf30db9c918bed1e7 (patch) | |
tree | c07b2f62d0c9ea0380392b3ba7ed7e29339408b9 | |
parent | 04f279ab8659c9e4c6c6c796548da01eca1e7615 (diff) | |
download | wix-453bec104676c7dd808a20eaf30db9c918bed1e7.tar.gz wix-453bec104676c7dd808a20eaf30db9c918bed1e7.tar.bz2 wix-453bec104676c7dd808a20eaf30db9c918bed1e7.zip |
Update to latest dutil.
-rw-r--r-- | src/engine/engine.vcxproj | 4 | ||||
-rw-r--r-- | src/engine/packages.config | 2 | ||||
-rw-r--r-- | src/engine/precomp.h | 6 | ||||
-rw-r--r-- | src/engine/registration.cpp | 2 | ||||
-rw-r--r-- | src/stub/WixToolset.Burn.nuspec | 3 | ||||
-rw-r--r-- | src/stub/packages.config | 2 | ||||
-rw-r--r-- | src/stub/precomp.h | 1 | ||||
-rw-r--r-- | src/stub/stub.cpp | 30 | ||||
-rw-r--r-- | src/stub/stub.vcxproj | 8 |
9 files changed, 45 insertions, 13 deletions
diff --git a/src/engine/engine.vcxproj b/src/engine/engine.vcxproj index 80b67b7d..2fe68c2a 100644 --- a/src/engine/engine.vcxproj +++ b/src/engine/engine.vcxproj | |||
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | 4 | <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
5 | <Import Project="..\..\packages\WixToolset.BootstrapperCore.Native.4.0.16\build\WixToolset.BootstrapperCore.Native.props" Condition="Exists('..\..\packages\WixToolset.BootstrapperCore.Native.4.0.16\build\WixToolset.BootstrapperCore.Native.props')" /> | 5 | <Import Project="..\..\packages\WixToolset.BootstrapperCore.Native.4.0.16\build\WixToolset.BootstrapperCore.Native.props" Condition="Exists('..\..\packages\WixToolset.BootstrapperCore.Native.4.0.16\build\WixToolset.BootstrapperCore.Native.props')" /> |
6 | <Import Project="..\..\packages\WixToolset.DUtil.4.0.23\build\WixToolset.DUtil.props" Condition="Exists('..\..\packages\WixToolset.DUtil.4.0.23\build\WixToolset.DUtil.props')" /> | 6 | <Import Project="..\..\packages\WixToolset.DUtil.4.0.30\build\WixToolset.DUtil.props" Condition="Exists('..\..\packages\WixToolset.DUtil.4.0.30\build\WixToolset.DUtil.props')" /> |
7 | 7 | ||
8 | <ItemGroup Label="ProjectConfigurations"> | 8 | <ItemGroup Label="ProjectConfigurations"> |
9 | <ProjectConfiguration Include="Debug|Win32"> | 9 | <ProjectConfiguration Include="Debug|Win32"> |
@@ -167,7 +167,7 @@ rc.exe -fo "$(OutDir)engine.res" "$(IntDir)engine.messages.rc"</Command> | |||
167 | <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> | 167 | <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> |
168 | </PropertyGroup> | 168 | </PropertyGroup> |
169 | <Error Condition="!Exists('..\..\packages\WixToolset.BootstrapperCore.Native.4.0.16\build\WixToolset.BootstrapperCore.Native.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.BootstrapperCore.Native.4.0.16\build\WixToolset.BootstrapperCore.Native.props'))" /> | 169 | <Error Condition="!Exists('..\..\packages\WixToolset.BootstrapperCore.Native.4.0.16\build\WixToolset.BootstrapperCore.Native.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.BootstrapperCore.Native.4.0.16\build\WixToolset.BootstrapperCore.Native.props'))" /> |
170 | <Error Condition="!Exists('..\..\packages\WixToolset.DUtil.4.0.23\build\WixToolset.DUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.DUtil.4.0.23\build\WixToolset.DUtil.props'))" /> | 170 | <Error Condition="!Exists('..\..\packages\WixToolset.DUtil.4.0.30\build\WixToolset.DUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.DUtil.4.0.30\build\WixToolset.DUtil.props'))" /> |
171 | <Error Condition="!Exists('..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets'))" /> | 171 | <Error Condition="!Exists('..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets'))" /> |
172 | </Target> | 172 | </Target> |
173 | </Project> | 173 | </Project> |
diff --git a/src/engine/packages.config b/src/engine/packages.config index 251df9d0..52ccddb4 100644 --- a/src/engine/packages.config +++ b/src/engine/packages.config | |||
@@ -2,5 +2,5 @@ | |||
2 | <packages> | 2 | <packages> |
3 | <package id="Nerdbank.GitVersioning" version="2.1.65" targetFramework="native" developmentDependency="true" /> | 3 | <package id="Nerdbank.GitVersioning" version="2.1.65" targetFramework="native" developmentDependency="true" /> |
4 | <package id="WixToolset.BootstrapperCore.Native" version="4.0.16" targetFramework="native" /> | 4 | <package id="WixToolset.BootstrapperCore.Native" version="4.0.16" targetFramework="native" /> |
5 | <package id="WixToolset.DUtil" version="4.0.23" targetFramework="native" /> | 5 | <package id="WixToolset.DUtil" version="4.0.30" targetFramework="native" /> |
6 | </packages> \ No newline at end of file | 6 | </packages> \ No newline at end of file |
diff --git a/src/engine/precomp.h b/src/engine/precomp.h index 7aa7dafa..04dfa50e 100644 --- a/src/engine/precomp.h +++ b/src/engine/precomp.h | |||
@@ -2,8 +2,6 @@ | |||
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. | 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 | 3 | ||
4 | 4 | ||
5 | #define ExitTrace LogErrorString | ||
6 | |||
7 | #include <windows.h> | 5 | #include <windows.h> |
8 | #include <aclapi.h> | 6 | #include <aclapi.h> |
9 | #include <Bits.h> | 7 | #include <Bits.h> |
@@ -26,6 +24,10 @@ | |||
26 | #include <wininet.h> | 24 | #include <wininet.h> |
27 | #include <stddef.h> | 25 | #include <stddef.h> |
28 | 26 | ||
27 | #include <dutilsources.h> | ||
28 | |||
29 | #define DUTIL_SOURCE_DEFAULT DUTIL_SOURCE_EXTERNAL | ||
30 | |||
29 | #include <dutil.h> | 31 | #include <dutil.h> |
30 | #include <aclutil.h> | 32 | #include <aclutil.h> |
31 | #include <apputil.h> | 33 | #include <apputil.h> |
diff --git a/src/engine/registration.cpp b/src/engine/registration.cpp index 93c990f5..bbde92b3 100644 --- a/src/engine/registration.cpp +++ b/src/engine/registration.cpp | |||
@@ -893,7 +893,7 @@ extern "C" HRESULT RegistrationSessionEnd( | |||
893 | 893 | ||
894 | if (FAILED(hr)) | 894 | if (FAILED(hr)) |
895 | { | 895 | { |
896 | ExitTrace(hr, "Failed to write volatile reboot required registry key."); | 896 | ExitTraceSource(DUTIL_SOURCE_DEFAULT, hr, "Failed to write volatile reboot required registry key."); |
897 | hr = S_OK; | 897 | hr = S_OK; |
898 | } | 898 | } |
899 | } | 899 | } |
diff --git a/src/stub/WixToolset.Burn.nuspec b/src/stub/WixToolset.Burn.nuspec index e71f64e4..35392523 100644 --- a/src/stub/WixToolset.Burn.nuspec +++ b/src/stub/WixToolset.Burn.nuspec | |||
@@ -5,8 +5,7 @@ | |||
5 | <version>$version$</version> | 5 | <version>$version$</version> |
6 | <authors>$authors$</authors> | 6 | <authors>$authors$</authors> |
7 | <owners>$authors$</owners> | 7 | <owners>$authors$</owners> |
8 | <!-- <license type="expression">MS-RL</license> --> | 8 | <license type="expression">MS-RL</license> |
9 | <licenseUrl>https://licenses.nuget.org/MS-RL</licenseUrl> | ||
10 | <projectUrl>https://github.com/wixtoolset/burn</projectUrl> | 9 | <projectUrl>https://github.com/wixtoolset/burn</projectUrl> |
11 | <requireLicenseAcceptance>false</requireLicenseAcceptance> | 10 | <requireLicenseAcceptance>false</requireLicenseAcceptance> |
12 | <description>$description$</description> | 11 | <description>$description$</description> |
diff --git a/src/stub/packages.config b/src/stub/packages.config index e8115bfa..38ce9597 100644 --- a/src/stub/packages.config +++ b/src/stub/packages.config | |||
@@ -1,5 +1,5 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <packages> | 2 | <packages> |
3 | <package id="Nerdbank.GitVersioning" version="2.1.65" targetFramework="native" developmentDependency="true" /> | 3 | <package id="Nerdbank.GitVersioning" version="2.1.65" targetFramework="native" developmentDependency="true" /> |
4 | <package id="WixToolset.DUtil" version="4.0.23" targetFramework="native" /> | 4 | <package id="WixToolset.DUtil" version="4.0.30" targetFramework="native" /> |
5 | </packages> \ No newline at end of file | 5 | </packages> \ No newline at end of file |
diff --git a/src/stub/precomp.h b/src/stub/precomp.h index 387d4f0f..c8301a0f 100644 --- a/src/stub/precomp.h +++ b/src/stub/precomp.h | |||
@@ -9,5 +9,6 @@ | |||
9 | #include <strutil.h> | 9 | #include <strutil.h> |
10 | #include <fileutil.h> | 10 | #include <fileutil.h> |
11 | #include <pathutil.h> | 11 | #include <pathutil.h> |
12 | #include <logutil.h> | ||
12 | 13 | ||
13 | #include "engine.h" | 14 | #include "engine.h" |
diff --git a/src/stub/stub.cpp b/src/stub/stub.cpp index 2f09eede..d3ace1f3 100644 --- a/src/stub/stub.cpp +++ b/src/stub/stub.cpp | |||
@@ -3,6 +3,16 @@ | |||
3 | #include "precomp.h" | 3 | #include "precomp.h" |
4 | 4 | ||
5 | 5 | ||
6 | static void CALLBACK BurnTraceError( | ||
7 | __in_z LPCSTR szFile, | ||
8 | __in int iLine, | ||
9 | __in REPORT_LEVEL rl, | ||
10 | __in UINT source, | ||
11 | __in HRESULT hrError, | ||
12 | __in_z __format_string LPCSTR szFormat, | ||
13 | __in va_list args | ||
14 | ); | ||
15 | |||
6 | int WINAPI wWinMain( | 16 | int WINAPI wWinMain( |
7 | __in HINSTANCE hInstance, | 17 | __in HINSTANCE hInstance, |
8 | __in_opt HINSTANCE /* hPrevInstance */, | 18 | __in_opt HINSTANCE /* hPrevInstance */, |
@@ -30,6 +40,8 @@ int WINAPI wWinMain( | |||
30 | L"feclient.dll", // unsafely loaded by DecryptFile(). | 40 | L"feclient.dll", // unsafely loaded by DecryptFile(). |
31 | }; | 41 | }; |
32 | 42 | ||
43 | DutilInitialize(&BurnTraceError); | ||
44 | |||
33 | // Best effort attempt to get our file handle as soon as possible. | 45 | // Best effort attempt to get our file handle as soon as possible. |
34 | hr = PathForCurrentProcess(&sczPath, NULL); | 46 | hr = PathForCurrentProcess(&sczPath, NULL); |
35 | if (SUCCEEDED(hr)) | 47 | if (SUCCEEDED(hr)) |
@@ -60,5 +72,23 @@ LExit: | |||
60 | ReleaseFileHandle(hEngineFile); | 72 | ReleaseFileHandle(hEngineFile); |
61 | ReleaseStr(sczPath); | 73 | ReleaseStr(sczPath); |
62 | 74 | ||
75 | DutilUninitialize(); | ||
76 | |||
63 | return FAILED(hr) ? (int)hr : (int)dwExitCode; | 77 | return FAILED(hr) ? (int)hr : (int)dwExitCode; |
64 | } | 78 | } |
79 | |||
80 | static void CALLBACK BurnTraceError( | ||
81 | __in_z LPCSTR /*szFile*/, | ||
82 | __in int /*iLine*/, | ||
83 | __in REPORT_LEVEL /*rl*/, | ||
84 | __in UINT source, | ||
85 | __in HRESULT hrError, | ||
86 | __in_z __format_string LPCSTR szFormat, | ||
87 | __in va_list args | ||
88 | ) | ||
89 | { | ||
90 | if (DUTIL_SOURCE_DEFAULT == source) | ||
91 | { | ||
92 | LogErrorStringArgs(hrError, szFormat, args); | ||
93 | } | ||
94 | } | ||
diff --git a/src/stub/stub.vcxproj b/src/stub/stub.vcxproj index ce43e0e6..a3db2044 100644 --- a/src/stub/stub.vcxproj +++ b/src/stub/stub.vcxproj | |||
@@ -2,7 +2,7 @@ | |||
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. --> | 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 | 3 | ||
4 | <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | 4 | <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
5 | <Import Project="..\..\packages\WixToolset.DUtil.4.0.23\build\WixToolset.DUtil.props" Condition="Exists('..\..\packages\WixToolset.DUtil.4.0.23\build\WixToolset.DUtil.props')" /> | 5 | <Import Project="..\..\packages\WixToolset.DUtil.4.0.30\build\WixToolset.DUtil.props" Condition="Exists('..\..\packages\WixToolset.DUtil.4.0.30\build\WixToolset.DUtil.props')" /> |
6 | 6 | ||
7 | <ItemGroup Label="ProjectConfigurations"> | 7 | <ItemGroup Label="ProjectConfigurations"> |
8 | <ProjectConfiguration Include="Debug|Win32"> | 8 | <ProjectConfiguration Include="Debug|Win32"> |
@@ -28,7 +28,7 @@ | |||
28 | <ConfigurationType>Application</ConfigurationType> | 28 | <ConfigurationType>Application</ConfigurationType> |
29 | <ProjectSubSystem>Windows</ProjectSubSystem> | 29 | <ProjectSubSystem>Windows</ProjectSubSystem> |
30 | <TargetName>burn</TargetName> | 30 | <TargetName>burn</TargetName> |
31 | <PlatformToolset>v141</PlatformToolset> | 31 | <PlatformToolset>v142</PlatformToolset> |
32 | <CharacterSet>Unicode</CharacterSet> | 32 | <CharacterSet>Unicode</CharacterSet> |
33 | <Description>Native component of WixToolset.Burn</Description> | 33 | <Description>Native component of WixToolset.Burn</Description> |
34 | </PropertyGroup> | 34 | </PropertyGroup> |
@@ -85,7 +85,7 @@ | |||
85 | </ItemGroup> | 85 | </ItemGroup> |
86 | 86 | ||
87 | <Target Name="Pack" DependsOnTargets="GetBuildVersion"> | 87 | <Target Name="Pack" DependsOnTargets="GetBuildVersion"> |
88 | <Exec Command='nuget pack WixToolset.Burn.nuspec -BasePath "$(BaseOutputPath)$(Configuration)" -OutputDirectory "$(BaseOutputPath)$(Configuration)" -NoPackageAnalysis -Properties Configuration=$(Configuration);Id=WixToolset.Burn;Version="$(BuildVersionSimple)";ProjectFolder=$(MSBuildThisFileDirectory);Platform=$(PlatformTarget);Authors="$(Authors)";Copyright="$(Copyright)";Description="$(Description)";Title="$(Title)"' /> | 88 | <Exec Command='nuget pack WixToolset.Burn.nuspec -BasePath "$(BaseOutputPath)$(Configuration)" -OutputDirectory "$(BaseOutputPath)$(Configuration)" -NoPackageAnalysis -Properties Configuration=$(Configuration);Id=WixToolset.Burn;Version="$(BuildVersionSimple)";ProjectFolder=$(MSBuildThisFileDirectory);Platform=$(PlatformTarget);Authors="$(Authors)";Copyright="$(Copyright)";Description="$(Description)"' /> |
89 | </Target> | 89 | </Target> |
90 | 90 | ||
91 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | 91 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
@@ -94,6 +94,6 @@ | |||
94 | <ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105.The missing file is {0}.</ErrorText> | 94 | <ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105.The missing file is {0}.</ErrorText> |
95 | </PropertyGroup> | 95 | </PropertyGroup> |
96 | <Error Condition="!Exists('..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets'))" /> | 96 | <Error Condition="!Exists('..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets'))" /> |
97 | <Error Condition="!Exists('..\..\packages\WixToolset.DUtil.4.0.23\build\WixToolset.DUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.DUtil.4.0.23\build\WixToolset.DUtil.props'))" /> | 97 | <Error Condition="!Exists('..\..\packages\WixToolset.DUtil.4.0.30\build\WixToolset.DUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.DUtil.4.0.30\build\WixToolset.DUtil.props'))" /> |
98 | </Target> | 98 | </Target> |
99 | </Project> | 99 | </Project> |