diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2022-07-21 15:45:16 -0500 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2022-07-21 17:06:01 -0500 |
commit | 0fcd544b7d2fbdf37227df055122b17428d9a524 (patch) | |
tree | 02edc0006c8f11ce960174c562e9e9c0f63ccfdf /src/ext/Util/wixext/UtilCompiler.cs | |
parent | 913b6238417dceeb8440315e4669990756d17655 (diff) | |
download | wix-0fcd544b7d2fbdf37227df055122b17428d9a524.tar.gz wix-0fcd544b7d2fbdf37227df055122b17428d9a524.tar.bz2 wix-0fcd544b7d2fbdf37227df055122b17428d9a524.zip |
Expose and use methods to parse attributes with Burn variable names.
Fixes 6819
Diffstat (limited to 'src/ext/Util/wixext/UtilCompiler.cs')
-rw-r--r-- | src/ext/Util/wixext/UtilCompiler.cs | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/src/ext/Util/wixext/UtilCompiler.cs b/src/ext/Util/wixext/UtilCompiler.cs index d770555f..a6e4b835 100644 --- a/src/ext/Util/wixext/UtilCompiler.cs +++ b/src/ext/Util/wixext/UtilCompiler.cs | |||
@@ -415,8 +415,7 @@ namespace WixToolset.Util | |||
415 | id = this.ParseHelper.GetAttributeIdentifier(sourceLineNumbers, attrib); | 415 | id = this.ParseHelper.GetAttributeIdentifier(sourceLineNumbers, attrib); |
416 | break; | 416 | break; |
417 | case "Variable": | 417 | case "Variable": |
418 | variable = this.ParseHelper.GetAttributeValue(sourceLineNumbers, attrib); | 418 | variable = this.ParseHelper.GetAttributeBundleVariableNameValue(sourceLineNumbers, attrib); |
419 | // TODO: handle standard bundle variables | ||
420 | break; | 419 | break; |
421 | case "Condition": | 420 | case "Condition": |
422 | condition = this.ParseHelper.GetAttributeValue(sourceLineNumbers, attrib); | 421 | condition = this.ParseHelper.GetAttributeValue(sourceLineNumbers, attrib); |
@@ -505,10 +504,10 @@ namespace WixToolset.Util | |||
505 | 504 | ||
506 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element); | 505 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element); |
507 | 506 | ||
508 | this.ParseHelper.CreateWixSearchSymbol(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, null); | ||
509 | |||
510 | if (!this.Messaging.EncounteredError) | 507 | if (!this.Messaging.EncounteredError) |
511 | { | 508 | { |
509 | this.ParseHelper.CreateWixSearchSymbol(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, null); | ||
510 | |||
512 | section.AddSymbol(new WixComponentSearchSymbol(sourceLineNumbers, id) | 511 | section.AddSymbol(new WixComponentSearchSymbol(sourceLineNumbers, id) |
513 | { | 512 | { |
514 | Guid = guid, | 513 | Guid = guid, |
@@ -616,10 +615,10 @@ namespace WixToolset.Util | |||
616 | this.Messaging.Write(ErrorMessages.UnsupportedPlatformForElement(sourceLineNumbers, this.Context.Platform.ToString(), element.Name.LocalName)); | 615 | this.Messaging.Write(ErrorMessages.UnsupportedPlatformForElement(sourceLineNumbers, this.Context.Platform.ToString(), element.Name.LocalName)); |
617 | } | 616 | } |
618 | 617 | ||
619 | this.ParseHelper.CreateWixSearchSymbol(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, bundleExtensionId); | ||
620 | |||
621 | if (!this.Messaging.EncounteredError) | 618 | if (!this.Messaging.EncounteredError) |
622 | { | 619 | { |
620 | this.ParseHelper.CreateWixSearchSymbol(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, bundleExtensionId); | ||
621 | |||
623 | section.AddSymbol(new WixWindowsFeatureSearchSymbol(sourceLineNumbers, id) | 622 | section.AddSymbol(new WixWindowsFeatureSearchSymbol(sourceLineNumbers, id) |
624 | { | 623 | { |
625 | Type = feature, | 624 | Type = feature, |
@@ -1043,10 +1042,10 @@ namespace WixToolset.Util | |||
1043 | 1042 | ||
1044 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element); | 1043 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element); |
1045 | 1044 | ||
1046 | this.ParseHelper.CreateWixSearchSymbol(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, null); | ||
1047 | |||
1048 | if (!this.Messaging.EncounteredError) | 1045 | if (!this.Messaging.EncounteredError) |
1049 | { | 1046 | { |
1047 | this.ParseHelper.CreateWixSearchSymbol(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, null); | ||
1048 | |||
1050 | this.CreateWixFileSearchRow(section, sourceLineNumbers, id, path, attributes, type); | 1049 | this.CreateWixFileSearchRow(section, sourceLineNumbers, id, path, attributes, type); |
1051 | } | 1050 | } |
1052 | } | 1051 | } |
@@ -1157,10 +1156,10 @@ namespace WixToolset.Util | |||
1157 | 1156 | ||
1158 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, node); | 1157 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, node); |
1159 | 1158 | ||
1160 | this.ParseHelper.CreateWixSearchSymbol(section, sourceLineNumbers, node.Name.LocalName, id, variable, condition, after, null); | ||
1161 | |||
1162 | if (!this.Messaging.EncounteredError) | 1159 | if (!this.Messaging.EncounteredError) |
1163 | { | 1160 | { |
1161 | this.ParseHelper.CreateWixSearchSymbol(section, sourceLineNumbers, node.Name.LocalName, id, variable, condition, after, null); | ||
1162 | |||
1164 | this.CreateWixFileSearchRow(section, sourceLineNumbers, id, path, attributes, type); | 1163 | this.CreateWixFileSearchRow(section, sourceLineNumbers, id, path, attributes, type); |
1165 | } | 1164 | } |
1166 | } | 1165 | } |
@@ -2645,10 +2644,10 @@ namespace WixToolset.Util | |||
2645 | 2644 | ||
2646 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element); | 2645 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element); |
2647 | 2646 | ||
2648 | this.ParseHelper.CreateWixSearchSymbol(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, null); | ||
2649 | |||
2650 | if (!this.Messaging.EncounteredError) | 2647 | if (!this.Messaging.EncounteredError) |
2651 | { | 2648 | { |
2649 | this.ParseHelper.CreateWixSearchSymbol(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, null); | ||
2650 | |||
2652 | section.AddSymbol(new WixProductSearchSymbol(sourceLineNumbers, id) | 2651 | section.AddSymbol(new WixProductSearchSymbol(sourceLineNumbers, id) |
2653 | { | 2652 | { |
2654 | Guid = guid, | 2653 | Guid = guid, |
@@ -2777,10 +2776,10 @@ namespace WixToolset.Util | |||
2777 | 2776 | ||
2778 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element); | 2777 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element); |
2779 | 2778 | ||
2780 | this.ParseHelper.CreateWixSearchSymbol(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, null); | ||
2781 | |||
2782 | if (!this.Messaging.EncounteredError) | 2779 | if (!this.Messaging.EncounteredError) |
2783 | { | 2780 | { |
2781 | this.ParseHelper.CreateWixSearchSymbol(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, null); | ||
2782 | |||
2784 | section.AddSymbol(new WixRegistrySearchSymbol(sourceLineNumbers, id) | 2783 | section.AddSymbol(new WixRegistrySearchSymbol(sourceLineNumbers, id) |
2785 | { | 2784 | { |
2786 | Root = root.Value, | 2785 | Root = root.Value, |