diff options
Diffstat (limited to 'src/ext/Util/wixext/Symbols/WixRemoveRegistryKeyExSymbol.cs')
-rw-r--r-- | src/ext/Util/wixext/Symbols/WixRemoveRegistryKeyExSymbol.cs | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/src/ext/Util/wixext/Symbols/WixRemoveRegistryKeyExSymbol.cs b/src/ext/Util/wixext/Symbols/WixRemoveRegistryKeyExSymbol.cs new file mode 100644 index 00000000..8e4bd212 --- /dev/null +++ b/src/ext/Util/wixext/Symbols/WixRemoveRegistryKeyExSymbol.cs | |||
@@ -0,0 +1,86 @@ | |||
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 | |||
3 | namespace WixToolset.Util | ||
4 | { | ||
5 | using WixToolset.Data; | ||
6 | using WixToolset.Util.Symbols; | ||
7 | |||
8 | public static partial class UtilSymbolDefinitions | ||
9 | { | ||
10 | public static readonly IntermediateSymbolDefinition WixRemoveRegistryKeyEx = new IntermediateSymbolDefinition( | ||
11 | UtilSymbolDefinitionType.WixRemoveRegistryKeyEx.ToString(), | ||
12 | new[] | ||
13 | { | ||
14 | new IntermediateFieldDefinition(nameof(WixRemoveRegistryKeyExSymbolFields.ComponentRef), IntermediateFieldType.String), | ||
15 | new IntermediateFieldDefinition(nameof(WixRemoveRegistryKeyExSymbolFields.Root), IntermediateFieldType.Number), | ||
16 | new IntermediateFieldDefinition(nameof(WixRemoveRegistryKeyExSymbolFields.Key), IntermediateFieldType.String), | ||
17 | new IntermediateFieldDefinition(nameof(WixRemoveRegistryKeyExSymbolFields.InstallMode), IntermediateFieldType.Number), | ||
18 | new IntermediateFieldDefinition(nameof(WixRemoveRegistryKeyExSymbolFields.Condition), IntermediateFieldType.String), | ||
19 | }, | ||
20 | typeof(WixRemoveRegistryKeyExSymbol)); | ||
21 | } | ||
22 | } | ||
23 | |||
24 | namespace WixToolset.Util.Symbols | ||
25 | { | ||
26 | using WixToolset.Data; | ||
27 | using WixToolset.Data.Symbols; | ||
28 | |||
29 | public enum WixRemoveRegistryKeyExSymbolFields | ||
30 | { | ||
31 | ComponentRef, | ||
32 | Root, | ||
33 | Key, | ||
34 | InstallMode, | ||
35 | Condition, | ||
36 | } | ||
37 | |||
38 | public enum WixRemoveRegistryKeyExInstallMode | ||
39 | { | ||
40 | Install = 1, | ||
41 | Uninstall = 2, | ||
42 | } | ||
43 | |||
44 | public class WixRemoveRegistryKeyExSymbol : IntermediateSymbol | ||
45 | { | ||
46 | public WixRemoveRegistryKeyExSymbol() : base(UtilSymbolDefinitions.WixRemoveRegistryKeyEx, null, null) | ||
47 | { | ||
48 | } | ||
49 | |||
50 | public WixRemoveRegistryKeyExSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(UtilSymbolDefinitions.WixRemoveRegistryKeyEx, sourceLineNumber, id) | ||
51 | { | ||
52 | } | ||
53 | |||
54 | public IntermediateField this[WixRemoveRegistryKeyExSymbolFields index] => this.Fields[(int)index]; | ||
55 | |||
56 | public string ComponentRef | ||
57 | { | ||
58 | get => this.Fields[(int)WixRemoveRegistryKeyExSymbolFields.ComponentRef].AsString(); | ||
59 | set => this.Set((int)WixRemoveRegistryKeyExSymbolFields.ComponentRef, value); | ||
60 | } | ||
61 | |||
62 | public RegistryRootType Root | ||
63 | { | ||
64 | get => (RegistryRootType)this.Fields[(int)WixRemoveRegistryKeyExSymbolFields.Root].AsNumber(); | ||
65 | set => this.Set((int)WixRemoveRegistryKeyExSymbolFields.Root, (int)value); | ||
66 | } | ||
67 | |||
68 | public string Key | ||
69 | { | ||
70 | get => (string)this.Fields[(int)WixRemoveRegistryKeyExSymbolFields.Key]; | ||
71 | set => this.Set((int)WixRemoveRegistryKeyExSymbolFields.Key, value); | ||
72 | } | ||
73 | |||
74 | public WixRemoveRegistryKeyExInstallMode InstallMode | ||
75 | { | ||
76 | get => (WixRemoveRegistryKeyExInstallMode)this.Fields[(int)WixRemoveRegistryKeyExSymbolFields.InstallMode].AsNumber(); | ||
77 | set => this.Set((int)WixRemoveRegistryKeyExSymbolFields.InstallMode, (int)value); | ||
78 | } | ||
79 | |||
80 | public string Condition | ||
81 | { | ||
82 | get => this.Fields[(int)WixRemoveRegistryKeyExSymbolFields.Condition].AsString(); | ||
83 | set => this.Set((int)WixRemoveRegistryKeyExSymbolFields.Condition, value); | ||
84 | } | ||
85 | } | ||
86 | } | ||