aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2022-02-23 15:16:49 -0800
committerRob Mensching <rob@firegiant.com>2022-02-23 18:33:52 -0800
commita19f847fe38ad9df88a0dc61ec2caa8ea0cd507f (patch)
tree2ba8c9c7054acd08b8a1d6762b68785bf1d93d19
parentbc101e0424d627ca79f79b30e9fccf61db722466 (diff)
downloadwix-a19f847fe38ad9df88a0dc61ec2caa8ea0cd507f.tar.gz
wix-a19f847fe38ad9df88a0dc61ec2caa8ea0cd507f.tar.bz2
wix-a19f847fe38ad9df88a0dc61ec2caa8ea0cd507f.zip
Rename WixProductTagSymbol to WixPackageTagSymbol
-rw-r--r--src/api/wix/WixToolset.Data/Symbols/SymbolDefinitions.cs6
-rw-r--r--src/api/wix/WixToolset.Data/Symbols/WixPackageTagSymbol.cs68
-rw-r--r--src/api/wix/WixToolset.Data/Symbols/WixProductTagSymbol.cs68
-rw-r--r--src/wix/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs2
-rw-r--r--src/wix/WixToolset.Core.WindowsInstaller/Bind/CreateWindowsInstallerDataFromIRCommand.cs2
-rw-r--r--src/wix/WixToolset.Core.WindowsInstaller/Bind/ProcessPackageSoftwareTagsCommand.cs4
-rw-r--r--src/wix/WixToolset.Core/Compiler_Tag.cs2
7 files changed, 76 insertions, 76 deletions
diff --git a/src/api/wix/WixToolset.Data/Symbols/SymbolDefinitions.cs b/src/api/wix/WixToolset.Data/Symbols/SymbolDefinitions.cs
index 0ed0a4ec..ad7646a7 100644
--- a/src/api/wix/WixToolset.Data/Symbols/SymbolDefinitions.cs
+++ b/src/api/wix/WixToolset.Data/Symbols/SymbolDefinitions.cs
@@ -179,7 +179,7 @@ namespace WixToolset.Data
179 WixPatchRef, 179 WixPatchRef,
180 WixPatchTarget, 180 WixPatchTarget,
181 WixProductSearch, 181 WixProductSearch,
182 WixProductTag, 182 WixPackageTag,
183 WixProperty, 183 WixProperty,
184 WixRegistrySearch, 184 WixRegistrySearch,
185 WixRelatedBundle, 185 WixRelatedBundle,
@@ -729,8 +729,8 @@ namespace WixToolset.Data
729 case SymbolDefinitionType.WixProductSearch: 729 case SymbolDefinitionType.WixProductSearch:
730 return SymbolDefinitions.WixProductSearch; 730 return SymbolDefinitions.WixProductSearch;
731 731
732 case SymbolDefinitionType.WixProductTag: 732 case SymbolDefinitionType.WixPackageTag:
733 return SymbolDefinitions.WixProductTag; 733 return SymbolDefinitions.WixPackageTag;
734 734
735 case SymbolDefinitionType.WixProperty: 735 case SymbolDefinitionType.WixProperty:
736 return SymbolDefinitions.WixProperty; 736 return SymbolDefinitions.WixProperty;
diff --git a/src/api/wix/WixToolset.Data/Symbols/WixPackageTagSymbol.cs b/src/api/wix/WixToolset.Data/Symbols/WixPackageTagSymbol.cs
new file mode 100644
index 00000000..eca21555
--- /dev/null
+++ b/src/api/wix/WixToolset.Data/Symbols/WixPackageTagSymbol.cs
@@ -0,0 +1,68 @@
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.Data
4{
5 using WixToolset.Data.Symbols;
6
7 public static partial class SymbolDefinitions
8 {
9 public static readonly IntermediateSymbolDefinition WixPackageTag = new IntermediateSymbolDefinition(
10 SymbolDefinitionType.WixPackageTag,
11 new[]
12 {
13 new IntermediateFieldDefinition(nameof(WixPackageTagSymbolFields.FileRef), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(WixPackageTagSymbolFields.Regid), IntermediateFieldType.String),
15 new IntermediateFieldDefinition(nameof(WixPackageTagSymbolFields.Name), IntermediateFieldType.String),
16 new IntermediateFieldDefinition(nameof(WixPackageTagSymbolFields.Attributes), IntermediateFieldType.Number)
17 },
18 typeof(WixPackageTagSymbol));
19 }
20}
21
22namespace WixToolset.Data.Symbols
23{
24 public enum WixPackageTagSymbolFields
25 {
26 FileRef,
27 Regid,
28 Name,
29 Attributes
30 }
31
32 public class WixPackageTagSymbol : IntermediateSymbol
33 {
34 public WixPackageTagSymbol() : base(SymbolDefinitions.WixPackageTag, null, null)
35 {
36 }
37
38 public WixPackageTagSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixPackageTag, sourceLineNumber, id)
39 {
40 }
41
42 public IntermediateField this[WixPackageTagSymbolFields index] => this.Fields[(int)index];
43
44 public string FileRef
45 {
46 get => this.Fields[(int)WixPackageTagSymbolFields.FileRef].AsString();
47 set => this.Set((int)WixPackageTagSymbolFields.FileRef, value);
48 }
49
50 public string Regid
51 {
52 get => this.Fields[(int)WixPackageTagSymbolFields.Regid].AsString();
53 set => this.Set((int)WixPackageTagSymbolFields.Regid, value);
54 }
55
56 public string Name
57 {
58 get => this.Fields[(int)WixPackageTagSymbolFields.Name].AsString();
59 set => this.Set((int)WixPackageTagSymbolFields.Name, value);
60 }
61
62 public int Attributes
63 {
64 get => this.Fields[(int)WixPackageTagSymbolFields.Attributes].AsNumber();
65 set => this.Set((int)WixPackageTagSymbolFields.Attributes, value);
66 }
67 }
68}
diff --git a/src/api/wix/WixToolset.Data/Symbols/WixProductTagSymbol.cs b/src/api/wix/WixToolset.Data/Symbols/WixProductTagSymbol.cs
deleted file mode 100644
index a2f1ed11..00000000
--- a/src/api/wix/WixToolset.Data/Symbols/WixProductTagSymbol.cs
+++ /dev/null
@@ -1,68 +0,0 @@
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.Data
4{
5 using WixToolset.Data.Symbols;
6
7 public static partial class SymbolDefinitions
8 {
9 public static readonly IntermediateSymbolDefinition WixProductTag = new IntermediateSymbolDefinition(
10 SymbolDefinitionType.WixProductTag,
11 new[]
12 {
13 new IntermediateFieldDefinition(nameof(WixProductTagSymbolFields.FileRef), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(WixProductTagSymbolFields.Regid), IntermediateFieldType.String),
15 new IntermediateFieldDefinition(nameof(WixProductTagSymbolFields.Name), IntermediateFieldType.String),
16 new IntermediateFieldDefinition(nameof(WixProductTagSymbolFields.Attributes), IntermediateFieldType.Number)
17 },
18 typeof(WixProductTagSymbol));
19 }
20}
21
22namespace WixToolset.Data.Symbols
23{
24 public enum WixProductTagSymbolFields
25 {
26 FileRef,
27 Regid,
28 Name,
29 Attributes
30 }
31
32 public class WixProductTagSymbol : IntermediateSymbol
33 {
34 public WixProductTagSymbol() : base(SymbolDefinitions.WixProductTag, null, null)
35 {
36 }
37
38 public WixProductTagSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixProductTag, sourceLineNumber, id)
39 {
40 }
41
42 public IntermediateField this[WixProductTagSymbolFields index] => this.Fields[(int)index];
43
44 public string FileRef
45 {
46 get => this.Fields[(int)WixProductTagSymbolFields.FileRef].AsString();
47 set => this.Set((int)WixProductTagSymbolFields.FileRef, value);
48 }
49
50 public string Regid
51 {
52 get => this.Fields[(int)WixProductTagSymbolFields.Regid].AsString();
53 set => this.Set((int)WixProductTagSymbolFields.Regid, value);
54 }
55
56 public string Name
57 {
58 get => this.Fields[(int)WixProductTagSymbolFields.Name].AsString();
59 set => this.Set((int)WixProductTagSymbolFields.Name, value);
60 }
61
62 public int Attributes
63 {
64 get => this.Fields[(int)WixProductTagSymbolFields.Attributes].AsNumber();
65 set => this.Set((int)WixProductTagSymbolFields.Attributes, value);
66 }
67 }
68}
diff --git a/src/wix/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs b/src/wix/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs
index c3dbcfce..f251dcc9 100644
--- a/src/wix/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs
+++ b/src/wix/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs
@@ -257,7 +257,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
257 // Process SoftwareTags in MSI packages. 257 // Process SoftwareTags in MSI packages.
258 if (SectionType.Product == section.Type) 258 if (SectionType.Product == section.Type)
259 { 259 {
260 var softwareTags = section.Symbols.OfType<WixProductTagSymbol>().ToList(); 260 var softwareTags = section.Symbols.OfType<WixPackageTagSymbol>().ToList();
261 261
262 if (softwareTags.Any()) 262 if (softwareTags.Any())
263 { 263 {
diff --git a/src/wix/WixToolset.Core.WindowsInstaller/Bind/CreateWindowsInstallerDataFromIRCommand.cs b/src/wix/WixToolset.Core.WindowsInstaller/Bind/CreateWindowsInstallerDataFromIRCommand.cs
index 98950a05..b1805e69 100644
--- a/src/wix/WixToolset.Core.WindowsInstaller/Bind/CreateWindowsInstallerDataFromIRCommand.cs
+++ b/src/wix/WixToolset.Core.WindowsInstaller/Bind/CreateWindowsInstallerDataFromIRCommand.cs
@@ -250,7 +250,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
250 case SymbolDefinitionType.WixPatchRef: 250 case SymbolDefinitionType.WixPatchRef:
251 case SymbolDefinitionType.WixPatchTarget: 251 case SymbolDefinitionType.WixPatchTarget:
252 case SymbolDefinitionType.WixProperty: 252 case SymbolDefinitionType.WixProperty:
253 case SymbolDefinitionType.WixProductTag: 253 case SymbolDefinitionType.WixPackageTag:
254 case SymbolDefinitionType.WixSimpleReference: 254 case SymbolDefinitionType.WixSimpleReference:
255 case SymbolDefinitionType.WixSuppressAction: 255 case SymbolDefinitionType.WixSuppressAction:
256 case SymbolDefinitionType.WixSuppressModularization: 256 case SymbolDefinitionType.WixSuppressModularization:
diff --git a/src/wix/WixToolset.Core.WindowsInstaller/Bind/ProcessPackageSoftwareTagsCommand.cs b/src/wix/WixToolset.Core.WindowsInstaller/Bind/ProcessPackageSoftwareTagsCommand.cs
index 68e11790..41dfbcf1 100644
--- a/src/wix/WixToolset.Core.WindowsInstaller/Bind/ProcessPackageSoftwareTagsCommand.cs
+++ b/src/wix/WixToolset.Core.WindowsInstaller/Bind/ProcessPackageSoftwareTagsCommand.cs
@@ -14,7 +14,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
14 14
15 internal class ProcessPackageSoftwareTagsCommand 15 internal class ProcessPackageSoftwareTagsCommand
16 { 16 {
17 public ProcessPackageSoftwareTagsCommand(IntermediateSection section, IBackendHelper backendHelper, IEnumerable<WixProductTagSymbol> softwareTags, string intermediateFolder) 17 public ProcessPackageSoftwareTagsCommand(IntermediateSection section, IBackendHelper backendHelper, IEnumerable<WixPackageTagSymbol> softwareTags, string intermediateFolder)
18 { 18 {
19 this.Section = section; 19 this.Section = section;
20 this.BackendHelper = backendHelper; 20 this.BackendHelper = backendHelper;
@@ -28,7 +28,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
28 28
29 private IBackendHelper BackendHelper { get; } 29 private IBackendHelper BackendHelper { get; }
30 30
31 private IEnumerable<WixProductTagSymbol> SoftwareTags { get; } 31 private IEnumerable<WixPackageTagSymbol> SoftwareTags { get; }
32 32
33 public IReadOnlyCollection<ITrackedFile> TrackedFiles { get; private set; } 33 public IReadOnlyCollection<ITrackedFile> TrackedFiles { get; private set; }
34 34
diff --git a/src/wix/WixToolset.Core/Compiler_Tag.cs b/src/wix/WixToolset.Core/Compiler_Tag.cs
index cf55c448..64341808 100644
--- a/src/wix/WixToolset.Core/Compiler_Tag.cs
+++ b/src/wix/WixToolset.Core/Compiler_Tag.cs
@@ -249,7 +249,7 @@ namespace WixToolset.Core
249 this.Core.CreateComplexReference(sourceLineNumbers, ComplexReferenceParentType.Feature, feature, null, ComplexReferenceChildType.Component, id.Id, true); 249 this.Core.CreateComplexReference(sourceLineNumbers, ComplexReferenceParentType.Feature, feature, null, ComplexReferenceChildType.Component, id.Id, true);
250 250
251 this.Core.EnsureTable(sourceLineNumbers, "SoftwareIdentificationTag"); 251 this.Core.EnsureTable(sourceLineNumbers, "SoftwareIdentificationTag");
252 this.Core.AddSymbol(new WixProductTagSymbol(sourceLineNumbers, id) 252 this.Core.AddSymbol(new WixPackageTagSymbol(sourceLineNumbers, id)
253 { 253 {
254 FileRef = id.Id, 254 FileRef = id.Id,
255 Regid = regid, 255 Regid = regid,