diff options
Diffstat (limited to 'src/wixext/DependencyCompiler.cs')
-rw-r--r-- | src/wixext/DependencyCompiler.cs | 13 |
1 files changed, 8 insertions, 5 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); |