diff options
Diffstat (limited to '')
-rw-r--r-- | src/WixToolset.Data/Tuples/RemoveRegistryTuple.cs | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/src/WixToolset.Data/Tuples/RemoveRegistryTuple.cs b/src/WixToolset.Data/Tuples/RemoveRegistryTuple.cs index 154aad67..89c8d2e2 100644 --- a/src/WixToolset.Data/Tuples/RemoveRegistryTuple.cs +++ b/src/WixToolset.Data/Tuples/RemoveRegistryTuple.cs | |||
@@ -10,10 +10,10 @@ namespace WixToolset.Data | |||
10 | TupleDefinitionType.RemoveRegistry, | 10 | TupleDefinitionType.RemoveRegistry, |
11 | new[] | 11 | new[] |
12 | { | 12 | { |
13 | new IntermediateFieldDefinition(nameof(RemoveRegistryTupleFields.RemoveRegistry), IntermediateFieldType.String), | ||
14 | new IntermediateFieldDefinition(nameof(RemoveRegistryTupleFields.Root), IntermediateFieldType.Number), | 13 | new IntermediateFieldDefinition(nameof(RemoveRegistryTupleFields.Root), IntermediateFieldType.Number), |
15 | new IntermediateFieldDefinition(nameof(RemoveRegistryTupleFields.Key), IntermediateFieldType.String), | 14 | new IntermediateFieldDefinition(nameof(RemoveRegistryTupleFields.Key), IntermediateFieldType.String), |
16 | new IntermediateFieldDefinition(nameof(RemoveRegistryTupleFields.Name), IntermediateFieldType.String), | 15 | new IntermediateFieldDefinition(nameof(RemoveRegistryTupleFields.Name), IntermediateFieldType.String), |
16 | new IntermediateFieldDefinition(nameof(RemoveRegistryTupleFields.Action), IntermediateFieldType.Number), | ||
17 | new IntermediateFieldDefinition(nameof(RemoveRegistryTupleFields.Component_), IntermediateFieldType.String), | 17 | new IntermediateFieldDefinition(nameof(RemoveRegistryTupleFields.Component_), IntermediateFieldType.String), |
18 | }, | 18 | }, |
19 | typeof(RemoveRegistryTuple)); | 19 | typeof(RemoveRegistryTuple)); |
@@ -24,13 +24,19 @@ namespace WixToolset.Data.Tuples | |||
24 | { | 24 | { |
25 | public enum RemoveRegistryTupleFields | 25 | public enum RemoveRegistryTupleFields |
26 | { | 26 | { |
27 | RemoveRegistry, | ||
28 | Root, | 27 | Root, |
29 | Key, | 28 | Key, |
30 | Name, | 29 | Name, |
30 | Action, | ||
31 | Component_, | 31 | Component_, |
32 | } | 32 | } |
33 | 33 | ||
34 | public enum RemoveRegistryActionType | ||
35 | { | ||
36 | RemoveOnInstall, | ||
37 | RemoveOnUninstall | ||
38 | }; | ||
39 | |||
34 | public class RemoveRegistryTuple : IntermediateTuple | 40 | public class RemoveRegistryTuple : IntermediateTuple |
35 | { | 41 | { |
36 | public RemoveRegistryTuple() : base(TupleDefinitions.RemoveRegistry, null, null) | 42 | public RemoveRegistryTuple() : base(TupleDefinitions.RemoveRegistry, null, null) |
@@ -43,16 +49,10 @@ namespace WixToolset.Data.Tuples | |||
43 | 49 | ||
44 | public IntermediateField this[RemoveRegistryTupleFields index] => this.Fields[(int)index]; | 50 | public IntermediateField this[RemoveRegistryTupleFields index] => this.Fields[(int)index]; |
45 | 51 | ||
46 | public string RemoveRegistry | 52 | public RegistryRootType Root |
47 | { | ||
48 | get => (string)this.Fields[(int)RemoveRegistryTupleFields.RemoveRegistry]?.Value; | ||
49 | set => this.Set((int)RemoveRegistryTupleFields.RemoveRegistry, value); | ||
50 | } | ||
51 | |||
52 | public int Root | ||
53 | { | 53 | { |
54 | get => (int)this.Fields[(int)RemoveRegistryTupleFields.Root]?.Value; | 54 | get => (RegistryRootType)this.Fields[(int)RemoveRegistryTupleFields.Key]?.AsNumber(); |
55 | set => this.Set((int)RemoveRegistryTupleFields.Root, value); | 55 | set => this.Set((int)RemoveRegistryTupleFields.Root, (int)value); |
56 | } | 56 | } |
57 | 57 | ||
58 | public string Key | 58 | public string Key |
@@ -67,6 +67,12 @@ namespace WixToolset.Data.Tuples | |||
67 | set => this.Set((int)RemoveRegistryTupleFields.Name, value); | 67 | set => this.Set((int)RemoveRegistryTupleFields.Name, value); |
68 | } | 68 | } |
69 | 69 | ||
70 | public RemoveRegistryActionType Action | ||
71 | { | ||
72 | get => (RemoveRegistryActionType)this.Fields[(int)RemoveRegistryTupleFields.Action].AsNumber(); | ||
73 | set => this.Set((int)RemoveRegistryTupleFields.Action, (int)value); | ||
74 | } | ||
75 | |||
70 | public string Component_ | 76 | public string Component_ |
71 | { | 77 | { |
72 | get => (string)this.Fields[(int)RemoveRegistryTupleFields.Component_]?.Value; | 78 | get => (string)this.Fields[(int)RemoveRegistryTupleFields.Component_]?.Value; |