aboutsummaryrefslogtreecommitdiff
path: root/src/wixext/Tuples
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2020-03-30 19:46:56 +1000
committerSean Hall <r.sean.hall@gmail.com>2020-03-30 21:57:49 +1000
commit0afd76e4c5d46f237591d860e7d445e267522187 (patch)
tree9f3b648da7733464c83ba6e253a65a18d17f5583 /src/wixext/Tuples
parentd74e3dd4bcc573d0c4b1fb5c36c8bf0115cc21a1 (diff)
downloadwix-0afd76e4c5d46f237591d860e7d445e267522187.tar.gz
wix-0afd76e4c5d46f237591d860e7d445e267522187.tar.bz2
wix-0afd76e4c5d46f237591d860e7d445e267522187.zip
Add DetectSHA2Support "search".
Diffstat (limited to 'src/wixext/Tuples')
-rw-r--r--src/wixext/Tuples/UtilTupleDefinitions.cs10
-rw-r--r--src/wixext/Tuples/WixDetectSHA2SupportTuple.cs33
2 files changed, 43 insertions, 0 deletions
diff --git a/src/wixext/Tuples/UtilTupleDefinitions.cs b/src/wixext/Tuples/UtilTupleDefinitions.cs
index 00c98337..ece64502 100644
--- a/src/wixext/Tuples/UtilTupleDefinitions.cs
+++ b/src/wixext/Tuples/UtilTupleDefinitions.cs
@@ -4,6 +4,7 @@ namespace WixToolset.Util
4{ 4{
5 using System; 5 using System;
6 using WixToolset.Data; 6 using WixToolset.Data;
7 using WixToolset.Data.Burn;
7 8
8 public enum UtilTupleDefinitionType 9 public enum UtilTupleDefinitionType
9 { 10 {
@@ -19,6 +20,7 @@ namespace WixToolset.Util
19 User, 20 User,
20 UserGroup, 21 UserGroup,
21 WixCloseApplication, 22 WixCloseApplication,
23 WixDetectSHA2Support,
22 WixFormatFiles, 24 WixFormatFiles,
23 WixInternetShortcut, 25 WixInternetShortcut,
24 WixRemoveFolderEx, 26 WixRemoveFolderEx,
@@ -82,6 +84,9 @@ namespace WixToolset.Util
82 case UtilTupleDefinitionType.WixCloseApplication: 84 case UtilTupleDefinitionType.WixCloseApplication:
83 return UtilTupleDefinitions.WixCloseApplication; 85 return UtilTupleDefinitions.WixCloseApplication;
84 86
87 case UtilTupleDefinitionType.WixDetectSHA2Support:
88 return UtilTupleDefinitions.WixDetectSHA2Support;
89
85 case UtilTupleDefinitionType.WixFormatFiles: 90 case UtilTupleDefinitionType.WixFormatFiles:
86 return UtilTupleDefinitions.WixFormatFiles; 91 return UtilTupleDefinitions.WixFormatFiles;
87 92
@@ -107,5 +112,10 @@ namespace WixToolset.Util
107 throw new ArgumentOutOfRangeException(nameof(type)); 112 throw new ArgumentOutOfRangeException(nameof(type));
108 } 113 }
109 } 114 }
115
116 static UtilTupleDefinitions()
117 {
118 WixDetectSHA2Support.AddTag(BurnConstants.BundleExtensionSearchTupleDefinitionTag);
119 }
110 } 120 }
111} 121}
diff --git a/src/wixext/Tuples/WixDetectSHA2SupportTuple.cs b/src/wixext/Tuples/WixDetectSHA2SupportTuple.cs
new file mode 100644
index 00000000..38b76ff2
--- /dev/null
+++ b/src/wixext/Tuples/WixDetectSHA2SupportTuple.cs
@@ -0,0 +1,33 @@
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
3namespace WixToolset.Util
4{
5 using WixToolset.Data;
6 using WixToolset.Util.Tuples;
7
8 public static partial class UtilTupleDefinitions
9 {
10 public static readonly IntermediateTupleDefinition WixDetectSHA2Support = new IntermediateTupleDefinition(
11 UtilTupleDefinitionType.WixDetectSHA2Support.ToString(),
12 new IntermediateFieldDefinition[0],
13 typeof(WixDetectSHA2SupportTuple));
14 }
15}
16
17namespace WixToolset.Util.Tuples
18{
19 using WixToolset.Data;
20
21 public class WixDetectSHA2SupportTuple : IntermediateTuple
22 {
23 public WixDetectSHA2SupportTuple() : base(UtilTupleDefinitions.WixDetectSHA2Support, null, null)
24 {
25 }
26
27 public WixDetectSHA2SupportTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(UtilTupleDefinitions.WixDetectSHA2Support, sourceLineNumber, id)
28 {
29 }
30
31 public IntermediateField this[GroupTupleFields index] => this.Fields[(int)index];
32 }
33}