diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2019-02-03 13:20:43 -0600 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2019-02-03 13:20:43 -0600 |
commit | 72f3dceefa2e3893b061e074380794bc60b67b6f (patch) | |
tree | 74b812780e2e16b4e30764d92f6294958413ac6f /src/wixlib | |
parent | d2f21865933c11b8af80b8383e1dbf611a175133 (diff) | |
download | wix-72f3dceefa2e3893b061e074380794bc60b67b6f.tar.gz wix-72f3dceefa2e3893b061e074380794bc60b67b6f.tar.bz2 wix-72f3dceefa2e3893b061e074380794bc60b67b6f.zip |
Import code from old v4 repo
Diffstat (limited to 'src/wixlib')
-rw-r--r-- | src/wixlib/DependencyExtension.wixproj | 27 | ||||
-rw-r--r-- | src/wixlib/DependencyExtension.wxs | 22 | ||||
-rw-r--r-- | src/wixlib/DependencyExtension_Platform.wxi | 26 | ||||
-rw-r--r-- | src/wixlib/DependencyExtension_x86.wxs | 8 | ||||
-rw-r--r-- | src/wixlib/en-us.wxl | 8 |
5 files changed, 91 insertions, 0 deletions
diff --git a/src/wixlib/DependencyExtension.wixproj b/src/wixlib/DependencyExtension.wixproj new file mode 100644 index 00000000..e52218ed --- /dev/null +++ b/src/wixlib/DependencyExtension.wixproj | |||
@@ -0,0 +1,27 @@ | |||
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 | |||
5 | <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> | ||
6 | <PropertyGroup> | ||
7 | <ProjectGuid>{58ED0EC8-73F8-4EE1-8664-A53486D38EC8}</ProjectGuid> | ||
8 | <OutputName>dependency</OutputName> | ||
9 | <OutputType>Library</OutputType> | ||
10 | <BindFiles>true</BindFiles> | ||
11 | <Pedantic>true</Pedantic> | ||
12 | <SuppressSpecificWarnings>1086</SuppressSpecificWarnings> | ||
13 | <Cultures>en-us</Cultures> | ||
14 | </PropertyGroup> | ||
15 | |||
16 | <ItemGroup> | ||
17 | <Compile Include="DependencyExtension.wxs" /> | ||
18 | <Compile Include="DependencyExtension_x86.wxs" /> | ||
19 | <EmbeddedResource Include="en-us.wxl" /> | ||
20 | </ItemGroup> | ||
21 | |||
22 | <ItemGroup> | ||
23 | <ProjectReference Include="..\ca\wixdepca.vcxproj" /> | ||
24 | </ItemGroup> | ||
25 | |||
26 | <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), wix.proj))\tools\WixBuild.targets" /> | ||
27 | </Project> | ||
diff --git a/src/wixlib/DependencyExtension.wxs b/src/wixlib/DependencyExtension.wxs new file mode 100644 index 00000000..21f863d2 --- /dev/null +++ b/src/wixlib/DependencyExtension.wxs | |||
@@ -0,0 +1,22 @@ | |||
1 | <?xml version="1.0"?> | ||
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 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | ||
6 | <?include caerr.wxi ?> | ||
7 | |||
8 | <Fragment> | ||
9 | <UI Id="WixDependencyErrors"> | ||
10 | <Error Id="$(var.msierrDependencyMissingDependencies)">!(loc.msierrDependencyMissingDependencies)</Error> | ||
11 | <Error Id="$(var.msierrDependencyHasDependents)">!(loc.msierrDependencyHasDependents)</Error> | ||
12 | </UI> | ||
13 | </Fragment> | ||
14 | |||
15 | <Fragment> | ||
16 | <Property Id="DISABLEDEPENDENCYCHECK" Secure="yes" SuppressModularization="yes"/> | ||
17 | </Fragment> | ||
18 | |||
19 | <Fragment> | ||
20 | <Property Id="IGNOREDEPENDENCIES" Secure="yes" SuppressModularization="yes"/> | ||
21 | </Fragment> | ||
22 | </Wix> | ||
diff --git a/src/wixlib/DependencyExtension_Platform.wxi b/src/wixlib/DependencyExtension_Platform.wxi new file mode 100644 index 00000000..d06b0055 --- /dev/null +++ b/src/wixlib/DependencyExtension_Platform.wxi | |||
@@ -0,0 +1,26 @@ | |||
1 | <?xml version="1.0"?> | ||
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 | <Include xmlns="http://wixtoolset.org/schemas/v4/wxs"> | ||
6 | <?include caSuffix.wxi ?> | ||
7 | <Fragment> | ||
8 | <CustomAction Id="WixDependencyRequire$(var.Suffix)" BinaryKey="WixDepCA$(var.Suffix)" DllEntry="WixDependencyRequire" Execute="immediate" Return="check" SuppressModularization="yes"/> | ||
9 | <InstallExecuteSequence> | ||
10 | <Custom Action="WixDependencyRequire$(var.Suffix)" Before="WixDependencyCheck$(var.Suffix)" Overridable="yes"><![CDATA[NOT DISABLEDEPENDENCYCHECK]]></Custom> | ||
11 | </InstallExecuteSequence> | ||
12 | <UIRef Id="WixDependencyErrors"/> | ||
13 | <PropertyRef Id="DISABLEDEPENDENCYCHECK"/> | ||
14 | </Fragment> | ||
15 | <Fragment> | ||
16 | <CustomAction Id="WixDependencyCheck$(var.Suffix)" BinaryKey="WixDepCA$(var.Suffix)" DllEntry="WixDependencyCheck" Execute="immediate" Return="check" SuppressModularization="yes"/> | ||
17 | <InstallExecuteSequence> | ||
18 | <Custom Action="WixDependencyCheck$(var.Suffix)" Before="InstallInitialize" Overridable="yes"><![CDATA[(REMOVE OR MsiPatchRemovalList) AND NOT (UPGRADINGPRODUCTCODE OR IGNOREDEPENDENCIES="ALL")]]></Custom> | ||
19 | </InstallExecuteSequence> | ||
20 | <UIRef Id="WixDependencyErrors"/> | ||
21 | <PropertyRef Id="IGNOREDEPENDENCIES"/> | ||
22 | </Fragment> | ||
23 | <Fragment> | ||
24 | <Binary Id="WixDepCA$(var.Suffix)" SourceFile="!(bindpath.$(var.platform))wixdepca.dll"/> | ||
25 | </Fragment> | ||
26 | </Include> | ||
diff --git a/src/wixlib/DependencyExtension_x86.wxs b/src/wixlib/DependencyExtension_x86.wxs new file mode 100644 index 00000000..715eba02 --- /dev/null +++ b/src/wixlib/DependencyExtension_x86.wxs | |||
@@ -0,0 +1,8 @@ | |||
1 | <?xml version="1.0"?> | ||
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 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | ||
6 | <?define platform=x86 ?> | ||
7 | <?include DependencyExtension_Platform.wxi ?> | ||
8 | </Wix> | ||
diff --git a/src/wixlib/en-us.wxl b/src/wixlib/en-us.wxl new file mode 100644 index 00000000..ce29a153 --- /dev/null +++ b/src/wixlib/en-us.wxl | |||
@@ -0,0 +1,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. --> | ||
3 | |||
4 | |||
5 | <WixLocalization Culture="en-US" xmlns="http://wixtoolset.org/schemas/v4/wxl"> | ||
6 | <String Id="msierrDependencyMissingDependencies" Overridable="yes">If you continue with this install, the product may not work properly because [2] or more dependencies are missing. Do you want to continue with this install anyway?</String> | ||
7 | <String Id="msierrDependencyHasDependents" Overridable="yes">If you continue with this uninstall, [2] or more products may stop working properly. Do you want to continue with this uninstall anyway?</String> | ||
8 | </WixLocalization> | ||