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
|
// 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 MsiServiceConfig = new IntermediateTupleDefinition(
TupleDefinitionType.MsiServiceConfig,
new[]
{
new IntermediateFieldDefinition(nameof(MsiServiceConfigTupleFields.Name), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsTupleFields.OnInstall), IntermediateFieldType.Bool),
new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsTupleFields.OnReinstall), IntermediateFieldType.Bool),
new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsTupleFields.OnUninstall), IntermediateFieldType.Bool),
new IntermediateFieldDefinition(nameof(MsiServiceConfigTupleFields.ConfigType), IntermediateFieldType.Number),
new IntermediateFieldDefinition(nameof(MsiServiceConfigTupleFields.Argument), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(MsiServiceConfigTupleFields.Component_), IntermediateFieldType.String),
},
typeof(MsiServiceConfigTuple));
}
}
namespace WixToolset.Data.Tuples
{
public enum MsiServiceConfigTupleFields
{
MsiServiceConfig,
Name,
OnInstall,
OnReinstall,
OnUninstall,
ConfigType,
Argument,
Component_,
}
public enum MsiServiceConfigType
{
DelayedAutoStart = 3,
FailureActionsFlag,
ServiceSidInfo,
RequiredPrivilegesInfo,
PreshutdownInfo,
}
public class MsiServiceConfigTuple : IntermediateTuple
{
public MsiServiceConfigTuple() : base(TupleDefinitions.MsiServiceConfig, null, null)
{
}
public MsiServiceConfigTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.MsiServiceConfig, sourceLineNumber, id)
{
}
public IntermediateField this[MsiServiceConfigTupleFields index] => this.Fields[(int)index];
public string Name
{
get => (string)this.Fields[(int)MsiServiceConfigTupleFields.Name];
set => this.Set((int)MsiServiceConfigTupleFields.Name, value);
}
public bool OnInstall
{
get => this.Fields[(int)MsiServiceConfigTupleFields.OnInstall].AsBool();
set => this.Set((int)MsiServiceConfigTupleFields.OnInstall, value);
}
public bool OnReinstall
{
get => this.Fields[(int)MsiServiceConfigTupleFields.OnReinstall].AsBool();
set => this.Set((int)MsiServiceConfigTupleFields.OnReinstall, value);
}
public bool OnUninstall
{
get => this.Fields[(int)MsiServiceConfigTupleFields.OnUninstall].AsBool();
set => this.Set((int)MsiServiceConfigTupleFields.OnUninstall, value);
}
public MsiServiceConfigType ConfigType
{
get => (MsiServiceConfigType)this.Fields[(int)MsiServiceConfigTupleFields.ConfigType].AsNumber();
set => this.Set((int)MsiServiceConfigTupleFields.ConfigType, (int)value);
}
public string Argument
{
get => (string)this.Fields[(int)MsiServiceConfigTupleFields.Argument];
set => this.Set((int)MsiServiceConfigTupleFields.Argument, value);
}
public string Component_
{
get => (string)this.Fields[(int)MsiServiceConfigTupleFields.Component_];
set => this.Set((int)MsiServiceConfigTupleFields.Component_, value);
}
}
}
|