diff options
author | Bob Arnson <bob@firegiant.com> | 2020-09-02 14:36:37 -0400 |
---|---|---|
committer | Bob Arnson <bob@firegiant.com> | 2020-09-02 14:38:25 -0400 |
commit | 2d71bd9f4379a1605347581c7cdd271315cd94f7 (patch) | |
tree | 407aa68b9af459c493bc1f783b4210103a55f955 | |
parent | d02ccdc0bd962289d59d83497e19a31b974c9631 (diff) | |
download | wix-2d71bd9f4379a1605347581c7cdd271315cd94f7.tar.gz wix-2d71bd9f4379a1605347581c7cdd271315cd94f7.tar.bz2 wix-2d71bd9f4379a1605347581c7cdd271315cd94f7.zip |
Fix Condition authoring.
-rw-r--r-- | DirectX.wixext.sln | 4 | ||||
-rw-r--r-- | src/ca/directxca.vcxproj | 49 | ||||
-rw-r--r-- | src/wixlib/DirectXExtension.wxs | 7 | ||||
-rw-r--r-- | src/wixlib/directx.wixproj | 8 |
4 files changed, 40 insertions, 28 deletions
diff --git a/DirectX.wixext.sln b/DirectX.wixext.sln index 31a91b99..2ec5721f 100644 --- a/DirectX.wixext.sln +++ b/DirectX.wixext.sln | |||
@@ -1,7 +1,7 @@ | |||
1 | | 1 | |
2 | Microsoft Visual Studio Solution File, Format Version 12.00 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 |
3 | # Visual Studio 15 | 3 | # Visual Studio Version 16 |
4 | VisualStudioVersion = 15.0.28010.2016 | 4 | VisualStudioVersion = 16.0.30204.135 |
5 | MinimumVisualStudioVersion = 10.0.40219.1 | 5 | MinimumVisualStudioVersion = 10.0.40219.1 |
6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "directxca", "src\ca\directxca.vcxproj", "{76542B28-0FFD-47D3-AD6A-D0F20FA875AC}" | 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "directxca", "src\ca\directxca.vcxproj", "{76542B28-0FFD-47D3-AD6A-D0F20FA875AC}" |
7 | EndProject | 7 | EndProject |
diff --git a/src/ca/directxca.vcxproj b/src/ca/directxca.vcxproj index fb5e6c65..a9d0c168 100644 --- a/src/ca/directxca.vcxproj +++ b/src/ca/directxca.vcxproj | |||
@@ -1,10 +1,9 @@ | |||
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 | |||
4 | <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | 3 | <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
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')" /> | 4 | <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 | <Import Project="..\..\packages\WixToolset.WcaUtil.4.0.16\build\WixToolset.WcaUtil.props" Condition="Exists('..\..\packages\WixToolset.WcaUtil.4.0.16\build\WixToolset.WcaUtil.props')" /> | 5 | <Import Project="..\..\packages\WixToolset.WcaUtil.4.0.16\build\WixToolset.WcaUtil.props" Condition="Exists('..\..\packages\WixToolset.WcaUtil.4.0.16\build\WixToolset.WcaUtil.props')" /> |
7 | 6 | ||
8 | <ItemGroup Label="ProjectConfigurations"> | 7 | <ItemGroup Label="ProjectConfigurations"> |
9 | <ProjectConfiguration Include="Debug|Win32"> | 8 | <ProjectConfiguration Include="Debug|Win32"> |
10 | <Configuration>Debug</Configuration> | 9 | <Configuration>Debug</Configuration> |
@@ -14,43 +13,61 @@ | |||
14 | <Configuration>Release</Configuration> | 13 | <Configuration>Release</Configuration> |
15 | <Platform>Win32</Platform> | 14 | <Platform>Win32</Platform> |
16 | </ProjectConfiguration> | 15 | </ProjectConfiguration> |
16 | <ProjectConfiguration Include="Debug|x64"> | ||
17 | <Configuration>Debug</Configuration> | ||
18 | <Platform>x64</Platform> | ||
19 | </ProjectConfiguration> | ||
20 | <ProjectConfiguration Include="Release|x64"> | ||
21 | <Configuration>Release</Configuration> | ||
22 | <Platform>x64</Platform> | ||
23 | </ProjectConfiguration> | ||
24 | <ProjectConfiguration Include="Debug|ARM"> | ||
25 | <Configuration>Debug</Configuration> | ||
26 | <Platform>ARM</Platform> | ||
27 | </ProjectConfiguration> | ||
28 | <ProjectConfiguration Include="Release|ARM"> | ||
29 | <Configuration>Release</Configuration> | ||
30 | <Platform>ARM</Platform> | ||
31 | </ProjectConfiguration> | ||
32 | <ProjectConfiguration Include="Debug|ARM64"> | ||
33 | <Configuration>Debug</Configuration> | ||
34 | <Platform>ARM64</Platform> | ||
35 | </ProjectConfiguration> | ||
36 | <ProjectConfiguration Include="Release|ARM64"> | ||
37 | <Configuration>Release</Configuration> | ||
38 | <Platform>ARM64</Platform> | ||
39 | </ProjectConfiguration> | ||
17 | </ItemGroup> | 40 | </ItemGroup> |
18 | 41 | ||
19 | <PropertyGroup Label="Globals"> | 42 | <PropertyGroup Label="Globals"> |
20 | <ProjectGuid>{76542B28-0FFD-47D3-AD6A-D0F20FA875AC}</ProjectGuid> | 43 | <ProjectGuid>{76542B28-0FFD-47D3-AD6A-D0F20FA875AC}</ProjectGuid> |
21 | <ConfigurationType>DynamicLibrary</ConfigurationType> | 44 | <ConfigurationType>DynamicLibrary</ConfigurationType> |
22 | <PlatformToolset>v141</PlatformToolset> | 45 | <PlatformToolset>v142</PlatformToolset> |
23 | <CharacterSet>Unicode</CharacterSet> | 46 | <CharacterSet>Unicode</CharacterSet> |
24 | <TargetName>directxca</TargetName> | 47 | <TargetName>directxca</TargetName> |
25 | <ProjectModuleDefinitionFile>directx.def</ProjectModuleDefinitionFile> | 48 | <ProjectModuleDefinitionFile>directx.def</ProjectModuleDefinitionFile> |
26 | <Description>WiX Toolset DirectX CustomAction</Description> | 49 | <Description>WiX Toolset DirectX CustomAction</Description> |
27 | </PropertyGroup> | 50 | </PropertyGroup> |
28 | 51 | ||
29 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | 52 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> |
30 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | 53 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> |
31 | 54 | ||
32 | <PropertyGroup> | 55 | <PropertyGroup> |
33 | <ProjectAdditionalLinkLibraries>d3d9.lib;msi.lib</ProjectAdditionalLinkLibraries> | 56 | <ProjectAdditionalLinkLibraries>d3d9.lib;msi.lib</ProjectAdditionalLinkLibraries> |
34 | </PropertyGroup> | 57 | </PropertyGroup> |
35 | 58 | ||
36 | <ItemGroup> | 59 | <ItemGroup> |
37 | <ClCompile Include="directx.cpp" /> | 60 | <ClCompile Include="directx.cpp" /> |
38 | <ClCompile Include="dllmain.cpp"> | 61 | <ClCompile Include="dllmain.cpp"> |
39 | <PrecompiledHeader>Create</PrecompiledHeader> | 62 | <PrecompiledHeader>Create</PrecompiledHeader> |
40 | </ClCompile> | 63 | </ClCompile> |
41 | </ItemGroup> | ||
42 | |||
43 | <ItemGroup> | ||
44 | <ClInclude Include="precomp.h" /> | 64 | <ClInclude Include="precomp.h" /> |
45 | </ItemGroup> | ||
46 | |||
47 | <ItemGroup> | ||
48 | <None Include="directx.def" /> | 65 | <None Include="directx.def" /> |
49 | <None Include="packages.config" /> | 66 | <None Include="packages.config" /> |
50 | </ItemGroup> | 67 | </ItemGroup> |
51 | 68 | ||
52 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | 69 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
53 | 70 | ||
54 | <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> | 71 | <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> |
55 | <PropertyGroup> | 72 | <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> | 73 | <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> |
@@ -58,4 +75,4 @@ | |||
58 | <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'))" /> | 75 | <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'))" /> |
59 | <Error Condition="!Exists('..\..\packages\WixToolset.WcaUtil.4.0.16\build\WixToolset.WcaUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.WcaUtil.4.0.16\build\WixToolset.WcaUtil.props'))" /> | 76 | <Error Condition="!Exists('..\..\packages\WixToolset.WcaUtil.4.0.16\build\WixToolset.WcaUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.WcaUtil.4.0.16\build\WixToolset.WcaUtil.props'))" /> |
60 | </Target> | 77 | </Target> |
61 | </Project> | 78 | </Project> \ No newline at end of file |
diff --git a/src/wixlib/DirectXExtension.wxs b/src/wixlib/DirectXExtension.wxs index 12a8bbb6..2e7ff31a 100644 --- a/src/wixlib/DirectXExtension.wxs +++ b/src/wixlib/DirectXExtension.wxs | |||
@@ -1,5 +1,4 @@ | |||
1 | <?xml version="1.0" encoding="UTF-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 | <!-- 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 | 2 | ||
4 | 3 | ||
5 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | 4 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> |
@@ -14,11 +13,11 @@ | |||
14 | <CustomAction Id="WixQueryDirectXCaps" BinaryKey="DirectXCA" DllEntry="WixQueryDirectXCaps" Return="ignore" /> | 13 | <CustomAction Id="WixQueryDirectXCaps" BinaryKey="DirectXCA" DllEntry="WixQueryDirectXCaps" Return="ignore" /> |
15 | 14 | ||
16 | <InstallUISequence> | 15 | <InstallUISequence> |
17 | <Custom Action="WixQueryDirectXCaps" Before="LaunchConditions" Overridable="yes">VersionNT > 400</Custom> | 16 | <Custom Action="WixQueryDirectXCaps" Before="LaunchConditions" Overridable="yes" Condition="VersionNT > 400" /> |
18 | </InstallUISequence> | 17 | </InstallUISequence> |
19 | 18 | ||
20 | <InstallExecuteSequence> | 19 | <InstallExecuteSequence> |
21 | <Custom Action="WixQueryDirectXCaps" Before="LaunchConditions" Overridable="yes">VersionNT > 400</Custom> | 20 | <Custom Action="WixQueryDirectXCaps" Before="LaunchConditions" Overridable="yes" Condition="VersionNT > 400" /> |
22 | </InstallExecuteSequence> | 21 | </InstallExecuteSequence> |
23 | </Fragment> | 22 | </Fragment> |
24 | 23 | ||
diff --git a/src/wixlib/directx.wixproj b/src/wixlib/directx.wixproj index 60e3215a..bdad24a4 100644 --- a/src/wixlib/directx.wixproj +++ b/src/wixlib/directx.wixproj | |||
@@ -1,17 +1,13 @@ | |||
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. --> | 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 | <Project Sdk="WixToolset.Sdk"> | 2 | <Project Sdk="WixToolset.Sdk" ToolsVersion="4.0"> |
3 | |||
4 | <PropertyGroup> | 3 | <PropertyGroup> |
5 | <OutputType>Library</OutputType> | 4 | <OutputType>Library</OutputType> |
6 | <BindFiles>true</BindFiles> | 5 | <BindFiles>true</BindFiles> |
7 | </PropertyGroup> | 6 | </PropertyGroup> |
8 | |||
9 | <ItemGroup> | 7 | <ItemGroup> |
10 | <ProjectReference Include="..\ca\directxca.vcxproj" /> | 8 | <ProjectReference Include="..\ca\directxca.vcxproj" /> |
11 | </ItemGroup> | 9 | </ItemGroup> |
12 | |||
13 | <ItemGroup> | 10 | <ItemGroup> |
14 | <PackageReference Include="Nerdbank.GitVersioning" Version="2.1.65" PrivateAssets="All" /> | 11 | <PackageReference Include="Nerdbank.GitVersioning" Version="2.1.65" PrivateAssets="All" /> |
15 | </ItemGroup> | 12 | </ItemGroup> |
16 | 13 | </Project> \ No newline at end of file | |
17 | </Project> | ||