aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/WindowsInstaller/Rows
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2019-10-07 07:32:59 -0700
committerRob Mensching <rob@firegiant.com>2019-10-07 11:27:21 -0700
commitcece10e037c6daacc8d2def1a9057882aec47fe4 (patch)
tree8e79c0d5b30ed8e663c077b2d9ce2b829b76ab84 /src/WixToolset.Data/WindowsInstaller/Rows
parent7462108b714d07161126dcedda5312daef54ae13 (diff)
downloadwix-cece10e037c6daacc8d2def1a9057882aec47fe4.tar.gz
wix-cece10e037c6daacc8d2def1a9057882aec47fe4.tar.bz2
wix-cece10e037c6daacc8d2def1a9057882aec47fe4.zip
Add support for long fields and fix up Bundle and many other tuples
Diffstat (limited to 'src/WixToolset.Data/WindowsInstaller/Rows')
-rw-r--r--src/WixToolset.Data/WindowsInstaller/Rows/WixApprovedExeForElevationRow.cs8
-rw-r--r--src/WixToolset.Data/WindowsInstaller/Rows/WixBundleExePackageRow.cs3
-rw-r--r--src/WixToolset.Data/WindowsInstaller/Rows/WixBundleMsiPackageRow.cs8
-rw-r--r--src/WixToolset.Data/WindowsInstaller/Rows/WixBundlePatchTargetCodeRow.cs20
4 files changed, 8 insertions, 31 deletions
diff --git a/src/WixToolset.Data/WindowsInstaller/Rows/WixApprovedExeForElevationRow.cs b/src/WixToolset.Data/WindowsInstaller/Rows/WixApprovedExeForElevationRow.cs
index b3d85c8a..28a14ddd 100644
--- a/src/WixToolset.Data/WindowsInstaller/Rows/WixApprovedExeForElevationRow.cs
+++ b/src/WixToolset.Data/WindowsInstaller/Rows/WixApprovedExeForElevationRow.cs
@@ -2,6 +2,8 @@
2 2
3namespace WixToolset.Data.WindowsInstaller.Rows 3namespace WixToolset.Data.WindowsInstaller.Rows
4{ 4{
5 using WixToolset.Data.Tuples;
6
5 /// <summary> 7 /// <summary>
6 /// Specialization of a row for the WixApprovedExeForElevation table. 8 /// Specialization of a row for the WixApprovedExeForElevation table.
7 /// </summary> 9 /// </summary>
@@ -61,9 +63,9 @@ namespace WixToolset.Data.WindowsInstaller.Rows
61 /// Gets or sets the attibutes. 63 /// Gets or sets the attibutes.
62 /// </summary> 64 /// </summary>
63 /// <value>The BundleApprovedExeForElevationAttributes.</value> 65 /// <value>The BundleApprovedExeForElevationAttributes.</value>
64 public BundleApprovedExeForElevationAttributes Attributes 66 public WixApprovedExeForElevationAttributes Attributes
65 { 67 {
66 get { return (BundleApprovedExeForElevationAttributes)this.Fields[3].Data; } 68 get { return (WixApprovedExeForElevationAttributes)this.Fields[3].Data; }
67 set { this.Fields[3].Data = (int)value; } 69 set { this.Fields[3].Data = (int)value; }
68 } 70 }
69 71
@@ -72,7 +74,7 @@ namespace WixToolset.Data.WindowsInstaller.Rows
72 /// </summary> 74 /// </summary>
73 public bool Win64 75 public bool Win64
74 { 76 {
75 get { return BundleApprovedExeForElevationAttributes.Win64 == (this.Attributes & BundleApprovedExeForElevationAttributes.Win64); } 77 get { return WixApprovedExeForElevationAttributes.Win64 == (this.Attributes & WixApprovedExeForElevationAttributes.Win64); }
76 } 78 }
77 } 79 }
78} 80}
diff --git a/src/WixToolset.Data/WindowsInstaller/Rows/WixBundleExePackageRow.cs b/src/WixToolset.Data/WindowsInstaller/Rows/WixBundleExePackageRow.cs
index 95fc0f54..241c1f7f 100644
--- a/src/WixToolset.Data/WindowsInstaller/Rows/WixBundleExePackageRow.cs
+++ b/src/WixToolset.Data/WindowsInstaller/Rows/WixBundleExePackageRow.cs
@@ -2,6 +2,7 @@
2 2
3namespace WixToolset.Data.WindowsInstaller.Rows 3namespace WixToolset.Data.WindowsInstaller.Rows
4{ 4{
5 using System;
5 using WixToolset.Data.Tuples; 6 using WixToolset.Data.Tuples;
6 7
7 /// <summary> 8 /// <summary>
@@ -97,7 +98,7 @@ namespace WixToolset.Data.WindowsInstaller.Rows
97 /// </summary> 98 /// </summary>
98 public bool Repairable 99 public bool Repairable
99 { 100 {
100 get { return 0 != (this.Attributes & WixBundleExePackageAttributes.Repairable); } 101 get { return !String.IsNullOrEmpty(this.RepairCommand); }
101 } 102 }
102 } 103 }
103} 104}
diff --git a/src/WixToolset.Data/WindowsInstaller/Rows/WixBundleMsiPackageRow.cs b/src/WixToolset.Data/WindowsInstaller/Rows/WixBundleMsiPackageRow.cs
index fdd2b6cf..5f07072d 100644
--- a/src/WixToolset.Data/WindowsInstaller/Rows/WixBundleMsiPackageRow.cs
+++ b/src/WixToolset.Data/WindowsInstaller/Rows/WixBundleMsiPackageRow.cs
@@ -126,13 +126,5 @@ namespace WixToolset.Data.WindowsInstaller.Rows
126 { 126 {
127 get { return 0 != (this.Attributes & WixBundleMsiPackageAttributes.ForcePerMachine); } 127 get { return 0 != (this.Attributes & WixBundleMsiPackageAttributes.ForcePerMachine); }
128 } 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 } 129 }
138} 130}
diff --git a/src/WixToolset.Data/WindowsInstaller/Rows/WixBundlePatchTargetCodeRow.cs b/src/WixToolset.Data/WindowsInstaller/Rows/WixBundlePatchTargetCodeRow.cs
index 6e05e4b7..84d13c43 100644
--- a/src/WixToolset.Data/WindowsInstaller/Rows/WixBundlePatchTargetCodeRow.cs
+++ b/src/WixToolset.Data/WindowsInstaller/Rows/WixBundlePatchTargetCodeRow.cs
@@ -3,25 +3,7 @@
3namespace WixToolset.Data.WindowsInstaller.Rows 3namespace WixToolset.Data.WindowsInstaller.Rows
4{ 4{
5 using System; 5 using System;
6 6 using WixToolset.Data.Tuples;
7 /// <summary>
8 /// Attributes for the PatchTargetCode table.
9 /// </summary>
10 [Flags]
11 public enum WixBundlePatchTargetCodeAttributes : int
12 {
13 None = 0,
14
15 /// <summary>
16 /// The transform targets a specific ProductCode.
17 /// </summary>
18 TargetsProductCode = 1,
19
20 /// <summary>
21 /// The transform targets a specific UpgradeCode.
22 /// </summary>
23 TargetsUpgradeCode = 2,
24 }
25 7
26 /// <summary> 8 /// <summary>
27 /// Specialization of a row for the PatchTargetCode table. 9 /// Specialization of a row for the PatchTargetCode table.