blob: c006355aa3882861fa0d45733a57e252d915a1b5 (
plain)
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
|
// 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.
using WixToolset.Data.Tuples;
namespace WixToolset.Data.Rows
{
/// <summary>
/// Specialization of a row for the WixFile table.
/// </summary>
public sealed class WixFileRow : Row
{
/// <summary>
/// Creates a WixFile row that does not belong to a table.
/// </summary>
/// <param name="sourceLineNumbers">Original source lines for this row.</param>
/// <param name="tableDef">TableDefinition this row belongs to and should get its column definitions from.</param>
public WixFileRow(SourceLineNumber sourceLineNumbers, TableDefinition tableDef) :
base(sourceLineNumbers, tableDef)
{
}
/// <summary>
/// Creates a WixFile row that belongs to a table.
/// </summary>
/// <param name="sourceLineNumbers">Original source lines for this row.</param>
/// <param name="table">Table this row belongs to and should get its column definitions from.</param>
public WixFileRow(SourceLineNumber sourceLineNumbers, Table table) :
base(sourceLineNumbers, table)
{
}
/// <summary>
/// Gets or sets the primary key of the file row.
/// </summary>
/// <value>Primary key of the file row.</value>
public string File
{
get { return (string)this.Fields[0].Data; }
set { this.Fields[0].Data = value; }
}
/// <summary>
/// Gets or sets the assembly type of the file row.
/// </summary>
/// <value>Assembly type of the file row.</value>
public FileAssemblyType AssemblyType
{
get { return (null == this.Fields[1]) ? FileAssemblyType.NotAnAssembly : (FileAssemblyType)this.Fields[1].AsInteger(); }
set { this.Fields[1].Data = (int)value; }
}
/// <summary>
/// Gets or sets the identifier for the assembly manifest.
/// </summary>
/// <value>Identifier for the assembly manifest.</value>
public string AssemblyManifest
{
get { return (string)this.Fields[2].Data; }
set { this.Fields[2].Data = value; }
}
/// <summary>
/// Gets or sets the application for the assembly.
/// </summary>
/// <value>Application for the assembly.</value>
public string AssemblyApplication
{
get { return (string)this.Fields[3].Data; }
set { this.Fields[3].Data = value; }
}
/// <summary>
/// Gets or sets the directory of the file.
/// </summary>
/// <value>Directory of the file.</value>
public string Directory
{
get { return (string)this.Fields[4].Data; }
set { this.Fields[4].Data = value; }
}
/// <summary>
/// Gets or sets the disk id for this file.
/// </summary>
/// <value>Disk id for the file.</value>
public int DiskId
{
get { return (int)this.Fields[5].Data; }
set { this.Fields[5].Data = value; }
}
/// <summary>
/// Gets or sets the source location to the file.
/// </summary>
/// <value>Source location to the file.</value>
public string Source
{
get { return (string)this.Fields[6].Data; }
set { this.Fields[6].Data = value; }
}
/// <summary>
/// Gets or sets the source location to the file.
/// </summary>
/// <value>Source location to the file.</value>
public string PreviousSource
{
get { return (string)this.Fields[6].PreviousData; }
set { this.Fields[6].PreviousData = value; }
}
/// <summary>
/// Gets or sets the architecture the file executes on.
/// </summary>
/// <value>Architecture the file executes on.</value>
public string ProcessorArchitecture
{
get { return (string)this.Fields[7].Data; }
set { this.Fields[7].Data = value; }
}
/// <summary>
/// Gets or sets the patch group of a patch-added file.
/// </summary>
/// <value>The patch group of a patch-added file.</value>
public int PatchGroup
{
get { return (null == this.Fields[8].Data) ? 0 : (int)this.Fields[8].Data; }
set { this.Fields[8].Data = value; }
}
/// <summary>
/// Gets or sets the attributes on a file.
/// </summary>
/// <value>Attributes on a file.</value>
public int Attributes
{
get { return (int)this.Fields[9].Data; }
set { this.Fields[9].Data = value; }
}
/// <summary>
/// Gets or sets the patching attributes to the file.
/// </summary>
/// <value>Patching attributes of the file.</value>
public PatchAttributeType PatchAttributes
{
get { return (PatchAttributeType)this.Fields[10].AsInteger(); }
set { this.Fields[10].Data = (int)value; }
}
/// <summary>
/// Gets or sets the path to the delta patch header.
/// </summary>
/// <value>Patch header path.</value>
/// <remarks>Set by the binder only when doing delta patching.</remarks>
public string DeltaPatchHeaderSource
{
get { return (string)this.Fields[11].Data; }
set { this.Fields[11].Data = value; }
}
}
}
|