aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Tuples/ServiceControlTuple.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/WixToolset.Data/Tuples/ServiceControlTuple.cs56
1 files changed, 48 insertions, 8 deletions
diff --git a/src/WixToolset.Data/Tuples/ServiceControlTuple.cs b/src/WixToolset.Data/Tuples/ServiceControlTuple.cs
index a2cdc7a0..844ee864 100644
--- a/src/WixToolset.Data/Tuples/ServiceControlTuple.cs
+++ b/src/WixToolset.Data/Tuples/ServiceControlTuple.cs
@@ -12,9 +12,14 @@ namespace WixToolset.Data
12 { 12 {
13 new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.ServiceControl), IntermediateFieldType.String), 13 new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.ServiceControl), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.Name), IntermediateFieldType.String), 14 new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.Name), IntermediateFieldType.String),
15 new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.Event), IntermediateFieldType.Number), 15 new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.InstallRemove), IntermediateFieldType.Bool),
16 new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.UninstallRemove), IntermediateFieldType.Bool),
17 new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.InstallStart), IntermediateFieldType.Bool),
18 new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.UninstallStart), IntermediateFieldType.Bool),
19 new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.InstallStop), IntermediateFieldType.Bool),
20 new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.UninstallStop), IntermediateFieldType.Bool),
16 new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.Arguments), IntermediateFieldType.String), 21 new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.Arguments), IntermediateFieldType.String),
17 new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.Wait), IntermediateFieldType.Number), 22 new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.Wait), IntermediateFieldType.Bool),
18 new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.Component_), IntermediateFieldType.String), 23 new IntermediateFieldDefinition(nameof(ServiceControlTupleFields.Component_), IntermediateFieldType.String),
19 }, 24 },
20 typeof(ServiceControlTuple)); 25 typeof(ServiceControlTuple));
@@ -27,7 +32,12 @@ namespace WixToolset.Data.Tuples
27 { 32 {
28 ServiceControl, 33 ServiceControl,
29 Name, 34 Name,
30 Event, 35 InstallRemove,
36 UninstallRemove,
37 InstallStart,
38 UninstallStart,
39 InstallStop,
40 UninstallStop,
31 Arguments, 41 Arguments,
32 Wait, 42 Wait,
33 Component_, 43 Component_,
@@ -57,10 +67,40 @@ namespace WixToolset.Data.Tuples
57 set => this.Set((int)ServiceControlTupleFields.Name, value); 67 set => this.Set((int)ServiceControlTupleFields.Name, value);
58 } 68 }
59 69
60 public int Event 70 public bool InstallRemove
61 { 71 {
62 get => (int)this.Fields[(int)ServiceControlTupleFields.Event]?.Value; 72 get => this.Fields[(int)ServiceControlTupleFields.InstallRemove].AsBool();
63 set => this.Set((int)ServiceControlTupleFields.Event, value); 73 set => this.Set((int)ServiceControlTupleFields.InstallRemove, value);
74 }
75
76 public bool UninstallRemove
77 {
78 get => this.Fields[(int)ServiceControlTupleFields.UninstallRemove].AsBool();
79 set => this.Set((int)ServiceControlTupleFields.UninstallRemove, value);
80 }
81
82 public bool InstallStart
83 {
84 get => this.Fields[(int)ServiceControlTupleFields.InstallStart].AsBool();
85 set => this.Set((int)ServiceControlTupleFields.InstallStart, value);
86 }
87
88 public bool UninstallStart
89 {
90 get => this.Fields[(int)ServiceControlTupleFields.UninstallStart].AsBool();
91 set => this.Set((int)ServiceControlTupleFields.UninstallStart, value);
92 }
93
94 public bool InstallStop
95 {
96 get => this.Fields[(int)ServiceControlTupleFields.InstallStop].AsBool();
97 set => this.Set((int)ServiceControlTupleFields.InstallStop, value);
98 }
99
100 public bool UninstallStop
101 {
102 get => this.Fields[(int)ServiceControlTupleFields.UninstallStop].AsBool();
103 set => this.Set((int)ServiceControlTupleFields.UninstallStop, value);
64 } 104 }
65 105
66 public string Arguments 106 public string Arguments
@@ -69,9 +109,9 @@ namespace WixToolset.Data.Tuples
69 set => this.Set((int)ServiceControlTupleFields.Arguments, value); 109 set => this.Set((int)ServiceControlTupleFields.Arguments, value);
70 } 110 }
71 111
72 public int Wait 112 public bool? Wait
73 { 113 {
74 get => (int)this.Fields[(int)ServiceControlTupleFields.Wait]?.Value; 114 get => this.Fields[(int)ServiceControlTupleFields.Wait].AsNullableBool();
75 set => this.Set((int)ServiceControlTupleFields.Wait, value); 115 set => this.Set((int)ServiceControlTupleFields.Wait, value);
76 } 116 }
77 117