aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data.WindowsInstaller/Rows/WixBundlePackageRow.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Data.WindowsInstaller/Rows/WixBundlePackageRow.cs')
-rw-r--r--src/WixToolset.Data.WindowsInstaller/Rows/WixBundlePackageRow.cs228
1 files changed, 0 insertions, 228 deletions
diff --git a/src/WixToolset.Data.WindowsInstaller/Rows/WixBundlePackageRow.cs b/src/WixToolset.Data.WindowsInstaller/Rows/WixBundlePackageRow.cs
deleted file mode 100644
index 973c43b9..00000000
--- a/src/WixToolset.Data.WindowsInstaller/Rows/WixBundlePackageRow.cs
+++ /dev/null
@@ -1,228 +0,0 @@
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
3using WixToolset.Data.Tuples;
4
5namespace WixToolset.Data.Rows
6{
7 /// <summary>
8 /// Specialization of a row for the WixBundlePackage table.
9 /// </summary>
10 public sealed class WixBundlePackageRow : Row
11 {
12 /// <summary>
13 /// Creates a WixBundlePackage row that does not belong to a table.
14 /// </summary>
15 /// <param name="sourceLineNumbers">Original source lines for this row.</param>
16 /// <param name="tableDef">TableDefinition this row belongs to and should get its column definitions from.</param>
17 public WixBundlePackageRow(SourceLineNumber sourceLineNumbers, TableDefinition tableDef) :
18 base(sourceLineNumbers, tableDef)
19 {
20 }
21
22 /// <summary>
23 /// Creates a WixBundlePackage row that belongs to a table.
24 /// </summary>
25 /// <param name="sourceLineNumbers">Original source lines for this row.</param>
26 /// <param name="table">Table this row belongs to and should get its column definitions from.</param>
27 public WixBundlePackageRow(SourceLineNumber sourceLineNumbers, Table table) :
28 base(sourceLineNumbers, table)
29 {
30 }
31
32 /// <summary>
33 /// Gets or sets the foreign key to the WixChainItem.
34 /// </summary>
35 public string WixChainItemId
36 {
37 get { return (string)this.Fields[0].Data; }
38 set { this.Fields[0].Data = value; }
39 }
40
41 /// <summary>
42 /// Gets or sets the item type.
43 /// </summary>
44 public WixBundlePackageType Type
45 {
46 get { return (WixBundlePackageType)this.Fields[1].Data; }
47 set { this.Fields[1].Data = (int)value; }
48 }
49
50 /// <summary>
51 /// Gets or sets the indentifier of the package's payload.
52 /// </summary>
53 public string PackagePayload
54 {
55 get { return (string)this.Fields[2].Data; }
56 set { this.Fields[2].Data = value; }
57 }
58
59 /// <summary>
60 /// Gets or sets the raw attributes of a package.
61 /// </summary>
62 public WixBundlePackageAttributes Attributes
63 {
64 get { return (WixBundlePackageAttributes)this.Fields[3].Data; }
65 set { this.Fields[3].Data = value; }
66 }
67
68 /// <summary>
69 /// Gets or sets the install condition of the package.
70 /// </summary>
71 public string InstallCondition
72 {
73 get { return (string)this.Fields[4].Data; }
74 set { this.Fields[4].Data = value; }
75 }
76
77 /// <summary>
78 /// Gets or sets the language of the package.
79 /// </summary>
80 public YesNoAlwaysType Cache
81 {
82 get { return (null == this.Fields[5].Data) ? YesNoAlwaysType.NotSet : (YesNoAlwaysType)this.Fields[5].Data; }
83 set { this.Fields[5].Data = (int)value; }
84 }
85
86 /// <summary>
87 /// Gets or sets the indentifier of the package's cache.
88 /// </summary>
89 public string CacheId
90 {
91 get { return (string)this.Fields[6].Data; }
92 set { this.Fields[6].Data = value; }
93 }
94
95 /// <summary>
96 /// Gets or sets whether the package is vital.
97 /// </summary>
98 public YesNoType Vital
99 {
100 get { return (null == this.Fields[7].Data) ? YesNoType.NotSet : (YesNoType)this.Fields[7].Data; }
101 set { this.Fields[7].Data = (int)value; }
102 }
103
104 /// <summary>
105 /// Gets or sets whether the package is per-machine.
106 /// </summary>
107 public YesNoDefaultType PerMachine
108 {
109 get { return (null == this.Fields[8].Data) ? YesNoDefaultType.NotSet : (YesNoDefaultType)this.Fields[8].Data; }
110 set { this.Fields[8].Data = (int)value; }
111 }
112
113 /// <summary>
114 /// Gets or sets the variable that points to the log for the package.
115 /// </summary>
116 public string LogPathVariable
117 {
118 get { return (string)this.Fields[9].Data; }
119 set { this.Fields[9].Data = value; }
120 }
121
122 /// <summary>
123 /// Gets or sets the variable that points to the rollback log for the package.
124 /// </summary>
125 public string RollbackLogPathVariable
126 {
127 get { return (string)this.Fields[10].Data; }
128 set { this.Fields[10].Data = value; }
129 }
130
131 /// <summary>
132 /// Gets or sets the size of the package.
133 /// </summary>
134 public long Size
135 {
136 get { return (long)this.Fields[11].Data; }
137 set { this.Fields[11].Data = value; }
138 }
139
140 /// <summary>
141 /// Gets or sets the install size of the package.
142 /// </summary>
143 public long? InstallSize
144 {
145 get { return (long?)this.Fields[12].Data; }
146 set { this.Fields[12].Data = value; }
147 }
148
149 /// <summary>
150 /// Gets or sets the version of the package.
151 /// </summary>
152 public string Version
153 {
154 get { return (string)this.Fields[13].Data; }
155 set { this.Fields[13].Data = value; }
156 }
157
158 /// <summary>
159 /// Gets or sets the language of the package.
160 /// </summary>
161 public int Language
162 {
163 get { return (int)this.Fields[14].Data; }
164 set { this.Fields[14].Data = value; }
165 }
166
167 /// <summary>
168 /// Gets or sets the display name of the package.
169 /// </summary>
170 public string DisplayName
171 {
172 get { return (string)this.Fields[15].Data; }
173 set { this.Fields[15].Data = value; }
174 }
175
176 /// <summary>
177 /// Gets or sets the description of the package.
178 /// </summary>
179 public string Description
180 {
181 get { return (string)this.Fields[16].Data; }
182 set { this.Fields[16].Data = value; }
183 }
184
185 /// <summary>
186 /// Gets or sets the rollback boundary identifier for the package.
187 /// </summary>
188 public string RollbackBoundary
189 {
190 get { return (string)this.Fields[17].Data; }
191 set { this.Fields[17].Data = value; }
192 }
193
194 /// <summary>
195 /// Gets or sets the backward rollback boundary identifier for the package.
196 /// </summary>
197 public string RollbackBoundaryBackward
198 {
199 get { return (string)this.Fields[18].Data; }
200 set { this.Fields[18].Data = value; }
201 }
202
203 /// <summary>
204 /// Gets or sets whether the package is x64.
205 /// </summary>
206 public YesNoType x64
207 {
208 get { return (null == this.Fields[19].Data) ? YesNoType.NotSet : (YesNoType)this.Fields[19].Data; }
209 set { this.Fields[19].Data = (int)value; }
210 }
211
212 /// <summary>
213 /// Gets whether the package is permanent.
214 /// </summary>
215 public bool Permanent
216 {
217 get { return 0 != (this.Attributes & WixBundlePackageAttributes.Permanent); }
218 }
219
220 /// <summary>
221 /// Gets whether the package is visible.
222 /// </summary>
223 public bool Visible
224 {
225 get { return 0 != (this.Attributes & WixBundlePackageAttributes.Visible); }
226 }
227 }
228}