main
cs 116 lines 5.25 KB
Raw
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.Data
4 {
5 using WixToolset.Data.Symbols;
6
7 public static partial class SymbolDefinitions
8 {
9 public static readonly IntermediateSymbolDefinition MsiServiceConfigFailureActions = new IntermediateSymbolDefinition(
10 SymbolDefinitionType.MsiServiceConfigFailureActions,
11 new[]
12 {
13 new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.Name), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.OnInstall), IntermediateFieldType.Bool),
15 new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.OnReinstall), IntermediateFieldType.Bool),
16 new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.OnUninstall), IntermediateFieldType.Bool),
17 new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.ResetPeriod), IntermediateFieldType.Number),
18 new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.RebootMessage), IntermediateFieldType.String),
19 new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.Command), IntermediateFieldType.String),
20 new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.Actions), IntermediateFieldType.String),
21 new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.DelayActions), IntermediateFieldType.String),
22 new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.ComponentRef), IntermediateFieldType.String),
23 },
24 typeof(MsiServiceConfigFailureActionsSymbol));
25 }
26 }
27
28 namespace WixToolset.Data.Symbols
29 {
30 public enum MsiServiceConfigFailureActionsSymbolFields
31 {
32 Name,
33 OnInstall,
34 OnReinstall,
35 OnUninstall,
36 ResetPeriod,
37 RebootMessage,
38 Command,
39 Actions,
40 DelayActions,
41 ComponentRef,
42 }
43
44 public class MsiServiceConfigFailureActionsSymbol : IntermediateSymbol
45 {
46 public MsiServiceConfigFailureActionsSymbol() : base(SymbolDefinitions.MsiServiceConfigFailureActions, null, null)
47 {
48 }
49
50 public MsiServiceConfigFailureActionsSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiServiceConfigFailureActions, sourceLineNumber, id)
51 {
52 }
53
54 public IntermediateField this[MsiServiceConfigFailureActionsSymbolFields index] => this.Fields[(int)index];
55
56 public string Name
57 {
58 get => (string)this.Fields[(int)MsiServiceConfigFailureActionsSymbolFields.Name];
59 set => this.Set((int)MsiServiceConfigFailureActionsSymbolFields.Name, value);
60 }
61
62 public bool OnInstall
63 {
64 get => this.Fields[(int)MsiServiceConfigFailureActionsSymbolFields.OnInstall].AsBool();
65 set => this.Set((int)MsiServiceConfigFailureActionsSymbolFields.OnInstall, value);
66 }
67
68 public bool OnReinstall
69 {
70 get => this.Fields[(int)MsiServiceConfigFailureActionsSymbolFields.OnReinstall].AsBool();
71 set => this.Set((int)MsiServiceConfigFailureActionsSymbolFields.OnReinstall, value);
72 }
73
74 public bool OnUninstall
75 {
76 get => this.Fields[(int)MsiServiceConfigFailureActionsSymbolFields.OnUninstall].AsBool();
77 set => this.Set((int)MsiServiceConfigFailureActionsSymbolFields.OnUninstall, value);
78 }
79
80 public int? ResetPeriod
81 {
82 get => (int?)this.Fields[(int)MsiServiceConfigFailureActionsSymbolFields.ResetPeriod];
83 set => this.Set((int)MsiServiceConfigFailureActionsSymbolFields.ResetPeriod, value);
84 }
85
86 public string RebootMessage
87 {
88 get => (string)this.Fields[(int)MsiServiceConfigFailureActionsSymbolFields.RebootMessage];
89 set => this.Set((int)MsiServiceConfigFailureActionsSymbolFields.RebootMessage, value);
90 }
91
92 public string Command
93 {
94 get => (string)this.Fields[(int)MsiServiceConfigFailureActionsSymbolFields.Command];
95 set => this.Set((int)MsiServiceConfigFailureActionsSymbolFields.Command, value);
96 }
97
98 public string Actions
99 {
100 get => (string)this.Fields[(int)MsiServiceConfigFailureActionsSymbolFields.Actions];
101 set => this.Set((int)MsiServiceConfigFailureActionsSymbolFields.Actions, value);
102 }
103
104 public string DelayActions
105 {
106 get => (string)this.Fields[(int)MsiServiceConfigFailureActionsSymbolFields.DelayActions];
107 set => this.Set((int)MsiServiceConfigFailureActionsSymbolFields.DelayActions, value);
108 }
109
110 public string ComponentRef
111 {
112 get => (string)this.Fields[(int)MsiServiceConfigFailureActionsSymbolFields.ComponentRef];
113 set => this.Set((int)MsiServiceConfigFailureActionsSymbolFields.ComponentRef, value);
114 }
115 }
116 }