diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2020-04-08 13:05:55 +1000 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2020-04-08 14:25:08 +1000 |
commit | 40d38600f3c63dd3e97f3cba85f21454582a0e0f (patch) | |
tree | 54dbd18640b0ab61ce0b46151a7ff08ec1462c15 /src/wixext | |
parent | f5cdcb877d3a419edb5a291620724a4c9ef7c919 (diff) | |
download | wix-40d38600f3c63dd3e97f3cba85f21454582a0e0f.tar.gz wix-40d38600f3c63dd3e97f3cba85f21454582a0e0f.tar.bz2 wix-40d38600f3c63dd3e97f3cba85f21454582a0e0f.zip |
Update dependencies.
Diffstat (limited to 'src/wixext')
-rw-r--r-- | src/wixext/DependencyCompiler.cs | 13 | ||||
-rw-r--r-- | src/wixext/DependencyWindowsInstallerBackendBinderExtension.cs | 3 |
2 files changed, 10 insertions, 6 deletions
diff --git a/src/wixext/DependencyCompiler.cs b/src/wixext/DependencyCompiler.cs index f866b589..dafcfb3e 100644 --- a/src/wixext/DependencyCompiler.cs +++ b/src/wixext/DependencyCompiler.cs | |||
@@ -125,10 +125,10 @@ namespace WixToolset.Dependency | |||
125 | /// <param name="element">Element to process.</param> | 125 | /// <param name="element">Element to process.</param> |
126 | /// <param name="context">Extra information about the context in which this element is being parsed.</param> | 126 | /// <param name="context">Extra information about the context in which this element is being parsed.</param> |
127 | /// <returns>The component key path type if set.</returns> | 127 | /// <returns>The component key path type if set.</returns> |
128 | public override ComponentKeyPath ParsePossibleKeyPathElement(Intermediate intermediate, IntermediateSection section, XElement parentElement, XElement element, IDictionary<string, string> context) | 128 | public override IComponentKeyPath ParsePossibleKeyPathElement(Intermediate intermediate, IntermediateSection section, XElement parentElement, XElement element, IDictionary<string, string> context) |
129 | { | 129 | { |
130 | SourceLineNumber sourceLineNumbers = this.ParseHelper.GetSourceLineNumbers(parentElement); | 130 | SourceLineNumber sourceLineNumbers = this.ParseHelper.GetSourceLineNumbers(parentElement); |
131 | ComponentKeyPath keyPath = null; | 131 | IComponentKeyPath keyPath = null; |
132 | 132 | ||
133 | switch (parentElement.Name.LocalName) | 133 | switch (parentElement.Name.LocalName) |
134 | { | 134 | { |
@@ -223,10 +223,10 @@ namespace WixToolset.Dependency | |||
223 | /// <param name="keyPath">Explicit key path.</param> | 223 | /// <param name="keyPath">Explicit key path.</param> |
224 | /// <param name="parentId">The identifier of the parent component or package.</param> | 224 | /// <param name="parentId">The identifier of the parent component or package.</param> |
225 | /// <returns>The type of key path if set.</returns> | 225 | /// <returns>The type of key path if set.</returns> |
226 | private ComponentKeyPath ParseProvidesElement(Intermediate intermediate, IntermediateSection section, XElement node, PackageType packageType, string parentId) | 226 | private IComponentKeyPath ParseProvidesElement(Intermediate intermediate, IntermediateSection section, XElement node, PackageType packageType, string parentId) |
227 | { | 227 | { |
228 | SourceLineNumber sourceLineNumbers = this.ParseHelper.GetSourceLineNumbers(node); | 228 | SourceLineNumber sourceLineNumbers = this.ParseHelper.GetSourceLineNumbers(node); |
229 | ComponentKeyPath keyPath = null; | 229 | IComponentKeyPath keyPath = null; |
230 | Identifier id = null; | 230 | Identifier id = null; |
231 | string key = null; | 231 | string key = null; |
232 | string version = null; | 232 | string version = null; |
@@ -387,7 +387,10 @@ namespace WixToolset.Dependency | |||
387 | 387 | ||
388 | // Use the Version registry value and use that as a potential key path. | 388 | // Use the Version registry value and use that as a potential key path. |
389 | Identifier idVersion = this.ParseHelper.CreateIdentifier("reg", id.Id, "Version"); | 389 | Identifier idVersion = this.ParseHelper.CreateIdentifier("reg", id.Id, "Version"); |
390 | keyPath = new ComponentKeyPath() { Id = idVersion.Id, Explicit = false, Type = ComponentKeyPathType.Registry }; | 390 | keyPath = this.CreateComponentKeyPath(); |
391 | keyPath.Id = idVersion.Id; | ||
392 | keyPath.Explicit = false; | ||
393 | keyPath.Type = PossibleKeyPathType.Registry; | ||
391 | 394 | ||
392 | row = this.ParseHelper.CreateRow(section, sourceLineNumbers, "Registry", idVersion); | 395 | row = this.ParseHelper.CreateRow(section, sourceLineNumbers, "Registry", idVersion); |
393 | row.Set(1, -1); | 396 | row.Set(1, -1); |
diff --git a/src/wixext/DependencyWindowsInstallerBackendBinderExtension.cs b/src/wixext/DependencyWindowsInstallerBackendBinderExtension.cs index 485453a1..265fdd4f 100644 --- a/src/wixext/DependencyWindowsInstallerBackendBinderExtension.cs +++ b/src/wixext/DependencyWindowsInstallerBackendBinderExtension.cs | |||
@@ -2,6 +2,7 @@ | |||
2 | 2 | ||
3 | namespace WixToolset.Dependency | 3 | namespace WixToolset.Dependency |
4 | { | 4 | { |
5 | using System.Collections.Generic; | ||
5 | using System.Linq; | 6 | using System.Linq; |
6 | using System.Xml; | 7 | using System.Xml; |
7 | using WixToolset.Data.WindowsInstaller; | 8 | using WixToolset.Data.WindowsInstaller; |
@@ -11,7 +12,7 @@ namespace WixToolset.Dependency | |||
11 | { | 12 | { |
12 | private static readonly TableDefinition[] Tables = LoadTables(); | 13 | private static readonly TableDefinition[] Tables = LoadTables(); |
13 | 14 | ||
14 | protected override TableDefinition[] TableDefinitionsForTuples => Tables; | 15 | public override IEnumerable<TableDefinition> TableDefinitions => Tables; |
15 | 16 | ||
16 | private static TableDefinition[] LoadTables() | 17 | private static TableDefinition[] LoadTables() |
17 | { | 18 | { |