diff options
Diffstat (limited to 'src/WixToolset.Data.WindowsInstaller/Rows/WixBundleMsiPackageRow.cs')
-rw-r--r-- | src/WixToolset.Data.WindowsInstaller/Rows/WixBundleMsiPackageRow.cs | 138 |
1 files changed, 0 insertions, 138 deletions
diff --git a/src/WixToolset.Data.WindowsInstaller/Rows/WixBundleMsiPackageRow.cs b/src/WixToolset.Data.WindowsInstaller/Rows/WixBundleMsiPackageRow.cs deleted file mode 100644 index 70d85e26..00000000 --- a/src/WixToolset.Data.WindowsInstaller/Rows/WixBundleMsiPackageRow.cs +++ /dev/null | |||
@@ -1,138 +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 | |||
3 | namespace WixToolset.Data.Rows | ||
4 | { | ||
5 | using System; | ||
6 | using System.Globalization; | ||
7 | using WixToolset.Data.Tuples; | ||
8 | |||
9 | /// <summary> | ||
10 | /// Specialization of a row for the WixBundleMsiPackage table. | ||
11 | /// </summary> | ||
12 | public sealed class WixBundleMsiPackageRow : Row | ||
13 | { | ||
14 | /// <summary> | ||
15 | /// Creates a WixBundleMsiPackage row that does not belong to a table. | ||
16 | /// </summary> | ||
17 | /// <param name="sourceLineNumbers">Original source lines for this row.</param> | ||
18 | /// <param name="tableDef">TableDefinition this row belongs to and should get its column definitions from.</param> | ||
19 | public WixBundleMsiPackageRow(SourceLineNumber sourceLineNumbers, TableDefinition tableDef) : | ||
20 | base(sourceLineNumbers, tableDef) | ||
21 | { | ||
22 | } | ||
23 | |||
24 | /// <summary> | ||
25 | /// Creates a WixBundleMsiPackageRow row that belongs to a table. | ||
26 | /// </summary> | ||
27 | /// <param name="sourceLineNumbers">Original source lines for this row.</param> | ||
28 | /// <param name="table">Table this row belongs to and should get its column definitions from.</param> | ||
29 | public WixBundleMsiPackageRow(SourceLineNumber sourceLineNumbers, Table table) : | ||
30 | base(sourceLineNumbers, table) | ||
31 | { | ||
32 | } | ||
33 | |||
34 | /// <summary> | ||
35 | /// Gets or sets the foreign key identifier to the ChainPackage row. | ||
36 | /// </summary> | ||
37 | public string ChainPackageId | ||
38 | { | ||
39 | get { return (string)this.Fields[0].Data; } | ||
40 | set { this.Fields[0].Data = value; } | ||
41 | } | ||
42 | |||
43 | /// <summary> | ||
44 | /// Gets or sets the raw MSI attributes of a package. | ||
45 | /// </summary> | ||
46 | public WixBundleMsiPackageAttributes Attributes | ||
47 | { | ||
48 | get { return (WixBundleMsiPackageAttributes)this.Fields[1].Data; } | ||
49 | set { this.Fields[1].Data = value; } | ||
50 | } | ||
51 | |||
52 | /// <summary> | ||
53 | /// Gets or sets the MSI package's product code. | ||
54 | /// </summary> | ||
55 | public string ProductCode | ||
56 | { | ||
57 | get { return (string)this.Fields[2].Data; } | ||
58 | set { this.Fields[2].Data = value; } | ||
59 | } | ||
60 | |||
61 | /// <summary> | ||
62 | /// Gets or sets the MSI package's upgrade code. | ||
63 | /// </summary> | ||
64 | public string UpgradeCode | ||
65 | { | ||
66 | get { return (string)this.Fields[3].Data; } | ||
67 | set { this.Fields[3].Data = value; } | ||
68 | } | ||
69 | |||
70 | /// <summary> | ||
71 | /// Gets or sets the product version of the MSI package. | ||
72 | /// </summary> | ||
73 | public string ProductVersion | ||
74 | { | ||
75 | get { return (string)this.Fields[4].Data; } | ||
76 | set { this.Fields[4].Data = value; } | ||
77 | } | ||
78 | |||
79 | /// <summary> | ||
80 | /// Gets or sets the language of the MSI package. | ||
81 | /// </summary> | ||
82 | public int ProductLanguage | ||
83 | { | ||
84 | get { return Convert.ToInt32(this.Fields[5].Data, CultureInfo.InvariantCulture); } | ||
85 | set { this.Fields[5].Data = value; } | ||
86 | } | ||
87 | |||
88 | /// <summary> | ||
89 | /// Gets or sets the product name of the MSI package. | ||
90 | /// </summary> | ||
91 | public string ProductName | ||
92 | { | ||
93 | get { return (string)this.Fields[6].Data; } | ||
94 | set { this.Fields[6].Data = value; } | ||
95 | } | ||
96 | |||
97 | /// <summary> | ||
98 | /// Gets or sets the MSI package's manufacturer. | ||
99 | /// </summary> | ||
100 | public string Manufacturer | ||
101 | { | ||
102 | get { return (string)this.Fields[7].Data; } | ||
103 | set { this.Fields[7].Data = value; } | ||
104 | } | ||
105 | |||
106 | /// <summary> | ||
107 | /// Gets the display internal UI of a package. | ||
108 | /// </summary> | ||
109 | public bool DisplayInternalUI | ||
110 | { | ||
111 | get { return 0 != (this.Attributes & WixBundleMsiPackageAttributes.DisplayInternalUI); } | ||
112 | } | ||
113 | |||
114 | /// <summary> | ||
115 | /// Gets the display internal UI of a package. | ||
116 | /// </summary> | ||
117 | public bool EnableFeatureSelection | ||
118 | { | ||
119 | get { return 0 != (this.Attributes & WixBundleMsiPackageAttributes.EnableFeatureSelection); } | ||
120 | } | ||
121 | |||
122 | /// <summary> | ||
123 | /// Gets the display internal UI of a package. | ||
124 | /// </summary> | ||
125 | public bool ForcePerMachine | ||
126 | { | ||
127 | get { return 0 != (this.Attributes & WixBundleMsiPackageAttributes.ForcePerMachine); } | ||
128 | } | ||
129 | |||
130 | /// <summary> | ||
131 | /// Gets the suppress loose file payload generation of a package. | ||
132 | /// </summary> | ||
133 | public bool SuppressLooseFilePayloadGeneration | ||
134 | { | ||
135 | get { return 0 != (this.Attributes & WixBundleMsiPackageAttributes.SuppressLooseFilePayloadGeneration); } | ||
136 | } | ||
137 | } | ||
138 | } | ||