diff options
Diffstat (limited to 'src/stub')
-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 |
5 files changed, 37 insertions, 7 deletions
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> |