diff options
Diffstat (limited to 'src/wixext/UtilCompiler.cs')
-rw-r--r-- | src/wixext/UtilCompiler.cs | 124 |
1 files changed, 62 insertions, 62 deletions
diff --git a/src/wixext/UtilCompiler.cs b/src/wixext/UtilCompiler.cs index 273a03c7..f7f37fab 100644 --- a/src/wixext/UtilCompiler.cs +++ b/src/wixext/UtilCompiler.cs | |||
@@ -11,10 +11,10 @@ namespace WixToolset.Util | |||
11 | using System.Text.RegularExpressions; | 11 | using System.Text.RegularExpressions; |
12 | using System.Xml.Linq; | 12 | using System.Xml.Linq; |
13 | using WixToolset.Data; | 13 | using WixToolset.Data; |
14 | using WixToolset.Data.Tuples; | 14 | using WixToolset.Data.Symbols; |
15 | using WixToolset.Extensibility; | 15 | using WixToolset.Extensibility; |
16 | using WixToolset.Extensibility.Data; | 16 | using WixToolset.Extensibility.Data; |
17 | using WixToolset.Util.Tuples; | 17 | using WixToolset.Util.Symbols; |
18 | 18 | ||
19 | /// <summary> | 19 | /// <summary> |
20 | /// The compiler for the WiX Toolset Utility Extension. | 20 | /// The compiler for the WiX Toolset Utility Extension. |
@@ -447,7 +447,7 @@ namespace WixToolset.Util | |||
447 | 447 | ||
448 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element); | 448 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element); |
449 | 449 | ||
450 | this.ParseHelper.CreateWixSearchTuple(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, null); | 450 | this.ParseHelper.CreateWixSearchSymbol(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, null); |
451 | 451 | ||
452 | if (!this.Messaging.EncounteredError) | 452 | if (!this.Messaging.EncounteredError) |
453 | { | 453 | { |
@@ -465,7 +465,7 @@ namespace WixToolset.Util | |||
465 | break; | 465 | break; |
466 | } | 466 | } |
467 | 467 | ||
468 | section.AddTuple(new WixComponentSearchTuple(sourceLineNumbers, id) | 468 | section.AddSymbol(new WixComponentSearchSymbol(sourceLineNumbers, id) |
469 | { | 469 | { |
470 | Guid = guid, | 470 | Guid = guid, |
471 | ProductCode = productCode, | 471 | ProductCode = productCode, |
@@ -491,7 +491,7 @@ namespace WixToolset.Util | |||
491 | { | 491 | { |
492 | case "Id": | 492 | case "Id": |
493 | refId = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); | 493 | refId = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); |
494 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, TupleDefinitions.WixComponentSearch, refId); | 494 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, SymbolDefinitions.WixComponentSearch, refId); |
495 | break; | 495 | break; |
496 | default: | 496 | default: |
497 | this.ParseHelper.UnexpectedAttribute(element, attrib); | 497 | this.ParseHelper.UnexpectedAttribute(element, attrib); |
@@ -549,11 +549,11 @@ namespace WixToolset.Util | |||
549 | 549 | ||
550 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element); | 550 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element); |
551 | 551 | ||
552 | this.ParseHelper.CreateWixSearchTuple(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, UtilConstants.UtilBundleExtensionId); | 552 | this.ParseHelper.CreateWixSearchSymbol(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, UtilConstants.UtilBundleExtensionId); |
553 | 553 | ||
554 | if (!this.Messaging.EncounteredError) | 554 | if (!this.Messaging.EncounteredError) |
555 | { | 555 | { |
556 | section.AddTuple(new WixDetectSHA2SupportTuple(sourceLineNumbers, id)); | 556 | section.AddSymbol(new WixDetectSHA2SupportSymbol(sourceLineNumbers, id)); |
557 | } | 557 | } |
558 | } | 558 | } |
559 | 559 | ||
@@ -573,7 +573,7 @@ namespace WixToolset.Util | |||
573 | { | 573 | { |
574 | case "Id": | 574 | case "Id": |
575 | var refId = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); | 575 | var refId = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); |
576 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, UtilTupleDefinitions.WixDetectSHA2Support, refId); | 576 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, UtilSymbolDefinitions.WixDetectSHA2Support, refId); |
577 | break; | 577 | break; |
578 | default: | 578 | default: |
579 | this.ParseHelper.UnexpectedAttribute(element, attrib); | 579 | this.ParseHelper.UnexpectedAttribute(element, attrib); |
@@ -706,26 +706,26 @@ namespace WixToolset.Util | |||
706 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element); | 706 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element); |
707 | 707 | ||
708 | string eventSourceKey = $@"SYSTEM\CurrentControlSet\Services\EventLog\{logName}\{sourceName}"; | 708 | string eventSourceKey = $@"SYSTEM\CurrentControlSet\Services\EventLog\{logName}\{sourceName}"; |
709 | var id = this.ParseHelper.CreateRegistryTuple(section, sourceLineNumbers, RegistryRootType.LocalMachine, eventSourceKey, "EventMessageFile", String.Concat("#%", eventMessageFile), componentId, false); | 709 | var id = this.ParseHelper.CreateRegistrySymbol(section, sourceLineNumbers, RegistryRootType.LocalMachine, eventSourceKey, "EventMessageFile", String.Concat("#%", eventMessageFile), componentId, false); |
710 | 710 | ||
711 | if (null != categoryMessageFile) | 711 | if (null != categoryMessageFile) |
712 | { | 712 | { |
713 | this.ParseHelper.CreateRegistryTuple(section, sourceLineNumbers, RegistryRootType.LocalMachine, eventSourceKey, "CategoryMessageFile", String.Concat("#%", categoryMessageFile), componentId, false); | 713 | this.ParseHelper.CreateRegistrySymbol(section, sourceLineNumbers, RegistryRootType.LocalMachine, eventSourceKey, "CategoryMessageFile", String.Concat("#%", categoryMessageFile), componentId, false); |
714 | } | 714 | } |
715 | 715 | ||
716 | if (CompilerConstants.IntegerNotSet != categoryCount) | 716 | if (CompilerConstants.IntegerNotSet != categoryCount) |
717 | { | 717 | { |
718 | this.ParseHelper.CreateRegistryTuple(section, sourceLineNumbers, RegistryRootType.LocalMachine, eventSourceKey, "CategoryCount", String.Concat("#", categoryCount), componentId, false); | 718 | this.ParseHelper.CreateRegistrySymbol(section, sourceLineNumbers, RegistryRootType.LocalMachine, eventSourceKey, "CategoryCount", String.Concat("#", categoryCount), componentId, false); |
719 | } | 719 | } |
720 | 720 | ||
721 | if (null != parameterMessageFile) | 721 | if (null != parameterMessageFile) |
722 | { | 722 | { |
723 | this.ParseHelper.CreateRegistryTuple(section, sourceLineNumbers, RegistryRootType.LocalMachine, eventSourceKey, "ParameterMessageFile", String.Concat("#%", parameterMessageFile), componentId, false); | 723 | this.ParseHelper.CreateRegistrySymbol(section, sourceLineNumbers, RegistryRootType.LocalMachine, eventSourceKey, "ParameterMessageFile", String.Concat("#%", parameterMessageFile), componentId, false); |
724 | } | 724 | } |
725 | 725 | ||
726 | if (0 != typesSupported) | 726 | if (0 != typesSupported) |
727 | { | 727 | { |
728 | this.ParseHelper.CreateRegistryTuple(section, sourceLineNumbers, RegistryRootType.LocalMachine, eventSourceKey, "TypesSupported", String.Concat("#", typesSupported), componentId, false); | 728 | this.ParseHelper.CreateRegistrySymbol(section, sourceLineNumbers, RegistryRootType.LocalMachine, eventSourceKey, "TypesSupported", String.Concat("#", typesSupported), componentId, false); |
729 | } | 729 | } |
730 | 730 | ||
731 | var componentKeyPath = this.CreateComponentKeyPath(); | 731 | var componentKeyPath = this.CreateComponentKeyPath(); |
@@ -879,7 +879,7 @@ namespace WixToolset.Util | |||
879 | 879 | ||
880 | if (!this.Messaging.EncounteredError) | 880 | if (!this.Messaging.EncounteredError) |
881 | { | 881 | { |
882 | var tuple = section.AddTuple(new WixCloseApplicationTuple(sourceLineNumbers, id) | 882 | var symbol = section.AddSymbol(new WixCloseApplicationSymbol(sourceLineNumbers, id) |
883 | { | 883 | { |
884 | Target = target, | 884 | Target = target, |
885 | Description = description, | 885 | Description = description, |
@@ -889,15 +889,15 @@ namespace WixToolset.Util | |||
889 | }); | 889 | }); |
890 | if (CompilerConstants.IntegerNotSet != sequence) | 890 | if (CompilerConstants.IntegerNotSet != sequence) |
891 | { | 891 | { |
892 | tuple.Sequence = sequence; | 892 | symbol.Sequence = sequence; |
893 | } | 893 | } |
894 | if (CompilerConstants.IntegerNotSet != terminateExitCode) | 894 | if (CompilerConstants.IntegerNotSet != terminateExitCode) |
895 | { | 895 | { |
896 | tuple.TerminateExitCode = terminateExitCode; | 896 | symbol.TerminateExitCode = terminateExitCode; |
897 | } | 897 | } |
898 | if (CompilerConstants.IntegerNotSet != timeout) | 898 | if (CompilerConstants.IntegerNotSet != timeout) |
899 | { | 899 | { |
900 | tuple.Timeout = timeout * 1000; // make the timeout milliseconds in the table. | 900 | symbol.Timeout = timeout * 1000; // make the timeout milliseconds in the table. |
901 | } | 901 | } |
902 | } | 902 | } |
903 | } | 903 | } |
@@ -962,7 +962,7 @@ namespace WixToolset.Util | |||
962 | 962 | ||
963 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element); | 963 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element); |
964 | 964 | ||
965 | this.ParseHelper.CreateWixSearchTuple(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, null); | 965 | this.ParseHelper.CreateWixSearchSymbol(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, null); |
966 | 966 | ||
967 | if (!this.Messaging.EncounteredError) | 967 | if (!this.Messaging.EncounteredError) |
968 | { | 968 | { |
@@ -994,7 +994,7 @@ namespace WixToolset.Util | |||
994 | { | 994 | { |
995 | case "Id": | 995 | case "Id": |
996 | var refId = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); | 996 | var refId = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); |
997 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, TupleDefinitions.WixSearch, refId); | 997 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, SymbolDefinitions.WixSearch, refId); |
998 | break; | 998 | break; |
999 | default: | 999 | default: |
1000 | this.ParseHelper.UnexpectedAttribute(node, attrib); | 1000 | this.ParseHelper.UnexpectedAttribute(node, attrib); |
@@ -1072,7 +1072,7 @@ namespace WixToolset.Util | |||
1072 | 1072 | ||
1073 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, node); | 1073 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, node); |
1074 | 1074 | ||
1075 | this.ParseHelper.CreateWixSearchTuple(section, sourceLineNumbers, node.Name.LocalName, id, variable, condition, after, null); | 1075 | this.ParseHelper.CreateWixSearchSymbol(section, sourceLineNumbers, node.Name.LocalName, id, variable, condition, after, null); |
1076 | 1076 | ||
1077 | if (!this.Messaging.EncounteredError) | 1077 | if (!this.Messaging.EncounteredError) |
1078 | { | 1078 | { |
@@ -1100,7 +1100,7 @@ namespace WixToolset.Util | |||
1100 | /// <param name="attributes"></param> | 1100 | /// <param name="attributes"></param> |
1101 | private void CreateWixFileSearchRow(IntermediateSection section, SourceLineNumber sourceLineNumbers, Identifier id, string path, WixFileSearchAttributes attributes) | 1101 | private void CreateWixFileSearchRow(IntermediateSection section, SourceLineNumber sourceLineNumbers, Identifier id, string path, WixFileSearchAttributes attributes) |
1102 | { | 1102 | { |
1103 | section.AddTuple(new WixFileSearchTuple(sourceLineNumbers, id) | 1103 | section.AddSymbol(new WixFileSearchSymbol(sourceLineNumbers, id) |
1104 | { | 1104 | { |
1105 | Path = path, | 1105 | Path = path, |
1106 | Attributes = attributes, | 1106 | Attributes = attributes, |
@@ -1186,7 +1186,7 @@ namespace WixToolset.Util | |||
1186 | 1186 | ||
1187 | if (!this.Messaging.EncounteredError) | 1187 | if (!this.Messaging.EncounteredError) |
1188 | { | 1188 | { |
1189 | section.AddTuple(new FileShareTuple(sourceLineNumbers, id) | 1189 | section.AddSymbol(new FileShareSymbol(sourceLineNumbers, id) |
1190 | { | 1190 | { |
1191 | ShareName = name, | 1191 | ShareName = name, |
1192 | ComponentRef = componentId, | 1192 | ComponentRef = componentId, |
@@ -1215,7 +1215,7 @@ namespace WixToolset.Util | |||
1215 | { | 1215 | { |
1216 | case "User": | 1216 | case "User": |
1217 | user = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); | 1217 | user = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); |
1218 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, UtilTupleDefinitions.User, user); | 1218 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, UtilSymbolDefinitions.User, user); |
1219 | break; | 1219 | break; |
1220 | default: | 1220 | default: |
1221 | var attribValue = this.ParseHelper.GetAttributeYesNoValue(sourceLineNumbers, attrib); | 1221 | var attribValue = this.ParseHelper.GetAttributeYesNoValue(sourceLineNumbers, attrib); |
@@ -1255,7 +1255,7 @@ namespace WixToolset.Util | |||
1255 | 1255 | ||
1256 | if (!this.Messaging.EncounteredError) | 1256 | if (!this.Messaging.EncounteredError) |
1257 | { | 1257 | { |
1258 | section.AddTuple(new FileSharePermissionsTuple(sourceLineNumbers) | 1258 | section.AddSymbol(new FileSharePermissionsSymbol(sourceLineNumbers) |
1259 | { | 1259 | { |
1260 | FileShareRef = fileShareId.Id, | 1260 | FileShareRef = fileShareId.Id, |
1261 | UserRef = user, | 1261 | UserRef = user, |
@@ -1311,7 +1311,7 @@ namespace WixToolset.Util | |||
1311 | 1311 | ||
1312 | if (!this.Messaging.EncounteredError) | 1312 | if (!this.Messaging.EncounteredError) |
1313 | { | 1313 | { |
1314 | section.AddTuple(new GroupTuple(sourceLineNumbers, id) | 1314 | section.AddSymbol(new GroupSymbol(sourceLineNumbers, id) |
1315 | { | 1315 | { |
1316 | ComponentRef = componentId, | 1316 | ComponentRef = componentId, |
1317 | Name = name, | 1317 | Name = name, |
@@ -1338,7 +1338,7 @@ namespace WixToolset.Util | |||
1338 | { | 1338 | { |
1339 | case "Id": | 1339 | case "Id": |
1340 | groupId = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); | 1340 | groupId = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); |
1341 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, UtilTupleDefinitions.Group, groupId); | 1341 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, UtilSymbolDefinitions.Group, groupId); |
1342 | break; | 1342 | break; |
1343 | default: | 1343 | default: |
1344 | this.ParseHelper.UnexpectedAttribute(element, attrib); | 1344 | this.ParseHelper.UnexpectedAttribute(element, attrib); |
@@ -1355,7 +1355,7 @@ namespace WixToolset.Util | |||
1355 | 1355 | ||
1356 | if (!this.Messaging.EncounteredError) | 1356 | if (!this.Messaging.EncounteredError) |
1357 | { | 1357 | { |
1358 | section.AddTuple(new UserGroupTuple(sourceLineNumbers) | 1358 | section.AddSymbol(new UserGroupSymbol(sourceLineNumbers) |
1359 | { | 1359 | { |
1360 | UserRef = userId, | 1360 | UserRef = userId, |
1361 | GroupRef = groupId, | 1361 | GroupRef = groupId, |
@@ -1478,7 +1478,7 @@ namespace WixToolset.Util | |||
1478 | // add the appropriate extension based on type of shortcut | 1478 | // add the appropriate extension based on type of shortcut |
1479 | name = String.Concat(name, InternetShortcutType.Url == type ? ".url" : ".lnk"); | 1479 | name = String.Concat(name, InternetShortcutType.Url == type ? ".url" : ".lnk"); |
1480 | 1480 | ||
1481 | section.AddTuple(new WixInternetShortcutTuple(sourceLineNumbers, shortcutId) | 1481 | section.AddSymbol(new WixInternetShortcutSymbol(sourceLineNumbers, shortcutId) |
1482 | { | 1482 | { |
1483 | ComponentRef = componentId, | 1483 | ComponentRef = componentId, |
1484 | DirectoryRef = directoryId, | 1484 | DirectoryRef = directoryId, |
@@ -1495,7 +1495,7 @@ namespace WixToolset.Util | |||
1495 | this.ParseHelper.EnsureTable(section, sourceLineNumbers, "CreateFolder"); | 1495 | this.ParseHelper.EnsureTable(section, sourceLineNumbers, "CreateFolder"); |
1496 | 1496 | ||
1497 | // use built-in MSI functionality to remove the shortcuts rather than doing so via CA | 1497 | // use built-in MSI functionality to remove the shortcuts rather than doing so via CA |
1498 | section.AddTuple(new RemoveFileTuple(sourceLineNumbers, shortcutId) | 1498 | section.AddSymbol(new RemoveFileSymbol(sourceLineNumbers, shortcutId) |
1499 | { | 1499 | { |
1500 | ComponentRef = componentId, | 1500 | ComponentRef = componentId, |
1501 | DirProperty = directoryId, | 1501 | DirProperty = directoryId, |
@@ -1653,7 +1653,7 @@ namespace WixToolset.Util | |||
1653 | sbSymbolicConstants.AppendFormat("#define LAST_{0}_COUNTER_OFFSET {1}\r\n", objectName, symbolConstantsCounter); | 1653 | sbSymbolicConstants.AppendFormat("#define LAST_{0}_COUNTER_OFFSET {1}\r\n", objectName, symbolConstantsCounter); |
1654 | 1654 | ||
1655 | // Add the calculated INI and H strings to the PerformanceCategory table. | 1655 | // Add the calculated INI and H strings to the PerformanceCategory table. |
1656 | section.AddTuple(new PerformanceCategoryTuple(sourceLineNumbers, id) | 1656 | section.AddSymbol(new PerformanceCategorySymbol(sourceLineNumbers, id) |
1657 | { | 1657 | { |
1658 | ComponentRef = componentId, | 1658 | ComponentRef = componentId, |
1659 | Name = name, | 1659 | Name = name, |
@@ -1666,15 +1666,15 @@ namespace WixToolset.Util | |||
1666 | var linkageKey = String.Format(@"SYSTEM\CurrentControlSet\Services\{0}\Linkage", escapedName); | 1666 | var linkageKey = String.Format(@"SYSTEM\CurrentControlSet\Services\{0}\Linkage", escapedName); |
1667 | var performanceKey = String.Format(@"SYSTEM\CurrentControlSet\Services\{0}\Performance", escapedName); | 1667 | var performanceKey = String.Format(@"SYSTEM\CurrentControlSet\Services\{0}\Performance", escapedName); |
1668 | 1668 | ||
1669 | this.ParseHelper.CreateRegistryTuple(section, sourceLineNumbers, RegistryRootType.LocalMachine, linkageKey, "Export", escapedName, componentId, false); | 1669 | this.ParseHelper.CreateRegistrySymbol(section, sourceLineNumbers, RegistryRootType.LocalMachine, linkageKey, "Export", escapedName, componentId, false); |
1670 | this.ParseHelper.CreateRegistryTuple(section, sourceLineNumbers, RegistryRootType.LocalMachine, performanceKey, "-", null, componentId, false); | 1670 | this.ParseHelper.CreateRegistrySymbol(section, sourceLineNumbers, RegistryRootType.LocalMachine, performanceKey, "-", null, componentId, false); |
1671 | this.ParseHelper.CreateRegistryTuple(section, sourceLineNumbers, RegistryRootType.LocalMachine, performanceKey, "Library", library, componentId, false); | 1671 | this.ParseHelper.CreateRegistrySymbol(section, sourceLineNumbers, RegistryRootType.LocalMachine, performanceKey, "Library", library, componentId, false); |
1672 | this.ParseHelper.CreateRegistryTuple(section, sourceLineNumbers, RegistryRootType.LocalMachine, performanceKey, "Open", openEntryPoint, componentId, false); | 1672 | this.ParseHelper.CreateRegistrySymbol(section, sourceLineNumbers, RegistryRootType.LocalMachine, performanceKey, "Open", openEntryPoint, componentId, false); |
1673 | this.ParseHelper.CreateRegistryTuple(section, sourceLineNumbers, RegistryRootType.LocalMachine, performanceKey, "Collect", collectEntryPoint, componentId, false); | 1673 | this.ParseHelper.CreateRegistrySymbol(section, sourceLineNumbers, RegistryRootType.LocalMachine, performanceKey, "Collect", collectEntryPoint, componentId, false); |
1674 | this.ParseHelper.CreateRegistryTuple(section, sourceLineNumbers, RegistryRootType.LocalMachine, performanceKey, "Close", closeEntryPoint, componentId, false); | 1674 | this.ParseHelper.CreateRegistrySymbol(section, sourceLineNumbers, RegistryRootType.LocalMachine, performanceKey, "Close", closeEntryPoint, componentId, false); |
1675 | this.ParseHelper.CreateRegistryTuple(section, sourceLineNumbers, RegistryRootType.LocalMachine, performanceKey, "IsMultiInstance", YesNoType.Yes == multiInstance ? "#1" : "#0", componentId, false); | 1675 | this.ParseHelper.CreateRegistrySymbol(section, sourceLineNumbers, RegistryRootType.LocalMachine, performanceKey, "IsMultiInstance", YesNoType.Yes == multiInstance ? "#1" : "#0", componentId, false); |
1676 | this.ParseHelper.CreateRegistryTuple(section, sourceLineNumbers, RegistryRootType.LocalMachine, performanceKey, "Counter Names", sbCounterNames.ToString(), componentId, false); | 1676 | this.ParseHelper.CreateRegistrySymbol(section, sourceLineNumbers, RegistryRootType.LocalMachine, performanceKey, "Counter Names", sbCounterNames.ToString(), componentId, false); |
1677 | this.ParseHelper.CreateRegistryTuple(section, sourceLineNumbers, RegistryRootType.LocalMachine, performanceKey, "Counter Types", sbCounterTypes.ToString(), componentId, false); | 1677 | this.ParseHelper.CreateRegistrySymbol(section, sourceLineNumbers, RegistryRootType.LocalMachine, performanceKey, "Counter Types", sbCounterTypes.ToString(), componentId, false); |
1678 | } | 1678 | } |
1679 | 1679 | ||
1680 | this.ParseHelper.CreateCustomActionReference(sourceLineNumbers, section, "InstallPerfCounterData", this.Context.Platform, CustomActionPlatforms.X86 | CustomActionPlatforms.X64 | CustomActionPlatforms.ARM | CustomActionPlatforms.ARM64); | 1680 | this.ParseHelper.CreateCustomActionReference(sourceLineNumbers, section, "InstallPerfCounterData", this.Context.Platform, CustomActionPlatforms.X86 | CustomActionPlatforms.X64 | CustomActionPlatforms.ARM | CustomActionPlatforms.ARM64); |
@@ -2148,7 +2148,7 @@ namespace WixToolset.Util | |||
2148 | 2148 | ||
2149 | if (!this.Messaging.EncounteredError) | 2149 | if (!this.Messaging.EncounteredError) |
2150 | { | 2150 | { |
2151 | section.AddTuple(new PerfmonTuple(sourceLineNumbers) | 2151 | section.AddSymbol(new PerfmonSymbol(sourceLineNumbers) |
2152 | { | 2152 | { |
2153 | ComponentRef = componentId, | 2153 | ComponentRef = componentId, |
2154 | File = $"[#{fileId}]", | 2154 | File = $"[#{fileId}]", |
@@ -2196,7 +2196,7 @@ namespace WixToolset.Util | |||
2196 | 2196 | ||
2197 | if (!this.Messaging.EncounteredError) | 2197 | if (!this.Messaging.EncounteredError) |
2198 | { | 2198 | { |
2199 | section.AddTuple(new PerfmonManifestTuple(sourceLineNumbers) | 2199 | section.AddSymbol(new PerfmonManifestSymbol(sourceLineNumbers) |
2200 | { | 2200 | { |
2201 | ComponentRef = componentId, | 2201 | ComponentRef = componentId, |
2202 | File = $"[#{fileId}]", | 2202 | File = $"[#{fileId}]", |
@@ -2250,13 +2250,13 @@ namespace WixToolset.Util | |||
2250 | { | 2250 | { |
2251 | this.ParseHelper.CreateCustomActionReference(sourceLineNumbers, section, "SchedFormatFiles", this.Context.Platform, CustomActionPlatforms.X86 | CustomActionPlatforms.X64 | CustomActionPlatforms.ARM | CustomActionPlatforms.ARM64); | 2251 | this.ParseHelper.CreateCustomActionReference(sourceLineNumbers, section, "SchedFormatFiles", this.Context.Platform, CustomActionPlatforms.X86 | CustomActionPlatforms.X64 | CustomActionPlatforms.ARM | CustomActionPlatforms.ARM64); |
2252 | 2252 | ||
2253 | section.AddTuple(new WixFormatFilesTuple(sourceLineNumbers) | 2253 | section.AddSymbol(new WixFormatFilesSymbol(sourceLineNumbers) |
2254 | { | 2254 | { |
2255 | BinaryRef = binaryId, | 2255 | BinaryRef = binaryId, |
2256 | FileRef = fileId, | 2256 | FileRef = fileId, |
2257 | }); | 2257 | }); |
2258 | 2258 | ||
2259 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, TupleDefinitions.Binary, binaryId); | 2259 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, SymbolDefinitions.Binary, binaryId); |
2260 | } | 2260 | } |
2261 | } | 2261 | } |
2262 | 2262 | ||
@@ -2303,7 +2303,7 @@ namespace WixToolset.Util | |||
2303 | 2303 | ||
2304 | if (!this.Messaging.EncounteredError) | 2304 | if (!this.Messaging.EncounteredError) |
2305 | { | 2305 | { |
2306 | section.AddTuple(new EventManifestTuple(sourceLineNumbers) | 2306 | section.AddSymbol(new EventManifestSymbol(sourceLineNumbers) |
2307 | { | 2307 | { |
2308 | ComponentRef = componentId, | 2308 | ComponentRef = componentId, |
2309 | File = $"[#{fileId}]", | 2309 | File = $"[#{fileId}]", |
@@ -2311,7 +2311,7 @@ namespace WixToolset.Util | |||
2311 | 2311 | ||
2312 | if (null != messageFile) | 2312 | if (null != messageFile) |
2313 | { | 2313 | { |
2314 | section.AddTuple(new XmlFileTuple(sourceLineNumbers, new Identifier(AccessModifier.Private, $"Config_{fileId}MessageFile")) | 2314 | section.AddSymbol(new XmlFileSymbol(sourceLineNumbers, new Identifier(AccessModifier.Private, $"Config_{fileId}MessageFile")) |
2315 | { | 2315 | { |
2316 | File = $"[#{fileId}]", | 2316 | File = $"[#{fileId}]", |
2317 | ElementPath = "/*/*/*/*[\\[]@messageFileName[\\]]", | 2317 | ElementPath = "/*/*/*/*[\\[]@messageFileName[\\]]", |
@@ -2323,7 +2323,7 @@ namespace WixToolset.Util | |||
2323 | } | 2323 | } |
2324 | if (null != parameterFile) | 2324 | if (null != parameterFile) |
2325 | { | 2325 | { |
2326 | section.AddTuple(new XmlFileTuple(sourceLineNumbers, new Identifier(AccessModifier.Private, $"Config_{fileId}ParameterFile")) | 2326 | section.AddSymbol(new XmlFileSymbol(sourceLineNumbers, new Identifier(AccessModifier.Private, $"Config_{fileId}ParameterFile")) |
2327 | { | 2327 | { |
2328 | File = $"[#{fileId}]", | 2328 | File = $"[#{fileId}]", |
2329 | ElementPath = "/*/*/*/*[\\[]@parameterFileName[\\]]", | 2329 | ElementPath = "/*/*/*/*[\\[]@parameterFileName[\\]]", |
@@ -2335,7 +2335,7 @@ namespace WixToolset.Util | |||
2335 | } | 2335 | } |
2336 | if (null != resourceFile) | 2336 | if (null != resourceFile) |
2337 | { | 2337 | { |
2338 | section.AddTuple(new XmlFileTuple(sourceLineNumbers, new Identifier(AccessModifier.Private, $"Config_{fileId}ResourceFile")) | 2338 | section.AddSymbol(new XmlFileSymbol(sourceLineNumbers, new Identifier(AccessModifier.Private, $"Config_{fileId}ResourceFile")) |
2339 | { | 2339 | { |
2340 | File = $"[#{fileId}]", | 2340 | File = $"[#{fileId}]", |
2341 | ElementPath = "/*/*/*/*[\\[]@resourceFileName[\\]]", | 2341 | ElementPath = "/*/*/*/*[\\[]@resourceFileName[\\]]", |
@@ -2463,7 +2463,7 @@ namespace WixToolset.Util | |||
2463 | this.ParseHelper.CreateCustomActionReference(sourceLineNumbers, section, "SchedSecureObjects", this.Context.Platform, CustomActionPlatforms.X86 | CustomActionPlatforms.X64 | CustomActionPlatforms.ARM | CustomActionPlatforms.ARM64); | 2463 | this.ParseHelper.CreateCustomActionReference(sourceLineNumbers, section, "SchedSecureObjects", this.Context.Platform, CustomActionPlatforms.X86 | CustomActionPlatforms.X64 | CustomActionPlatforms.ARM | CustomActionPlatforms.ARM64); |
2464 | 2464 | ||
2465 | var id = this.ParseHelper.CreateIdentifier("sec", objectId, tableName, domain, user); | 2465 | var id = this.ParseHelper.CreateIdentifier("sec", objectId, tableName, domain, user); |
2466 | section.AddTuple(new SecureObjectsTuple(sourceLineNumbers, id) | 2466 | section.AddSymbol(new SecureObjectsSymbol(sourceLineNumbers, id) |
2467 | { | 2467 | { |
2468 | SecureObject = objectId, | 2468 | SecureObject = objectId, |
2469 | Table = tableName, | 2469 | Table = tableName, |
@@ -2550,7 +2550,7 @@ namespace WixToolset.Util | |||
2550 | 2550 | ||
2551 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element); | 2551 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element); |
2552 | 2552 | ||
2553 | this.ParseHelper.CreateWixSearchTuple(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, null); | 2553 | this.ParseHelper.CreateWixSearchSymbol(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, null); |
2554 | 2554 | ||
2555 | if (!this.Messaging.EncounteredError) | 2555 | if (!this.Messaging.EncounteredError) |
2556 | { | 2556 | { |
@@ -2577,7 +2577,7 @@ namespace WixToolset.Util | |||
2577 | attributes |= WixProductSearchAttributes.UpgradeCode; | 2577 | attributes |= WixProductSearchAttributes.UpgradeCode; |
2578 | } | 2578 | } |
2579 | 2579 | ||
2580 | section.AddTuple(new WixProductSearchTuple(sourceLineNumbers, id) | 2580 | section.AddSymbol(new WixProductSearchSymbol(sourceLineNumbers, id) |
2581 | { | 2581 | { |
2582 | Guid = productCode ?? upgradeCode, | 2582 | Guid = productCode ?? upgradeCode, |
2583 | Attributes = attributes, | 2583 | Attributes = attributes, |
@@ -2720,11 +2720,11 @@ namespace WixToolset.Util | |||
2720 | 2720 | ||
2721 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element); | 2721 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element); |
2722 | 2722 | ||
2723 | this.ParseHelper.CreateWixSearchTuple(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, null); | 2723 | this.ParseHelper.CreateWixSearchSymbol(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, null); |
2724 | 2724 | ||
2725 | if (!this.Messaging.EncounteredError) | 2725 | if (!this.Messaging.EncounteredError) |
2726 | { | 2726 | { |
2727 | section.AddTuple(new WixRegistrySearchTuple(sourceLineNumbers, id) | 2727 | section.AddSymbol(new WixRegistrySearchSymbol(sourceLineNumbers, id) |
2728 | { | 2728 | { |
2729 | Root = root.Value, | 2729 | Root = root.Value, |
2730 | Key = key, | 2730 | Key = key, |
@@ -2811,7 +2811,7 @@ namespace WixToolset.Util | |||
2811 | { | 2811 | { |
2812 | this.ParseHelper.CreateCustomActionReference(sourceLineNumbers, section, "RemoveFoldersEx", this.Context.Platform, CustomActionPlatforms.X86 | CustomActionPlatforms.X64 | CustomActionPlatforms.ARM | CustomActionPlatforms.ARM64); | 2812 | this.ParseHelper.CreateCustomActionReference(sourceLineNumbers, section, "RemoveFoldersEx", this.Context.Platform, CustomActionPlatforms.X86 | CustomActionPlatforms.X64 | CustomActionPlatforms.ARM | CustomActionPlatforms.ARM64); |
2813 | 2813 | ||
2814 | section.AddTuple(new WixRemoveFolderExTuple(sourceLineNumbers, id) | 2814 | section.AddSymbol(new WixRemoveFolderExSymbol(sourceLineNumbers, id) |
2815 | { | 2815 | { |
2816 | ComponentRef = componentId, | 2816 | ComponentRef = componentId, |
2817 | Property = property, | 2817 | Property = property, |
@@ -2887,7 +2887,7 @@ namespace WixToolset.Util | |||
2887 | { | 2887 | { |
2888 | this.ParseHelper.CreateCustomActionReference(sourceLineNumbers, section, "RegisterRestartResources", this.Context.Platform, CustomActionPlatforms.X86 | CustomActionPlatforms.X64 | CustomActionPlatforms.ARM | CustomActionPlatforms.ARM64); | 2888 | this.ParseHelper.CreateCustomActionReference(sourceLineNumbers, section, "RegisterRestartResources", this.Context.Platform, CustomActionPlatforms.X86 | CustomActionPlatforms.X64 | CustomActionPlatforms.ARM | CustomActionPlatforms.ARM64); |
2889 | 2889 | ||
2890 | section.AddTuple(new WixRestartResourceTuple(sourceLineNumbers, id) | 2890 | section.AddSymbol(new WixRestartResourceSymbol(sourceLineNumbers, id) |
2891 | { | 2891 | { |
2892 | ComponentRef = componentId, | 2892 | ComponentRef = componentId, |
2893 | Resource = resource, | 2893 | Resource = resource, |
@@ -2979,7 +2979,7 @@ namespace WixToolset.Util | |||
2979 | { | 2979 | { |
2980 | this.ParseHelper.CreateCustomActionReference(sourceLineNumbers, section, "SchedServiceConfig", this.Context.Platform, CustomActionPlatforms.X86 | CustomActionPlatforms.X64 | CustomActionPlatforms.ARM | CustomActionPlatforms.ARM64); | 2980 | this.ParseHelper.CreateCustomActionReference(sourceLineNumbers, section, "SchedServiceConfig", this.Context.Platform, CustomActionPlatforms.X86 | CustomActionPlatforms.X64 | CustomActionPlatforms.ARM | CustomActionPlatforms.ARM64); |
2981 | 2981 | ||
2982 | section.AddTuple(new ServiceConfigTuple(sourceLineNumbers) | 2982 | section.AddSymbol(new ServiceConfigSymbol(sourceLineNumbers) |
2983 | { | 2983 | { |
2984 | ServiceName = serviceName, | 2984 | ServiceName = serviceName, |
2985 | ComponentRef = componentId, | 2985 | ComponentRef = componentId, |
@@ -3074,7 +3074,7 @@ namespace WixToolset.Util | |||
3074 | 3074 | ||
3075 | if (!this.Messaging.EncounteredError) | 3075 | if (!this.Messaging.EncounteredError) |
3076 | { | 3076 | { |
3077 | section.AddTuple(new WixTouchFileTuple(sourceLineNumbers, id) | 3077 | section.AddSymbol(new WixTouchFileSymbol(sourceLineNumbers, id) |
3078 | { | 3078 | { |
3079 | ComponentRef = componentId, | 3079 | ComponentRef = componentId, |
3080 | Path = path, | 3080 | Path = path, |
@@ -3290,7 +3290,7 @@ namespace WixToolset.Util | |||
3290 | 3290 | ||
3291 | if (!this.Messaging.EncounteredError) | 3291 | if (!this.Messaging.EncounteredError) |
3292 | { | 3292 | { |
3293 | section.AddTuple(new UserTuple(sourceLineNumbers, id) | 3293 | section.AddSymbol(new UserSymbol(sourceLineNumbers, id) |
3294 | { | 3294 | { |
3295 | ComponentRef = componentId, | 3295 | ComponentRef = componentId, |
3296 | Name = name, | 3296 | Name = name, |
@@ -3424,7 +3424,7 @@ namespace WixToolset.Util | |||
3424 | 3424 | ||
3425 | if (!this.Messaging.EncounteredError) | 3425 | if (!this.Messaging.EncounteredError) |
3426 | { | 3426 | { |
3427 | var tuple = section.AddTuple(new XmlFileTuple(sourceLineNumbers, id) | 3427 | var symbol = section.AddSymbol(new XmlFileSymbol(sourceLineNumbers, id) |
3428 | { | 3428 | { |
3429 | File = file, | 3429 | File = file, |
3430 | ElementPath = elementPath, | 3430 | ElementPath = elementPath, |
@@ -3435,7 +3435,7 @@ namespace WixToolset.Util | |||
3435 | }); | 3435 | }); |
3436 | if (-1 != sequence) | 3436 | if (-1 != sequence) |
3437 | { | 3437 | { |
3438 | tuple.Sequence = sequence; | 3438 | symbol.Sequence = sequence; |
3439 | } | 3439 | } |
3440 | } | 3440 | } |
3441 | 3441 | ||
@@ -3603,7 +3603,7 @@ namespace WixToolset.Util | |||
3603 | this.Messaging.Write(ErrorMessages.IllegalAttributeWithOtherAttributes(sourceLineNumbers, element.Name.LocalName, "ElementId", "Action", "Node", "On")); | 3603 | this.Messaging.Write(ErrorMessages.IllegalAttributeWithOtherAttributes(sourceLineNumbers, element.Name.LocalName, "ElementId", "Action", "Node", "On")); |
3604 | } | 3604 | } |
3605 | 3605 | ||
3606 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, UtilTupleDefinitions.XmlConfig, elementId); | 3606 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, UtilSymbolDefinitions.XmlConfig, elementId); |
3607 | } | 3607 | } |
3608 | 3608 | ||
3609 | var innerText = this.ParseHelper.GetTrimmedInnerText(element); | 3609 | var innerText = this.ParseHelper.GetTrimmedInnerText(element); |
@@ -3653,7 +3653,7 @@ namespace WixToolset.Util | |||
3653 | 3653 | ||
3654 | if (!this.Messaging.EncounteredError) | 3654 | if (!this.Messaging.EncounteredError) |
3655 | { | 3655 | { |
3656 | var tuple = section.AddTuple(new XmlConfigTuple(sourceLineNumbers, id) | 3656 | var symbol = section.AddSymbol(new XmlConfigSymbol(sourceLineNumbers, id) |
3657 | { | 3657 | { |
3658 | File = file, | 3658 | File = file, |
3659 | ElementPath = elementId ?? elementPath, | 3659 | ElementPath = elementId ?? elementPath, |
@@ -3665,7 +3665,7 @@ namespace WixToolset.Util | |||
3665 | }); | 3665 | }); |
3666 | if (CompilerConstants.IntegerNotSet != sequence) | 3666 | if (CompilerConstants.IntegerNotSet != sequence) |
3667 | { | 3667 | { |
3668 | tuple.Sequence = sequence; | 3668 | symbol.Sequence = sequence; |
3669 | } | 3669 | } |
3670 | } | 3670 | } |
3671 | 3671 | ||