1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
|
// 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.
namespace WixToolset.Data
{
using WixToolset.Data.Tuples;
public static partial class TupleDefinitions
{
public static readonly IntermediateTupleDefinition ServiceInstall = new IntermediateTupleDefinition(
TupleDefinitionType.ServiceInstall,
new[]
{
new IntermediateFieldDefinition(nameof(ServiceInstallTupleFields.ServiceInstall), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(ServiceInstallTupleFields.Name), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(ServiceInstallTupleFields.DisplayName), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(ServiceInstallTupleFields.ServiceType), IntermediateFieldType.Number),
new IntermediateFieldDefinition(nameof(ServiceInstallTupleFields.StartType), IntermediateFieldType.Number),
new IntermediateFieldDefinition(nameof(ServiceInstallTupleFields.ErrorControl), IntermediateFieldType.Number),
new IntermediateFieldDefinition(nameof(ServiceInstallTupleFields.LoadOrderGroup), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(ServiceInstallTupleFields.Dependencies), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(ServiceInstallTupleFields.StartName), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(ServiceInstallTupleFields.Password), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(ServiceInstallTupleFields.Arguments), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(ServiceInstallTupleFields.Component_), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(ServiceInstallTupleFields.Description), IntermediateFieldType.String),
},
typeof(ServiceInstallTuple));
}
}
namespace WixToolset.Data.Tuples
{
public enum ServiceInstallTupleFields
{
ServiceInstall,
Name,
DisplayName,
ServiceType,
StartType,
ErrorControl,
LoadOrderGroup,
Dependencies,
StartName,
Password,
Arguments,
Component_,
Description,
}
public class ServiceInstallTuple : IntermediateTuple
{
public ServiceInstallTuple() : base(TupleDefinitions.ServiceInstall, null, null)
{
}
public ServiceInstallTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.ServiceInstall, sourceLineNumber, id)
{
}
public IntermediateField this[ServiceInstallTupleFields index] => this.Fields[(int)index];
public string ServiceInstall
{
get => (string)this.Fields[(int)ServiceInstallTupleFields.ServiceInstall]?.Value;
set => this.Set((int)ServiceInstallTupleFields.ServiceInstall, value);
}
public string Name
{
get => (string)this.Fields[(int)ServiceInstallTupleFields.Name]?.Value;
set => this.Set((int)ServiceInstallTupleFields.Name, value);
}
public string DisplayName
{
get => (string)this.Fields[(int)ServiceInstallTupleFields.DisplayName]?.Value;
set => this.Set((int)ServiceInstallTupleFields.DisplayName, value);
}
public int ServiceType
{
get => (int)this.Fields[(int)ServiceInstallTupleFields.ServiceType]?.Value;
set => this.Set((int)ServiceInstallTupleFields.ServiceType, value);
}
public int StartType
{
get => (int)this.Fields[(int)ServiceInstallTupleFields.StartType]?.Value;
set => this.Set((int)ServiceInstallTupleFields.StartType, value);
}
public int ErrorControl
{
get => (int)this.Fields[(int)ServiceInstallTupleFields.ErrorControl]?.Value;
set => this.Set((int)ServiceInstallTupleFields.ErrorControl, value);
}
public string LoadOrderGroup
{
get => (string)this.Fields[(int)ServiceInstallTupleFields.LoadOrderGroup]?.Value;
set => this.Set((int)ServiceInstallTupleFields.LoadOrderGroup, value);
}
public string Dependencies
{
get => (string)this.Fields[(int)ServiceInstallTupleFields.Dependencies]?.Value;
set => this.Set((int)ServiceInstallTupleFields.Dependencies, value);
}
public string StartName
{
get => (string)this.Fields[(int)ServiceInstallTupleFields.StartName]?.Value;
set => this.Set((int)ServiceInstallTupleFields.StartName, value);
}
public string Password
{
get => (string)this.Fields[(int)ServiceInstallTupleFields.Password]?.Value;
set => this.Set((int)ServiceInstallTupleFields.Password, value);
}
public string Arguments
{
get => (string)this.Fields[(int)ServiceInstallTupleFields.Arguments]?.Value;
set => this.Set((int)ServiceInstallTupleFields.Arguments, value);
}
public string Component_
{
get => (string)this.Fields[(int)ServiceInstallTupleFields.Component_]?.Value;
set => this.Set((int)ServiceInstallTupleFields.Component_, value);
}
public string Description
{
get => (string)this.Fields[(int)ServiceInstallTupleFields.Description]?.Value;
set => this.Set((int)ServiceInstallTupleFields.Description, value);
}
}
}
|