diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/be/packages.config | 5 | ||||
| -rw-r--r-- | src/be/precomp.cpp | 3 | ||||
| -rw-r--r-- | src/be/precomp.h | 25 | ||||
| -rw-r--r-- | src/be/utilbe.cpp | 19 | ||||
| -rw-r--r-- | src/be/utilbe.def | 8 | ||||
| -rw-r--r-- | src/be/utilbe.vcxproj | 61 | ||||
| -rw-r--r-- | src/wixlib/UtilExtension.wxs | 4 | ||||
| -rw-r--r-- | src/wixlib/packages.config | 2 | ||||
| -rw-r--r-- | src/wixlib/util.wixproj | 8 |
9 files changed, 132 insertions, 3 deletions
diff --git a/src/be/packages.config b/src/be/packages.config new file mode 100644 index 00000000..f05546c5 --- /dev/null +++ b/src/be/packages.config | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <packages> | ||
| 3 | <package id="WixToolset.BootstrapperCore.Native" version="4.0.13" targetFramework="native" /> | ||
| 4 | <package id="WixToolset.DUtil" version="4.0.18" targetFramework="native" /> | ||
| 5 | </packages> \ No newline at end of file | ||
diff --git a/src/be/precomp.cpp b/src/be/precomp.cpp new file mode 100644 index 00000000..37664a1c --- /dev/null +++ b/src/be/precomp.cpp | |||
| @@ -0,0 +1,3 @@ | |||
| 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 | |||
| 3 | #include "precomp.h" | ||
diff --git a/src/be/precomp.h b/src/be/precomp.h new file mode 100644 index 00000000..9dc3c468 --- /dev/null +++ b/src/be/precomp.h | |||
| @@ -0,0 +1,25 @@ | |||
| 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 | #if _WIN32_MSI < 150 | ||
| 6 | #define _WIN32_MSI 150 | ||
| 7 | #endif | ||
| 8 | |||
| 9 | #include <windows.h> | ||
| 10 | #include <msiquery.h> | ||
| 11 | #include <msidefs.h> | ||
| 12 | #include <stierr.h> | ||
| 13 | |||
| 14 | #include <strsafe.h> | ||
| 15 | |||
| 16 | #include <msxml2.h> | ||
| 17 | |||
| 18 | #define MAXUINT USHRT_MAX | ||
| 19 | |||
| 20 | #include "dutil.h" | ||
| 21 | #include "memutil.h" | ||
| 22 | |||
| 23 | #include "BootstrapperEngine.h" | ||
| 24 | #include "BundleExtensionEngine.h" | ||
| 25 | #include "BundleExtension.h" | ||
diff --git a/src/be/utilbe.cpp b/src/be/utilbe.cpp new file mode 100644 index 00000000..370669dd --- /dev/null +++ b/src/be/utilbe.cpp | |||
| @@ -0,0 +1,19 @@ | |||
| 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 | |||
| 3 | #include "precomp.h" | ||
| 4 | |||
| 5 | // function definitions | ||
| 6 | |||
| 7 | extern "C" HRESULT WINAPI BundleExtensionCreate( | ||
| 8 | __in const BUNDLE_EXTENSION_CREATE_ARGS* /*pArgs*/, | ||
| 9 | __inout BUNDLE_EXTENSION_CREATE_RESULTS* /*pResults*/ | ||
| 10 | ) | ||
| 11 | { | ||
| 12 | HRESULT hr = S_OK; | ||
| 13 | |||
| 14 | return hr; | ||
| 15 | } | ||
| 16 | |||
| 17 | extern "C" void WINAPI BundleExtensionDestroy() | ||
| 18 | { | ||
| 19 | } \ No newline at end of file | ||
diff --git a/src/be/utilbe.def b/src/be/utilbe.def new file mode 100644 index 00000000..711b1a5c --- /dev/null +++ b/src/be/utilbe.def | |||
| @@ -0,0 +1,8 @@ | |||
| 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 | |||
| 3 | |||
| 4 | LIBRARY "utilbe" | ||
| 5 | |||
| 6 | EXPORTS | ||
| 7 | BundleExtensionCreate | ||
| 8 | BundleExtensionDestroy | ||
diff --git a/src/be/utilbe.vcxproj b/src/be/utilbe.vcxproj new file mode 100644 index 00000000..963eac7f --- /dev/null +++ b/src/be/utilbe.vcxproj | |||
| @@ -0,0 +1,61 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 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 | <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
| 5 | <Import Project="..\..\packages\WixToolset.BootstrapperCore.Native.4.0.13\build\WixToolset.BootstrapperCore.Native.props" Condition="Exists('..\..\packages\WixToolset.BootstrapperCore.Native.4.0.13\build\WixToolset.BootstrapperCore.Native.props')" /> | ||
| 6 | <Import Project="..\..\packages\WixToolset.DUtil.4.0.18\build\WixToolset.DUtil.props" Condition="Exists('..\..\packages\WixToolset.DUtil.4.0.18\build\WixToolset.DUtil.props')" /> | ||
| 7 | |||
| 8 | <ItemGroup Label="ProjectConfigurations"> | ||
| 9 | <ProjectConfiguration Include="Debug|Win32"> | ||
| 10 | <Configuration>Debug</Configuration> | ||
| 11 | <Platform>Win32</Platform> | ||
| 12 | </ProjectConfiguration> | ||
| 13 | <ProjectConfiguration Include="Release|Win32"> | ||
| 14 | <Configuration>Release</Configuration> | ||
| 15 | <Platform>Win32</Platform> | ||
| 16 | </ProjectConfiguration> | ||
| 17 | </ItemGroup> | ||
| 18 | |||
| 19 | <PropertyGroup Label="Globals"> | ||
| 20 | <ProjectGuid>{630C1EE7-2517-4A8C-83E3-DA1150308B58}</ProjectGuid> | ||
| 21 | <ConfigurationType>DynamicLibrary</ConfigurationType> | ||
| 22 | <TargetName>utilbe</TargetName> | ||
| 23 | <PlatformToolset>v141</PlatformToolset> | ||
| 24 | <CharacterSet>Unicode</CharacterSet> | ||
| 25 | <ProjectModuleDefinitionFile>utilbe.def</ProjectModuleDefinitionFile> | ||
| 26 | <Description>WiX Toolset Util BundleExtension</Description> | ||
| 27 | </PropertyGroup> | ||
| 28 | |||
| 29 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | ||
| 30 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | ||
| 31 | |||
| 32 | <PropertyGroup> | ||
| 33 | <ProjectAdditionalLinkLibraries>msi.lib</ProjectAdditionalLinkLibraries> | ||
| 34 | </PropertyGroup> | ||
| 35 | |||
| 36 | <ItemGroup> | ||
| 37 | <ClCompile Include="precomp.cpp"> | ||
| 38 | <PrecompiledHeader>Create</PrecompiledHeader> | ||
| 39 | </ClCompile> | ||
| 40 | <ClCompile Include="utilbe.cpp" /> | ||
| 41 | </ItemGroup> | ||
| 42 | |||
| 43 | <ItemGroup> | ||
| 44 | <ClInclude Include="precomp.h" /> | ||
| 45 | </ItemGroup> | ||
| 46 | |||
| 47 | <ItemGroup> | ||
| 48 | <None Include="packages.config" /> | ||
| 49 | <None Include="utilbe.def" /> | ||
| 50 | </ItemGroup> | ||
| 51 | |||
| 52 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | ||
| 53 | |||
| 54 | <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> | ||
| 55 | <PropertyGroup> | ||
| 56 | <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> | ||
| 57 | </PropertyGroup> | ||
| 58 | <Error Condition="!Exists('..\..\packages\WixToolset.BootstrapperCore.Native.4.0.13\build\WixToolset.BootstrapperCore.Native.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.BootstrapperCore.Native.4.0.13\build\WixToolset.BootstrapperCore.Native.props'))" /> | ||
| 59 | <Error Condition="!Exists('..\..\packages\WixToolset.DUtil.4.0.18\build\WixToolset.DUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.DUtil.4.0.18\build\WixToolset.DUtil.props'))" /> | ||
| 60 | </Target> | ||
| 61 | </Project> | ||
diff --git a/src/wixlib/UtilExtension.wxs b/src/wixlib/UtilExtension.wxs index 28646ee1..50828416 100644 --- a/src/wixlib/UtilExtension.wxs +++ b/src/wixlib/UtilExtension.wxs | |||
| @@ -418,4 +418,8 @@ | |||
| 418 | <PropertyRef Id="WixSilentExec64CmdLine" /> | 418 | <PropertyRef Id="WixSilentExec64CmdLine" /> |
| 419 | <CustomAction Id="$(var.Prefix)SilentExec64$(var.Suffix)" BinaryKey="$(var.Prefix)UtilCA$(var.Suffix)" DllEntry="WixSilentExec64" Execute="immediate" Return="check" Impersonate="yes" /> | 419 | <CustomAction Id="$(var.Prefix)SilentExec64$(var.Suffix)" BinaryKey="$(var.Prefix)UtilCA$(var.Suffix)" DllEntry="WixSilentExec64" Execute="immediate" Return="check" Impersonate="yes" /> |
| 420 | </Fragment> | 420 | </Fragment> |
| 421 | |||
| 422 | <Fragment> | ||
| 423 | <BundleExtension Id="WixUtilBundleExtension" SourceFile="utilbe.dll" Name="WixUtilBundleExtension\utilbe.dll" /> | ||
| 424 | </Fragment> | ||
| 421 | </Wix> | 425 | </Wix> |
diff --git a/src/wixlib/packages.config b/src/wixlib/packages.config index 06184af1..25b4e6a9 100644 --- a/src/wixlib/packages.config +++ b/src/wixlib/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" developmentDependency="true" targetFramework="net40" /> | 3 | <package id="Nerdbank.GitVersioning" version="2.1.65" developmentDependency="true" targetFramework="net40" /> |
| 4 | <package id="WixToolset.MSBuild" version="4.0.0-build-0063" developmentDependency="true" targetFramework="net40" /> | 4 | <package id="WixToolset.MSBuild" version="4.0.0-build-0080" developmentDependency="true" targetFramework="net40" /> |
| 5 | </packages> \ No newline at end of file | 5 | </packages> \ No newline at end of file |
diff --git a/src/wixlib/util.wixproj b/src/wixlib/util.wixproj index 21d96832..4db3b93d 100644 --- a/src/wixlib/util.wixproj +++ b/src/wixlib/util.wixproj | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 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 | <Project DefaultTargets="Build" InitialTargets="EnsureWixToolsetInstalled" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="15.0"> | 3 | <Project DefaultTargets="Build" InitialTargets="EnsureWixToolsetInstalled" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="15.0"> |
| 4 | <Import Project="..\..\packages\WixToolset.MSBuild.4.0.0-build-0063\build\WixToolset.MSBuild.props" Condition="Exists('..\..\packages\WixToolset.MSBuild.4.0.0-build-0063\build\WixToolset.MSBuild.props')" /> | 4 | <Import Project="..\..\packages\WixToolset.MSBuild.4.0.0-build-0080\build\WixToolset.MSBuild.props" Condition="Exists('..\..\packages\WixToolset.MSBuild.4.0.0-build-0080\build\WixToolset.MSBuild.props')" /> |
| 5 | <Import Project="..\FindLocalWix.props" /> | 5 | <Import Project="..\FindLocalWix.props" /> |
| 6 | <PropertyGroup> | 6 | <PropertyGroup> |
| 7 | <ProjectGuid>{1ACFFEFD-505A-41A5-ACBF-A02B7B473AA2}</ProjectGuid> | 7 | <ProjectGuid>{1ACFFEFD-505A-41A5-ACBF-A02B7B473AA2}</ProjectGuid> |
| @@ -26,6 +26,10 @@ | |||
| 26 | <None Include="packages.config" /> | 26 | <None Include="packages.config" /> |
| 27 | </ItemGroup> | 27 | </ItemGroup> |
| 28 | <ItemGroup> | 28 | <ItemGroup> |
| 29 | <ProjectReference Include="..\be\utilbe.vcxproj"> | ||
| 30 | <Name>utilbe</Name> | ||
| 31 | <Project>{630C1EE7-2517-4A8C-83E3-DA1150308B58}</Project> | ||
| 32 | </ProjectReference> | ||
| 29 | <ProjectReference Include="..\ca\utilca.vcxproj"> | 33 | <ProjectReference Include="..\ca\utilca.vcxproj"> |
| 30 | <Name>utilca</Name> | 34 | <Name>utilca</Name> |
| 31 | <Project>{076018F7-19BD-423A-ABBF-229273DA08D8}</Project> | 35 | <Project>{076018F7-19BD-423A-ABBF-229273DA08D8}</Project> |
| @@ -46,7 +50,7 @@ | |||
| 46 | <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> | 50 | <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> |
| 47 | </PropertyGroup> | 51 | </PropertyGroup> |
| 48 | <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'))" /> | 52 | <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'))" /> |
| 49 | <Error Condition="!Exists('..\..\packages\WixToolset.MSBuild.4.0.0-build-0063\build\WixToolset.MSBuild.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.MSBuild.4.0.0-build-0063\build\WixToolset.MSBuild.props'))" /> | 53 | <Error Condition="!Exists('..\..\packages\WixToolset.MSBuild.4.0.0-build-0080\build\WixToolset.MSBuild.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.MSBuild.4.0.0-build-0080\build\WixToolset.MSBuild.props'))" /> |
| 50 | </Target> | 54 | </Target> |
| 51 | <Import Project="..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets" Condition="Exists('..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets')" /> | 55 | <Import Project="..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets" Condition="Exists('..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets')" /> |
| 52 | </Project> | 56 | </Project> |
