aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2020-06-25 14:43:50 -0700
committerRob Mensching <rob@firegiant.com>2020-06-25 14:50:31 -0700
commit38afa9e7bc7eacc021f8805f607368a05751e3c3 (patch)
tree803b0a8d9a06a7d6f7c4df408437017ae21a883e /src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs
parent8968578d50858721317d410549a9f9b5c62bf1f7 (diff)
downloadwix-38afa9e7bc7eacc021f8805f607368a05751e3c3.tar.gz
wix-38afa9e7bc7eacc021f8805f607368a05751e3c3.tar.bz2
wix-38afa9e7bc7eacc021f8805f607368a05751e3c3.zip
The Great Tuple to Symbol Rename (tm)
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs')
-rw-r--r--src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs1074
1 files changed, 537 insertions, 537 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs
index 90d1c148..052b30e3 100644
--- a/src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs
+++ b/src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs
@@ -7,7 +7,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
7 using System.Globalization; 7 using System.Globalization;
8 using System.Linq; 8 using System.Linq;
9 using WixToolset.Data; 9 using WixToolset.Data;
10 using WixToolset.Data.Tuples; 10 using WixToolset.Data.Symbols;
11 using WixToolset.Data.WindowsInstaller; 11 using WixToolset.Data.WindowsInstaller;
12 using WixToolset.Data.WindowsInstaller.Rows; 12 using WixToolset.Data.WindowsInstaller.Rows;
13 using WixToolset.Extensibility; 13 using WixToolset.Extensibility;
@@ -38,7 +38,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
38 38
39 public void Execute() 39 public void Execute()
40 { 40 {
41 this.Output = new WindowsInstallerData(this.Section.Tuples.First().SourceLineNumbers) 41 this.Output = new WindowsInstallerData(this.Section.Symbols.First().SourceLineNumbers)
42 { 42 {
43 Codepage = this.Section.Codepage, 43 Codepage = this.Section.Codepage,
44 Type = SectionTypeToOutputType(this.Section.Type) 44 Type = SectionTypeToOutputType(this.Section.Type)
@@ -49,388 +49,388 @@ namespace WixToolset.Core.WindowsInstaller.Bind
49 49
50 private void AddSectionToOutput() 50 private void AddSectionToOutput()
51 { 51 {
52 var cellsByTableAndRowId = new Dictionary<string, List<WixCustomTableCellTuple>>(); 52 var cellsByTableAndRowId = new Dictionary<string, List<WixCustomTableCellSymbol>>();
53 53
54 foreach (var tuple in this.Section.Tuples) 54 foreach (var symbol in this.Section.Symbols)
55 { 55 {
56 var unknownTuple = false; 56 var unknownSymbol = false;
57 switch (tuple.Definition.Type) 57 switch (symbol.Definition.Type)
58 { 58 {
59 case TupleDefinitionType.AppSearch: 59 case SymbolDefinitionType.AppSearch:
60 this.AddTupleDefaultly(tuple); 60 this.AddSymbolDefaultly(symbol);
61 this.Output.EnsureTable(this.TableDefinitions["Signature"]); 61 this.Output.EnsureTable(this.TableDefinitions["Signature"]);
62 break; 62 break;
63 63
64 case TupleDefinitionType.Assembly: 64 case SymbolDefinitionType.Assembly:
65 this.AddAssemblyTuple((AssemblyTuple)tuple); 65 this.AddAssemblySymbol((AssemblySymbol)symbol);
66 break; 66 break;
67 67
68 case TupleDefinitionType.BBControl: 68 case SymbolDefinitionType.BBControl:
69 this.AddBBControlTuple((BBControlTuple)tuple); 69 this.AddBBControlSymbol((BBControlSymbol)symbol);
70 break; 70 break;
71 71
72 case TupleDefinitionType.Class: 72 case SymbolDefinitionType.Class:
73 this.AddClassTuple((ClassTuple)tuple); 73 this.AddClassSymbol((ClassSymbol)symbol);
74 break; 74 break;
75 75
76 case TupleDefinitionType.Control: 76 case SymbolDefinitionType.Control:
77 this.AddControlTuple((ControlTuple)tuple); 77 this.AddControlSymbol((ControlSymbol)symbol);
78 break; 78 break;
79 79
80 case TupleDefinitionType.Component: 80 case SymbolDefinitionType.Component:
81 this.AddComponentTuple((ComponentTuple)tuple); 81 this.AddComponentSymbol((ComponentSymbol)symbol);
82 break; 82 break;
83 83
84 case TupleDefinitionType.CustomAction: 84 case SymbolDefinitionType.CustomAction:
85 this.AddCustomActionTuple((CustomActionTuple)tuple); 85 this.AddCustomActionSymbol((CustomActionSymbol)symbol);
86 break; 86 break;
87 87
88 case TupleDefinitionType.Dialog: 88 case SymbolDefinitionType.Dialog:
89 this.AddDialogTuple((DialogTuple)tuple); 89 this.AddDialogSymbol((DialogSymbol)symbol);
90 break; 90 break;
91 91
92 case TupleDefinitionType.Directory: 92 case SymbolDefinitionType.Directory:
93 this.AddDirectoryTuple((DirectoryTuple)tuple); 93 this.AddDirectorySymbol((DirectorySymbol)symbol);
94 break; 94 break;
95 95
96 case TupleDefinitionType.Environment: 96 case SymbolDefinitionType.Environment:
97 this.AddEnvironmentTuple((EnvironmentTuple)tuple); 97 this.AddEnvironmentSymbol((EnvironmentSymbol)symbol);
98 break; 98 break;
99 99
100 case TupleDefinitionType.Error: 100 case SymbolDefinitionType.Error:
101 this.AddErrorTuple((ErrorTuple)tuple); 101 this.AddErrorSymbol((ErrorSymbol)symbol);
102 break; 102 break;
103 103
104 case TupleDefinitionType.Feature: 104 case SymbolDefinitionType.Feature:
105 this.AddFeatureTuple((FeatureTuple)tuple); 105 this.AddFeatureSymbol((FeatureSymbol)symbol);
106 break; 106 break;
107 107
108 case TupleDefinitionType.File: 108 case SymbolDefinitionType.File:
109 this.AddFileTuple((FileTuple)tuple); 109 this.AddFileSymbol((FileSymbol)symbol);
110 break; 110 break;
111 111
112 case TupleDefinitionType.IniFile: 112 case SymbolDefinitionType.IniFile:
113 this.AddIniFileTuple((IniFileTuple)tuple); 113 this.AddIniFileSymbol((IniFileSymbol)symbol);
114 break; 114 break;
115 115
116 case TupleDefinitionType.Media: 116 case SymbolDefinitionType.Media:
117 this.AddMediaTuple((MediaTuple)tuple); 117 this.AddMediaSymbol((MediaSymbol)symbol);
118 break; 118 break;
119 119
120 case TupleDefinitionType.ModuleConfiguration: 120 case SymbolDefinitionType.ModuleConfiguration:
121 this.AddModuleConfigurationTuple((ModuleConfigurationTuple)tuple); 121 this.AddModuleConfigurationSymbol((ModuleConfigurationSymbol)symbol);
122 break; 122 break;
123 123
124 case TupleDefinitionType.MsiEmbeddedUI: 124 case SymbolDefinitionType.MsiEmbeddedUI:
125 this.AddMsiEmbeddedUITuple((MsiEmbeddedUITuple)tuple); 125 this.AddMsiEmbeddedUISymbol((MsiEmbeddedUISymbol)symbol);
126 break; 126 break;
127 127
128 case TupleDefinitionType.MsiServiceConfig: 128 case SymbolDefinitionType.MsiServiceConfig:
129 this.AddMsiServiceConfigTuple((MsiServiceConfigTuple)tuple); 129 this.AddMsiServiceConfigSymbol((MsiServiceConfigSymbol)symbol);
130 break; 130 break;
131 131
132 case TupleDefinitionType.MsiServiceConfigFailureActions: 132 case SymbolDefinitionType.MsiServiceConfigFailureActions:
133 this.AddMsiServiceConfigFailureActionsTuple((MsiServiceConfigFailureActionsTuple)tuple); 133 this.AddMsiServiceConfigFailureActionsSymbol((MsiServiceConfigFailureActionsSymbol)symbol);
134 break; 134 break;
135 135
136 case TupleDefinitionType.MoveFile: 136 case SymbolDefinitionType.MoveFile:
137 this.AddMoveFileTuple((MoveFileTuple)tuple); 137 this.AddMoveFileSymbol((MoveFileSymbol)symbol);
138 break; 138 break;
139 139
140 case TupleDefinitionType.ProgId: 140 case SymbolDefinitionType.ProgId:
141 this.AddTupleDefaultly(tuple); 141 this.AddSymbolDefaultly(symbol);
142 this.Output.EnsureTable(this.TableDefinitions["Extension"]); 142 this.Output.EnsureTable(this.TableDefinitions["Extension"]);
143 break; 143 break;
144 144
145 case TupleDefinitionType.Property: 145 case SymbolDefinitionType.Property:
146 this.AddPropertyTuple((PropertyTuple)tuple); 146 this.AddPropertySymbol((PropertySymbol)symbol);
147 break; 147 break;
148 148
149 case TupleDefinitionType.RemoveFile: 149 case SymbolDefinitionType.RemoveFile:
150 this.AddRemoveFileTuple((RemoveFileTuple)tuple); 150 this.AddRemoveFileSymbol((RemoveFileSymbol)symbol);
151 break; 151 break;
152 152
153 case TupleDefinitionType.Registry: 153 case SymbolDefinitionType.Registry:
154 this.AddRegistryTuple((RegistryTuple)tuple); 154 this.AddRegistrySymbol((RegistrySymbol)symbol);
155 break; 155 break;
156 156
157 case TupleDefinitionType.RegLocator: 157 case SymbolDefinitionType.RegLocator:
158 this.AddRegLocatorTuple((RegLocatorTuple)tuple); 158 this.AddRegLocatorSymbol((RegLocatorSymbol)symbol);
159 break; 159 break;
160 160
161 case TupleDefinitionType.RemoveRegistry: 161 case SymbolDefinitionType.RemoveRegistry:
162 this.AddRemoveRegistryTuple((RemoveRegistryTuple)tuple); 162 this.AddRemoveRegistrySymbol((RemoveRegistrySymbol)symbol);
163 break; 163 break;
164 164
165 case TupleDefinitionType.ServiceControl: 165 case SymbolDefinitionType.ServiceControl:
166 this.AddServiceControlTuple((ServiceControlTuple)tuple); 166 this.AddServiceControlSymbol((ServiceControlSymbol)symbol);
167 break; 167 break;
168 168
169 case TupleDefinitionType.ServiceInstall: 169 case SymbolDefinitionType.ServiceInstall:
170 this.AddServiceInstallTuple((ServiceInstallTuple)tuple); 170 this.AddServiceInstallSymbol((ServiceInstallSymbol)symbol);
171 break; 171 break;
172 172
173 case TupleDefinitionType.Shortcut: 173 case SymbolDefinitionType.Shortcut:
174 this.AddShortcutTuple((ShortcutTuple)tuple); 174 this.AddShortcutSymbol((ShortcutSymbol)symbol);
175 break; 175 break;
176 176
177 case TupleDefinitionType.TextStyle: 177 case SymbolDefinitionType.TextStyle:
178 this.AddTextStyleTuple((TextStyleTuple)tuple); 178 this.AddTextStyleSymbol((TextStyleSymbol)symbol);
179 break; 179 break;
180 180
181 case TupleDefinitionType.Upgrade: 181 case SymbolDefinitionType.Upgrade:
182 this.AddUpgradeTuple((UpgradeTuple)tuple); 182 this.AddUpgradeSymbol((UpgradeSymbol)symbol);
183 break; 183 break;
184 184
185 case TupleDefinitionType.WixAction: 185 case SymbolDefinitionType.WixAction:
186 this.AddWixActionTuple((WixActionTuple)tuple); 186 this.AddWixActionSymbol((WixActionSymbol)symbol);
187 break; 187 break;
188 188
189 case TupleDefinitionType.WixCustomTableCell: 189 case SymbolDefinitionType.WixCustomTableCell:
190 this.IndexCustomTableCellTuple((WixCustomTableCellTuple)tuple, cellsByTableAndRowId); 190 this.IndexCustomTableCellSymbol((WixCustomTableCellSymbol)symbol, cellsByTableAndRowId);
191 break; 191 break;
192 192
193 case TupleDefinitionType.WixEnsureTable: 193 case SymbolDefinitionType.WixEnsureTable:
194 this.AddWixEnsureTableTuple((WixEnsureTableTuple)tuple); 194 this.AddWixEnsureTableSymbol((WixEnsureTableSymbol)symbol);
195 break; 195 break;
196 196
197 // Tuples used internally and are not added to the output. 197 // Symbols used internally and are not added to the output.
198 case TupleDefinitionType.WixBuildInfo: 198 case SymbolDefinitionType.WixBuildInfo:
199 case TupleDefinitionType.WixBindUpdatedFiles: 199 case SymbolDefinitionType.WixBindUpdatedFiles:
200 case TupleDefinitionType.WixComponentGroup: 200 case SymbolDefinitionType.WixComponentGroup:
201 case TupleDefinitionType.WixComplexReference: 201 case SymbolDefinitionType.WixComplexReference:
202 case TupleDefinitionType.WixDeltaPatchFile: 202 case SymbolDefinitionType.WixDeltaPatchFile:
203 case TupleDefinitionType.WixDeltaPatchSymbolPaths: 203 case SymbolDefinitionType.WixDeltaPatchSymbolPaths:
204 case TupleDefinitionType.WixFragment: 204 case SymbolDefinitionType.WixFragment:
205 case TupleDefinitionType.WixFeatureGroup: 205 case SymbolDefinitionType.WixFeatureGroup:
206 case TupleDefinitionType.WixInstanceComponent: 206 case SymbolDefinitionType.WixInstanceComponent:
207 case TupleDefinitionType.WixInstanceTransforms: 207 case SymbolDefinitionType.WixInstanceTransforms:
208 case TupleDefinitionType.WixFeatureModules: 208 case SymbolDefinitionType.WixFeatureModules:
209 case TupleDefinitionType.WixGroup: 209 case SymbolDefinitionType.WixGroup:
210 case TupleDefinitionType.WixMediaTemplate: 210 case SymbolDefinitionType.WixMediaTemplate:
211 case TupleDefinitionType.WixMerge: 211 case SymbolDefinitionType.WixMerge:
212 case TupleDefinitionType.WixOrdering: 212 case SymbolDefinitionType.WixOrdering:
213 case TupleDefinitionType.WixPatchBaseline: 213 case SymbolDefinitionType.WixPatchBaseline:
214 case TupleDefinitionType.WixPatchFamilyGroup: 214 case SymbolDefinitionType.WixPatchFamilyGroup:
215 case TupleDefinitionType.WixPatchId: 215 case SymbolDefinitionType.WixPatchId:
216 case TupleDefinitionType.WixPatchRef: 216 case SymbolDefinitionType.WixPatchRef:
217 case TupleDefinitionType.WixPatchTarget: 217 case SymbolDefinitionType.WixPatchTarget:
218 case TupleDefinitionType.WixProperty: 218 case SymbolDefinitionType.WixProperty:
219 case TupleDefinitionType.WixSimpleReference: 219 case SymbolDefinitionType.WixSimpleReference:
220 case TupleDefinitionType.WixSuppressAction: 220 case SymbolDefinitionType.WixSuppressAction:
221 case TupleDefinitionType.WixSuppressModularization: 221 case SymbolDefinitionType.WixSuppressModularization:
222 case TupleDefinitionType.WixUI: 222 case SymbolDefinitionType.WixUI:
223 case TupleDefinitionType.WixVariable: 223 case SymbolDefinitionType.WixVariable:
224 break; 224 break;
225 225
226 // Already processed by LoadTableDefinitions. 226 // Already processed by LoadTableDefinitions.
227 case TupleDefinitionType.WixCustomTable: 227 case SymbolDefinitionType.WixCustomTable:
228 case TupleDefinitionType.WixCustomTableColumn: 228 case SymbolDefinitionType.WixCustomTableColumn:
229 break; 229 break;
230 230
231 case TupleDefinitionType.MustBeFromAnExtension: 231 case SymbolDefinitionType.MustBeFromAnExtension:
232 unknownTuple = !this.AddTupleFromExtension(tuple); 232 unknownSymbol = !this.AddSymbolFromExtension(symbol);
233 break; 233 break;
234 234
235 default: 235 default:
236 unknownTuple = !this.AddTupleDefaultly(tuple); 236 unknownSymbol = !this.AddSymbolDefaultly(symbol);
237 break; 237 break;
238 } 238 }
239 239
240 if (unknownTuple) 240 if (unknownSymbol)
241 { 241 {
242 this.Messaging.Write(WarningMessages.TupleNotTranslatedToOutput(tuple)); 242 this.Messaging.Write(WarningMessages.SymbolNotTranslatedToOutput(symbol));
243 } 243 }
244 } 244 }
245 245
246 this.AddIndexedCellTuples(cellsByTableAndRowId); 246 this.AddIndexedCellSymbols(cellsByTableAndRowId);
247 } 247 }
248 248
249 private void AddAssemblyTuple(AssemblyTuple tuple) 249 private void AddAssemblySymbol(AssemblySymbol symbol)
250 { 250 {
251 var attributes = tuple.Type == AssemblyType.Win32Assembly ? 1 : (int?)null; 251 var attributes = symbol.Type == AssemblyType.Win32Assembly ? 1 : (int?)null;
252 252
253 var row = this.CreateRow(tuple, "MsiAssembly"); 253 var row = this.CreateRow(symbol, "MsiAssembly");
254 row[0] = tuple.ComponentRef; 254 row[0] = symbol.ComponentRef;
255 row[1] = tuple.FeatureRef; 255 row[1] = symbol.FeatureRef;
256 row[2] = tuple.ManifestFileRef; 256 row[2] = symbol.ManifestFileRef;
257 row[3] = tuple.ApplicationFileRef; 257 row[3] = symbol.ApplicationFileRef;
258 row[4] = attributes; 258 row[4] = attributes;
259 } 259 }
260 260
261 private void AddBBControlTuple(BBControlTuple tuple) 261 private void AddBBControlSymbol(BBControlSymbol symbol)
262 { 262 {
263 var attributes = tuple.Attributes; 263 var attributes = symbol.Attributes;
264 attributes |= tuple.Enabled ? WindowsInstallerConstants.MsidbControlAttributesEnabled : 0; 264 attributes |= symbol.Enabled ? WindowsInstallerConstants.MsidbControlAttributesEnabled : 0;
265 attributes |= tuple.Indirect ? WindowsInstallerConstants.MsidbControlAttributesIndirect : 0; 265 attributes |= symbol.Indirect ? WindowsInstallerConstants.MsidbControlAttributesIndirect : 0;
266 attributes |= tuple.Integer ? WindowsInstallerConstants.MsidbControlAttributesInteger : 0; 266 attributes |= symbol.Integer ? WindowsInstallerConstants.MsidbControlAttributesInteger : 0;
267 attributes |= tuple.LeftScroll ? WindowsInstallerConstants.MsidbControlAttributesLeftScroll : 0; 267 attributes |= symbol.LeftScroll ? WindowsInstallerConstants.MsidbControlAttributesLeftScroll : 0;
268 attributes |= tuple.RightAligned ? WindowsInstallerConstants.MsidbControlAttributesRightAligned : 0; 268 attributes |= symbol.RightAligned ? WindowsInstallerConstants.MsidbControlAttributesRightAligned : 0;
269 attributes |= tuple.RightToLeft ? WindowsInstallerConstants.MsidbControlAttributesRTLRO : 0; 269 attributes |= symbol.RightToLeft ? WindowsInstallerConstants.MsidbControlAttributesRTLRO : 0;
270 attributes |= tuple.Sunken ? WindowsInstallerConstants.MsidbControlAttributesSunken : 0; 270 attributes |= symbol.Sunken ? WindowsInstallerConstants.MsidbControlAttributesSunken : 0;
271 attributes |= tuple.Visible ? WindowsInstallerConstants.MsidbControlAttributesVisible : 0; 271 attributes |= symbol.Visible ? WindowsInstallerConstants.MsidbControlAttributesVisible : 0;
272 272
273 var row = this.CreateRow(tuple, "BBControl"); 273 var row = this.CreateRow(symbol, "BBControl");
274 row[0] = tuple.BillboardRef; 274 row[0] = symbol.BillboardRef;
275 row[1] = tuple.BBControl; 275 row[1] = symbol.BBControl;
276 row[2] = tuple.Type; 276 row[2] = symbol.Type;
277 row[3] = tuple.X; 277 row[3] = symbol.X;
278 row[4] = tuple.Y; 278 row[4] = symbol.Y;
279 row[5] = tuple.Width; 279 row[5] = symbol.Width;
280 row[6] = tuple.Height; 280 row[6] = symbol.Height;
281 row[7] = attributes; 281 row[7] = attributes;
282 row[8] = tuple.Text; 282 row[8] = symbol.Text;
283 } 283 }
284 284
285 private void AddClassTuple(ClassTuple tuple) 285 private void AddClassSymbol(ClassSymbol symbol)
286 { 286 {
287 var row = this.CreateRow(tuple, "Class"); 287 var row = this.CreateRow(symbol, "Class");
288 row[0] = tuple.CLSID; 288 row[0] = symbol.CLSID;
289 row[1] = tuple.Context; 289 row[1] = symbol.Context;
290 row[2] = tuple.ComponentRef; 290 row[2] = symbol.ComponentRef;
291 row[3] = tuple.DefaultProgIdRef; 291 row[3] = symbol.DefaultProgIdRef;
292 row[4] = tuple.Description; 292 row[4] = symbol.Description;
293 row[5] = tuple.AppIdRef; 293 row[5] = symbol.AppIdRef;
294 row[6] = tuple.FileTypeMask; 294 row[6] = symbol.FileTypeMask;
295 row[7] = tuple.IconRef; 295 row[7] = symbol.IconRef;
296 row[8] = tuple.IconIndex; 296 row[8] = symbol.IconIndex;
297 row[9] = tuple.DefInprocHandler; 297 row[9] = symbol.DefInprocHandler;
298 row[10] = tuple.Argument; 298 row[10] = symbol.Argument;
299 row[11] = tuple.FeatureRef; 299 row[11] = symbol.FeatureRef;
300 row[12] = tuple.RelativePath ? (int?)1 : null; 300 row[12] = symbol.RelativePath ? (int?)1 : null;
301 } 301 }
302 302
303 private void AddControlTuple(ControlTuple tuple) 303 private void AddControlSymbol(ControlSymbol symbol)
304 { 304 {
305 var text = tuple.Text; 305 var text = symbol.Text;
306 var attributes = tuple.Attributes; 306 var attributes = symbol.Attributes;
307 attributes |= tuple.Enabled ? WindowsInstallerConstants.MsidbControlAttributesEnabled : 0; 307 attributes |= symbol.Enabled ? WindowsInstallerConstants.MsidbControlAttributesEnabled : 0;
308 attributes |= tuple.Indirect ? WindowsInstallerConstants.MsidbControlAttributesIndirect : 0; 308 attributes |= symbol.Indirect ? WindowsInstallerConstants.MsidbControlAttributesIndirect : 0;
309 attributes |= tuple.Integer ? WindowsInstallerConstants.MsidbControlAttributesInteger : 0; 309 attributes |= symbol.Integer ? WindowsInstallerConstants.MsidbControlAttributesInteger : 0;
310 attributes |= tuple.LeftScroll ? WindowsInstallerConstants.MsidbControlAttributesLeftScroll : 0; 310 attributes |= symbol.LeftScroll ? WindowsInstallerConstants.MsidbControlAttributesLeftScroll : 0;
311 attributes |= tuple.RightAligned ? WindowsInstallerConstants.MsidbControlAttributesRightAligned : 0; 311 attributes |= symbol.RightAligned ? WindowsInstallerConstants.MsidbControlAttributesRightAligned : 0;
312 attributes |= tuple.RightToLeft ? WindowsInstallerConstants.MsidbControlAttributesRTLRO : 0; 312 attributes |= symbol.RightToLeft ? WindowsInstallerConstants.MsidbControlAttributesRTLRO : 0;
313 attributes |= tuple.Sunken ? WindowsInstallerConstants.MsidbControlAttributesSunken : 0; 313 attributes |= symbol.Sunken ? WindowsInstallerConstants.MsidbControlAttributesSunken : 0;
314 attributes |= tuple.Visible ? WindowsInstallerConstants.MsidbControlAttributesVisible : 0; 314 attributes |= symbol.Visible ? WindowsInstallerConstants.MsidbControlAttributesVisible : 0;
315 315
316 // If we're tracking disk space, and this is a non-FormatSize Text control, 316 // If we're tracking disk space, and this is a non-FormatSize Text control,
317 // and the text attribute starts with '[' and ends with ']', add a space. 317 // and the text attribute starts with '[' and ends with ']', add a space.
318 // It is not necessary for the whole string to be a property, just those 318 // It is not necessary for the whole string to be a property, just those
319 // two characters matter. 319 // two characters matter.
320 if (tuple.TrackDiskSpace && 320 if (symbol.TrackDiskSpace &&
321 "Text" == tuple.Type && 321 "Text" == symbol.Type &&
322 WindowsInstallerConstants.MsidbControlAttributesFormatSize != (attributes & WindowsInstallerConstants.MsidbControlAttributesFormatSize) && 322 WindowsInstallerConstants.MsidbControlAttributesFormatSize != (attributes & WindowsInstallerConstants.MsidbControlAttributesFormatSize) &&
323 null != text && text.StartsWith("[", StringComparison.Ordinal) && text.EndsWith("]", StringComparison.Ordinal)) 323 null != text && text.StartsWith("[", StringComparison.Ordinal) && text.EndsWith("]", StringComparison.Ordinal))
324 { 324 {
325 text = String.Concat(text, " "); 325 text = String.Concat(text, " ");
326 } 326 }
327 327
328 var row = this.CreateRow(tuple, "Control"); 328 var row = this.CreateRow(symbol, "Control");
329 row[0] = tuple.DialogRef; 329 row[0] = symbol.DialogRef;
330 row[1] = tuple.Control; 330 row[1] = symbol.Control;
331 row[2] = tuple.Type; 331 row[2] = symbol.Type;
332 row[3] = tuple.X; 332 row[3] = symbol.X;
333 row[4] = tuple.Y; 333 row[4] = symbol.Y;
334 row[5] = tuple.Width; 334 row[5] = symbol.Width;
335 row[6] = tuple.Height; 335 row[6] = symbol.Height;
336 row[7] = attributes; 336 row[7] = attributes;
337 row[8] = text; 337 row[8] = text;
338 row[9] = tuple.NextControlRef; 338 row[9] = symbol.NextControlRef;
339 row[10] = tuple.Help; 339 row[10] = symbol.Help;
340 } 340 }
341 341
342 private void AddComponentTuple(ComponentTuple tuple) 342 private void AddComponentSymbol(ComponentSymbol symbol)
343 { 343 {
344 var attributes = ComponentLocation.Either == tuple.Location ? WindowsInstallerConstants.MsidbComponentAttributesOptional : 0; 344 var attributes = ComponentLocation.Either == symbol.Location ? WindowsInstallerConstants.MsidbComponentAttributesOptional : 0;
345 attributes |= ComponentLocation.SourceOnly == tuple.Location ? WindowsInstallerConstants.MsidbComponentAttributesSourceOnly : 0; 345 attributes |= ComponentLocation.SourceOnly == symbol.Location ? WindowsInstallerConstants.MsidbComponentAttributesSourceOnly : 0;
346 attributes |= ComponentKeyPathType.Registry == tuple.KeyPathType ? WindowsInstallerConstants.MsidbComponentAttributesRegistryKeyPath : 0; 346 attributes |= ComponentKeyPathType.Registry == symbol.KeyPathType ? WindowsInstallerConstants.MsidbComponentAttributesRegistryKeyPath : 0;
347 attributes |= ComponentKeyPathType.OdbcDataSource == tuple.KeyPathType ? WindowsInstallerConstants.MsidbComponentAttributesODBCDataSource : 0; 347 attributes |= ComponentKeyPathType.OdbcDataSource == symbol.KeyPathType ? WindowsInstallerConstants.MsidbComponentAttributesODBCDataSource : 0;
348 attributes |= tuple.DisableRegistryReflection ? WindowsInstallerConstants.MsidbComponentAttributesDisableRegistryReflection : 0; 348 attributes |= symbol.DisableRegistryReflection ? WindowsInstallerConstants.MsidbComponentAttributesDisableRegistryReflection : 0;
349 attributes |= tuple.NeverOverwrite ? WindowsInstallerConstants.MsidbComponentAttributesNeverOverwrite : 0; 349 attributes |= symbol.NeverOverwrite ? WindowsInstallerConstants.MsidbComponentAttributesNeverOverwrite : 0;
350 attributes |= tuple.Permanent ? WindowsInstallerConstants.MsidbComponentAttributesPermanent : 0; 350 attributes |= symbol.Permanent ? WindowsInstallerConstants.MsidbComponentAttributesPermanent : 0;
351 attributes |= tuple.SharedDllRefCount ? WindowsInstallerConstants.MsidbComponentAttributesSharedDllRefCount : 0; 351 attributes |= symbol.SharedDllRefCount ? WindowsInstallerConstants.MsidbComponentAttributesSharedDllRefCount : 0;
352 attributes |= tuple.Shared ? WindowsInstallerConstants.MsidbComponentAttributesShared : 0; 352 attributes |= symbol.Shared ? WindowsInstallerConstants.MsidbComponentAttributesShared : 0;
353 attributes |= tuple.Transitive ? WindowsInstallerConstants.MsidbComponentAttributesTransitive : 0; 353 attributes |= symbol.Transitive ? WindowsInstallerConstants.MsidbComponentAttributesTransitive : 0;
354 attributes |= tuple.UninstallWhenSuperseded ? WindowsInstallerConstants.MsidbComponentAttributesUninstallOnSupersedence : 0; 354 attributes |= symbol.UninstallWhenSuperseded ? WindowsInstallerConstants.MsidbComponentAttributesUninstallOnSupersedence : 0;
355 attributes |= tuple.Win64 ? WindowsInstallerConstants.MsidbComponentAttributes64bit : 0; 355 attributes |= symbol.Win64 ? WindowsInstallerConstants.MsidbComponentAttributes64bit : 0;
356 356
357 var row = this.CreateRow(tuple, "Component"); 357 var row = this.CreateRow(symbol, "Component");
358 row[0] = tuple.Id.Id; 358 row[0] = symbol.Id.Id;
359 row[1] = tuple.ComponentId; 359 row[1] = symbol.ComponentId;
360 row[2] = tuple.DirectoryRef; 360 row[2] = symbol.DirectoryRef;
361 row[3] = attributes; 361 row[3] = attributes;
362 row[4] = tuple.Condition; 362 row[4] = symbol.Condition;
363 row[5] = tuple.KeyPath; 363 row[5] = symbol.KeyPath;
364 } 364 }
365 365
366 private void AddCustomActionTuple(CustomActionTuple tuple) 366 private void AddCustomActionSymbol(CustomActionSymbol symbol)
367 { 367 {
368 var type = tuple.Win64 ? WindowsInstallerConstants.MsidbCustomActionType64BitScript : 0; 368 var type = symbol.Win64 ? WindowsInstallerConstants.MsidbCustomActionType64BitScript : 0;
369 type |= tuple.IgnoreResult ? WindowsInstallerConstants.MsidbCustomActionTypeContinue : 0; 369 type |= symbol.IgnoreResult ? WindowsInstallerConstants.MsidbCustomActionTypeContinue : 0;
370 type |= tuple.Hidden ? WindowsInstallerConstants.MsidbCustomActionTypeHideTarget : 0; 370 type |= symbol.Hidden ? WindowsInstallerConstants.MsidbCustomActionTypeHideTarget : 0;
371 type |= tuple.Async ? WindowsInstallerConstants.MsidbCustomActionTypeAsync : 0; 371 type |= symbol.Async ? WindowsInstallerConstants.MsidbCustomActionTypeAsync : 0;
372 type |= CustomActionExecutionType.FirstSequence == tuple.ExecutionType ? WindowsInstallerConstants.MsidbCustomActionTypeFirstSequence : 0; 372 type |= CustomActionExecutionType.FirstSequence == symbol.ExecutionType ? WindowsInstallerConstants.MsidbCustomActionTypeFirstSequence : 0;
373 type |= CustomActionExecutionType.OncePerProcess == tuple.ExecutionType ? WindowsInstallerConstants.MsidbCustomActionTypeOncePerProcess : 0; 373 type |= CustomActionExecutionType.OncePerProcess == symbol.ExecutionType ? WindowsInstallerConstants.MsidbCustomActionTypeOncePerProcess : 0;
374 type |= CustomActionExecutionType.ClientRepeat == tuple.ExecutionType ? WindowsInstallerConstants.MsidbCustomActionTypeClientRepeat : 0; 374 type |= CustomActionExecutionType.ClientRepeat == symbol.ExecutionType ? WindowsInstallerConstants.MsidbCustomActionTypeClientRepeat : 0;
375 type |= CustomActionExecutionType.Deferred == tuple.ExecutionType ? WindowsInstallerConstants.MsidbCustomActionTypeInScript : 0; 375 type |= CustomActionExecutionType.Deferred == symbol.ExecutionType ? WindowsInstallerConstants.MsidbCustomActionTypeInScript : 0;
376 type |= CustomActionExecutionType.Rollback == tuple.ExecutionType ? WindowsInstallerConstants.MsidbCustomActionTypeInScript | WindowsInstallerConstants.MsidbCustomActionTypeRollback : 0; 376 type |= CustomActionExecutionType.Rollback == symbol.ExecutionType ? WindowsInstallerConstants.MsidbCustomActionTypeInScript | WindowsInstallerConstants.MsidbCustomActionTypeRollback : 0;
377 type |= CustomActionExecutionType.Commit == tuple.ExecutionType ? WindowsInstallerConstants.MsidbCustomActionTypeInScript | WindowsInstallerConstants.MsidbCustomActionTypeCommit : 0; 377 type |= CustomActionExecutionType.Commit == symbol.ExecutionType ? WindowsInstallerConstants.MsidbCustomActionTypeInScript | WindowsInstallerConstants.MsidbCustomActionTypeCommit : 0;
378 type |= CustomActionSourceType.File == tuple.SourceType ? WindowsInstallerConstants.MsidbCustomActionTypeSourceFile : 0; 378 type |= CustomActionSourceType.File == symbol.SourceType ? WindowsInstallerConstants.MsidbCustomActionTypeSourceFile : 0;
379 type |= CustomActionSourceType.Directory == tuple.SourceType ? WindowsInstallerConstants.MsidbCustomActionTypeDirectory : 0; 379 type |= CustomActionSourceType.Directory == symbol.SourceType ? WindowsInstallerConstants.MsidbCustomActionTypeDirectory : 0;
380 type |= CustomActionSourceType.Property == tuple.SourceType ? WindowsInstallerConstants.MsidbCustomActionTypeProperty : 0; 380 type |= CustomActionSourceType.Property == symbol.SourceType ? WindowsInstallerConstants.MsidbCustomActionTypeProperty : 0;
381 type |= CustomActionTargetType.Dll == tuple.TargetType ? WindowsInstallerConstants.MsidbCustomActionTypeDll : 0; 381 type |= CustomActionTargetType.Dll == symbol.TargetType ? WindowsInstallerConstants.MsidbCustomActionTypeDll : 0;
382 type |= CustomActionTargetType.Exe == tuple.TargetType ? WindowsInstallerConstants.MsidbCustomActionTypeExe : 0; 382 type |= CustomActionTargetType.Exe == symbol.TargetType ? WindowsInstallerConstants.MsidbCustomActionTypeExe : 0;
383 type |= CustomActionTargetType.TextData == tuple.TargetType ? WindowsInstallerConstants.MsidbCustomActionTypeTextData : 0; 383 type |= CustomActionTargetType.TextData == symbol.TargetType ? WindowsInstallerConstants.MsidbCustomActionTypeTextData : 0;
384 type |= CustomActionTargetType.JScript == tuple.TargetType ? WindowsInstallerConstants.MsidbCustomActionTypeJScript : 0; 384 type |= CustomActionTargetType.JScript == symbol.TargetType ? WindowsInstallerConstants.MsidbCustomActionTypeJScript : 0;
385 type |= CustomActionTargetType.VBScript == tuple.TargetType ? WindowsInstallerConstants.MsidbCustomActionTypeVBScript : 0; 385 type |= CustomActionTargetType.VBScript == symbol.TargetType ? WindowsInstallerConstants.MsidbCustomActionTypeVBScript : 0;
386 386
387 if (WindowsInstallerConstants.MsidbCustomActionTypeInScript == (type & WindowsInstallerConstants.MsidbCustomActionTypeInScript)) 387 if (WindowsInstallerConstants.MsidbCustomActionTypeInScript == (type & WindowsInstallerConstants.MsidbCustomActionTypeInScript))
388 { 388 {
389 type |= tuple.Impersonate ? 0 : WindowsInstallerConstants.MsidbCustomActionTypeNoImpersonate; 389 type |= symbol.Impersonate ? 0 : WindowsInstallerConstants.MsidbCustomActionTypeNoImpersonate;
390 type |= tuple.TSAware ? WindowsInstallerConstants.MsidbCustomActionTypeTSAware : 0; 390 type |= symbol.TSAware ? WindowsInstallerConstants.MsidbCustomActionTypeTSAware : 0;
391 } 391 }
392 392
393 var row = this.CreateRow(tuple, "CustomAction"); 393 var row = this.CreateRow(symbol, "CustomAction");
394 row[0] = tuple.Id.Id; 394 row[0] = symbol.Id.Id;
395 row[1] = type; 395 row[1] = type;
396 row[2] = tuple.Source; 396 row[2] = symbol.Source;
397 row[3] = tuple.Target; 397 row[3] = symbol.Target;
398 row[4] = tuple.PatchUninstall ? (int?)WindowsInstallerConstants.MsidbCustomActionTypePatchUninstall : null; 398 row[4] = symbol.PatchUninstall ? (int?)WindowsInstallerConstants.MsidbCustomActionTypePatchUninstall : null;
399 } 399 }
400 400
401 private void AddDialogTuple(DialogTuple tuple) 401 private void AddDialogSymbol(DialogSymbol symbol)
402 { 402 {
403 var attributes = tuple.Visible ? WindowsInstallerConstants.MsidbDialogAttributesVisible : 0; 403 var attributes = symbol.Visible ? WindowsInstallerConstants.MsidbDialogAttributesVisible : 0;
404 attributes |= tuple.Modal ? WindowsInstallerConstants.MsidbDialogAttributesModal : 0; 404 attributes |= symbol.Modal ? WindowsInstallerConstants.MsidbDialogAttributesModal : 0;
405 attributes |= tuple.Minimize ? WindowsInstallerConstants.MsidbDialogAttributesMinimize : 0; 405 attributes |= symbol.Minimize ? WindowsInstallerConstants.MsidbDialogAttributesMinimize : 0;
406 attributes |= tuple.CustomPalette ? WindowsInstallerConstants.MsidbDialogAttributesUseCustomPalette : 0; 406 attributes |= symbol.CustomPalette ? WindowsInstallerConstants.MsidbDialogAttributesUseCustomPalette : 0;
407 attributes |= tuple.ErrorDialog ? WindowsInstallerConstants.MsidbDialogAttributesError : 0; 407 attributes |= symbol.ErrorDialog ? WindowsInstallerConstants.MsidbDialogAttributesError : 0;
408 attributes |= tuple.LeftScroll ? WindowsInstallerConstants.MsidbDialogAttributesLeftScroll : 0; 408 attributes |= symbol.LeftScroll ? WindowsInstallerConstants.MsidbDialogAttributesLeftScroll : 0;
409 attributes |= tuple.KeepModeless ? WindowsInstallerConstants.MsidbDialogAttributesKeepModeless : 0; 409 attributes |= symbol.KeepModeless ? WindowsInstallerConstants.MsidbDialogAttributesKeepModeless : 0;
410 attributes |= tuple.RightAligned ? WindowsInstallerConstants.MsidbDialogAttributesRightAligned : 0; 410 attributes |= symbol.RightAligned ? WindowsInstallerConstants.MsidbDialogAttributesRightAligned : 0;
411 attributes |= tuple.RightToLeft ? WindowsInstallerConstants.MsidbDialogAttributesRTLRO : 0; 411 attributes |= symbol.RightToLeft ? WindowsInstallerConstants.MsidbDialogAttributesRTLRO : 0;
412 attributes |= tuple.SystemModal ? WindowsInstallerConstants.MsidbDialogAttributesSysModal : 0; 412 attributes |= symbol.SystemModal ? WindowsInstallerConstants.MsidbDialogAttributesSysModal : 0;
413 attributes |= tuple.TrackDiskSpace ? WindowsInstallerConstants.MsidbDialogAttributesTrackDiskSpace : 0; 413 attributes |= symbol.TrackDiskSpace ? WindowsInstallerConstants.MsidbDialogAttributesTrackDiskSpace : 0;
414 414
415 var row = this.CreateRow(tuple, "Dialog"); 415 var row = this.CreateRow(symbol, "Dialog");
416 row[0] = tuple.Id.Id; 416 row[0] = symbol.Id.Id;
417 row[1] = tuple.HCentering; 417 row[1] = symbol.HCentering;
418 row[2] = tuple.VCentering; 418 row[2] = symbol.VCentering;
419 row[3] = tuple.Width; 419 row[3] = symbol.Width;
420 row[4] = tuple.Height; 420 row[4] = symbol.Height;
421 row[5] = attributes; 421 row[5] = attributes;
422 row[6] = tuple.Title; 422 row[6] = symbol.Title;
423 row[7] = tuple.FirstControlRef; 423 row[7] = symbol.FirstControlRef;
424 row[8] = tuple.DefaultControlRef; 424 row[8] = symbol.DefaultControlRef;
425 row[9] = tuple.CancelControlRef; 425 row[9] = symbol.CancelControlRef;
426 426
427 this.Output.EnsureTable(this.TableDefinitions["ListBox"]); 427 this.Output.EnsureTable(this.TableDefinitions["ListBox"]);
428 } 428 }
429 429
430 private void AddDirectoryTuple(DirectoryTuple tuple) 430 private void AddDirectorySymbol(DirectorySymbol symbol)
431 { 431 {
432 var sourceName = GetMsiFilenameValue(tuple.SourceShortName, tuple.SourceName); 432 var sourceName = GetMsiFilenameValue(symbol.SourceShortName, symbol.SourceName);
433 var targetName = GetMsiFilenameValue(tuple.ShortName, tuple.Name); 433 var targetName = GetMsiFilenameValue(symbol.ShortName, symbol.Name);
434 434
435 if (String.IsNullOrEmpty(targetName)) 435 if (String.IsNullOrEmpty(targetName))
436 { 436 {
@@ -439,20 +439,20 @@ namespace WixToolset.Core.WindowsInstaller.Bind
439 439
440 var defaultDir = String.IsNullOrEmpty(sourceName) ? targetName : targetName + ":" + sourceName; 440 var defaultDir = String.IsNullOrEmpty(sourceName) ? targetName : targetName + ":" + sourceName;
441 441
442 var row = this.CreateRow(tuple, "Directory"); 442 var row = this.CreateRow(symbol, "Directory");
443 row[0] = tuple.Id.Id; 443 row[0] = symbol.Id.Id;
444 row[1] = tuple.ParentDirectoryRef; 444 row[1] = symbol.ParentDirectoryRef;
445 row[2] = defaultDir; 445 row[2] = defaultDir;
446 } 446 }
447 447
448 private void AddEnvironmentTuple(EnvironmentTuple tuple) 448 private void AddEnvironmentSymbol(EnvironmentSymbol symbol)
449 { 449 {
450 var action = String.Empty; 450 var action = String.Empty;
451 var system = tuple.System ? "*" : String.Empty; 451 var system = symbol.System ? "*" : String.Empty;
452 var uninstall = tuple.Permanent ? String.Empty : "-"; 452 var uninstall = symbol.Permanent ? String.Empty : "-";
453 var value = tuple.Value; 453 var value = symbol.Value;
454 454
455 switch (tuple.Action) 455 switch (symbol.Action)
456 { 456 {
457 case EnvironmentActionType.Create: 457 case EnvironmentActionType.Create:
458 action = "+"; 458 action = "+";
@@ -465,219 +465,219 @@ namespace WixToolset.Core.WindowsInstaller.Bind
465 break; 465 break;
466 } 466 }
467 467
468 switch (tuple.Part) 468 switch (symbol.Part)
469 { 469 {
470 case EnvironmentPartType.First: 470 case EnvironmentPartType.First:
471 value = String.Concat(value, tuple.Separator, "[~]"); 471 value = String.Concat(value, symbol.Separator, "[~]");
472 break; 472 break;
473 case EnvironmentPartType.Last: 473 case EnvironmentPartType.Last:
474 value = String.Concat("[~]", tuple.Separator, value); 474 value = String.Concat("[~]", symbol.Separator, value);
475 break; 475 break;
476 } 476 }
477 477
478 var row = this.CreateRow(tuple, "Environment"); 478 var row = this.CreateRow(symbol, "Environment");
479 row[0] = tuple.Id.Id; 479 row[0] = symbol.Id.Id;
480 row[1] = String.Concat(action, uninstall, system, tuple.Name); 480 row[1] = String.Concat(action, uninstall, system, symbol.Name);
481 row[2] = value; 481 row[2] = value;
482 row[3] = tuple.ComponentRef; 482 row[3] = symbol.ComponentRef;
483 } 483 }
484 484
485 private void AddErrorTuple(ErrorTuple tuple) 485 private void AddErrorSymbol(ErrorSymbol symbol)
486 { 486 {
487 var row = this.CreateRow(tuple, "Error"); 487 var row = this.CreateRow(symbol, "Error");
488 row[0] = Convert.ToInt32(tuple.Id.Id); 488 row[0] = Convert.ToInt32(symbol.Id.Id);
489 row[1] = tuple.Message; 489 row[1] = symbol.Message;
490 } 490 }
491 491
492 private void AddFeatureTuple(FeatureTuple tuple) 492 private void AddFeatureSymbol(FeatureSymbol symbol)
493 { 493 {
494 var attributes = tuple.DisallowAbsent ? WindowsInstallerConstants.MsidbFeatureAttributesUIDisallowAbsent : 0; 494 var attributes = symbol.DisallowAbsent ? WindowsInstallerConstants.MsidbFeatureAttributesUIDisallowAbsent : 0;
495 attributes |= tuple.DisallowAdvertise ? WindowsInstallerConstants.MsidbFeatureAttributesDisallowAdvertise : 0; 495 attributes |= symbol.DisallowAdvertise ? WindowsInstallerConstants.MsidbFeatureAttributesDisallowAdvertise : 0;
496 attributes |= FeatureInstallDefault.FollowParent == tuple.InstallDefault ? WindowsInstallerConstants.MsidbFeatureAttributesFollowParent : 0; 496 attributes |= FeatureInstallDefault.FollowParent == symbol.InstallDefault ? WindowsInstallerConstants.MsidbFeatureAttributesFollowParent : 0;
497 attributes |= FeatureInstallDefault.Source == tuple.InstallDefault ? WindowsInstallerConstants.MsidbFeatureAttributesFavorSource : 0; 497 attributes |= FeatureInstallDefault.Source == symbol.InstallDefault ? WindowsInstallerConstants.MsidbFeatureAttributesFavorSource : 0;
498 attributes |= FeatureTypicalDefault.Advertise == tuple.TypicalDefault ? WindowsInstallerConstants.MsidbFeatureAttributesFavorAdvertise : 0; 498 attributes |= FeatureTypicalDefault.Advertise == symbol.TypicalDefault ? WindowsInstallerConstants.MsidbFeatureAttributesFavorAdvertise : 0;
499 499
500 var row = this.CreateRow(tuple, "Feature"); 500 var row = this.CreateRow(symbol, "Feature");
501 row[0] = tuple.Id.Id; 501 row[0] = symbol.Id.Id;
502 row[1] = tuple.ParentFeatureRef; 502 row[1] = symbol.ParentFeatureRef;
503 row[2] = tuple.Title; 503 row[2] = symbol.Title;
504 row[3] = tuple.Description; 504 row[3] = symbol.Description;
505 row[4] = tuple.Display; 505 row[4] = symbol.Display;
506 row[5] = tuple.Level; 506 row[5] = symbol.Level;
507 row[6] = tuple.DirectoryRef; 507 row[6] = symbol.DirectoryRef;
508 row[7] = attributes; 508 row[7] = attributes;
509 } 509 }
510 510
511 private void AddFileTuple(FileTuple tuple) 511 private void AddFileSymbol(FileSymbol symbol)
512 { 512 {
513 var row = (FileRow)this.CreateRow(tuple, "File"); 513 var row = (FileRow)this.CreateRow(symbol, "File");
514 row.File = tuple.Id.Id; 514 row.File = symbol.Id.Id;
515 row.Component = tuple.ComponentRef; 515 row.Component = symbol.ComponentRef;
516 row.FileName = GetMsiFilenameValue(tuple.ShortName, tuple.Name); 516 row.FileName = GetMsiFilenameValue(symbol.ShortName, symbol.Name);
517 row.FileSize = tuple.FileSize; 517 row.FileSize = symbol.FileSize;
518 row.Version = tuple.Version; 518 row.Version = symbol.Version;
519 row.Language = tuple.Language; 519 row.Language = symbol.Language;
520 row.DiskId = tuple.DiskId ?? 1; // TODO: is 1 the correct thing to default here 520 row.DiskId = symbol.DiskId ?? 1; // TODO: is 1 the correct thing to default here
521 row.Sequence = tuple.Sequence; 521 row.Sequence = symbol.Sequence;
522 row.Source = tuple.Source.Path; 522 row.Source = symbol.Source.Path;
523 523
524 var attributes = (tuple.Attributes & FileTupleAttributes.Checksum) == FileTupleAttributes.Checksum ? WindowsInstallerConstants.MsidbFileAttributesChecksum : 0; 524 var attributes = (symbol.Attributes & FileSymbolAttributes.Checksum) == FileSymbolAttributes.Checksum ? WindowsInstallerConstants.MsidbFileAttributesChecksum : 0;
525 attributes |= (tuple.Attributes & FileTupleAttributes.Compressed) == FileTupleAttributes.Compressed ? WindowsInstallerConstants.MsidbFileAttributesCompressed : 0; 525 attributes |= (symbol.Attributes & FileSymbolAttributes.Compressed) == FileSymbolAttributes.Compressed ? WindowsInstallerConstants.MsidbFileAttributesCompressed : 0;
526 attributes |= (tuple.Attributes & FileTupleAttributes.Uncompressed) == FileTupleAttributes.Uncompressed ? WindowsInstallerConstants.MsidbFileAttributesNoncompressed : 0; 526 attributes |= (symbol.Attributes & FileSymbolAttributes.Uncompressed) == FileSymbolAttributes.Uncompressed ? WindowsInstallerConstants.MsidbFileAttributesNoncompressed : 0;
527 attributes |= (tuple.Attributes & FileTupleAttributes.Hidden) == FileTupleAttributes.Hidden ? WindowsInstallerConstants.MsidbFileAttributesHidden : 0; 527 attributes |= (symbol.Attributes & FileSymbolAttributes.Hidden) == FileSymbolAttributes.Hidden ? WindowsInstallerConstants.MsidbFileAttributesHidden : 0;
528 attributes |= (tuple.Attributes & FileTupleAttributes.ReadOnly) == FileTupleAttributes.ReadOnly ? WindowsInstallerConstants.MsidbFileAttributesReadOnly : 0; 528 attributes |= (symbol.Attributes & FileSymbolAttributes.ReadOnly) == FileSymbolAttributes.ReadOnly ? WindowsInstallerConstants.MsidbFileAttributesReadOnly : 0;
529 attributes |= (tuple.Attributes & FileTupleAttributes.System) == FileTupleAttributes.System ? WindowsInstallerConstants.MsidbFileAttributesSystem : 0; 529 attributes |= (symbol.Attributes & FileSymbolAttributes.System) == FileSymbolAttributes.System ? WindowsInstallerConstants.MsidbFileAttributesSystem : 0;
530 attributes |= (tuple.Attributes & FileTupleAttributes.Vital) == FileTupleAttributes.Vital ? WindowsInstallerConstants.MsidbFileAttributesVital : 0; 530 attributes |= (symbol.Attributes & FileSymbolAttributes.Vital) == FileSymbolAttributes.Vital ? WindowsInstallerConstants.MsidbFileAttributesVital : 0;
531 row.Attributes = attributes; 531 row.Attributes = attributes;
532 532
533 if (tuple.FontTitle != null) 533 if (symbol.FontTitle != null)
534 { 534 {
535 var fontRow = this.CreateRow(tuple, "Font"); 535 var fontRow = this.CreateRow(symbol, "Font");
536 fontRow[0] = tuple.Id.Id; 536 fontRow[0] = symbol.Id.Id;
537 fontRow[1] = tuple.FontTitle; 537 fontRow[1] = symbol.FontTitle;
538 } 538 }
539 539
540 if (tuple.SelfRegCost.HasValue) 540 if (symbol.SelfRegCost.HasValue)
541 { 541 {
542 var selfRegRow = this.CreateRow(tuple, "SelfReg"); 542 var selfRegRow = this.CreateRow(symbol, "SelfReg");
543 selfRegRow[0] = tuple.Id.Id; 543 selfRegRow[0] = symbol.Id.Id;
544 selfRegRow[1] = tuple.SelfRegCost.Value; 544 selfRegRow[1] = symbol.SelfRegCost.Value;
545 } 545 }
546 } 546 }
547 547
548 private void AddIniFileTuple(IniFileTuple tuple) 548 private void AddIniFileSymbol(IniFileSymbol symbol)
549 { 549 {
550 var tableName = (InifFileActionType.AddLine == tuple.Action || InifFileActionType.AddTag == tuple.Action || InifFileActionType.CreateLine == tuple.Action) ? "IniFile" : "RemoveIniFile"; 550 var tableName = (InifFileActionType.AddLine == symbol.Action || InifFileActionType.AddTag == symbol.Action || InifFileActionType.CreateLine == symbol.Action) ? "IniFile" : "RemoveIniFile";
551 551
552 var row = this.CreateRow(tuple, tableName); 552 var row = this.CreateRow(symbol, tableName);
553 row[0] = tuple.Id.Id; 553 row[0] = symbol.Id.Id;
554 row[1] = tuple.FileName; 554 row[1] = symbol.FileName;
555 row[2] = tuple.DirProperty; 555 row[2] = symbol.DirProperty;
556 row[3] = tuple.Section; 556 row[3] = symbol.Section;
557 row[4] = tuple.Key; 557 row[4] = symbol.Key;
558 row[5] = tuple.Value; 558 row[5] = symbol.Value;
559 row[6] = tuple.Action; 559 row[6] = symbol.Action;
560 row[7] = tuple.ComponentRef; 560 row[7] = symbol.ComponentRef;
561 } 561 }
562 562
563 private void AddMediaTuple(MediaTuple tuple) 563 private void AddMediaSymbol(MediaSymbol symbol)
564 { 564 {
565 if (this.Section.Type != SectionType.Module) 565 if (this.Section.Type != SectionType.Module)
566 { 566 {
567 var row = (MediaRow)this.CreateRow(tuple, "Media"); 567 var row = (MediaRow)this.CreateRow(symbol, "Media");
568 row.DiskId = tuple.DiskId; 568 row.DiskId = symbol.DiskId;
569 row.LastSequence = tuple.LastSequence ?? 0; 569 row.LastSequence = symbol.LastSequence ?? 0;
570 row.DiskPrompt = tuple.DiskPrompt; 570 row.DiskPrompt = symbol.DiskPrompt;
571 row.Cabinet = tuple.Cabinet; 571 row.Cabinet = symbol.Cabinet;
572 row.VolumeLabel = tuple.VolumeLabel; 572 row.VolumeLabel = symbol.VolumeLabel;
573 row.Source = tuple.Source; 573 row.Source = symbol.Source;
574 } 574 }
575 } 575 }
576 576
577 private void AddModuleConfigurationTuple(ModuleConfigurationTuple tuple) 577 private void AddModuleConfigurationSymbol(ModuleConfigurationSymbol symbol)
578 { 578 {
579 var row = this.CreateRow(tuple, "ModuleConfiguration"); 579 var row = this.CreateRow(symbol, "ModuleConfiguration");
580 row[0] = tuple.Id.Id; 580 row[0] = symbol.Id.Id;
581 row[1] = tuple.Format; 581 row[1] = symbol.Format;
582 row[2] = tuple.Type; 582 row[2] = symbol.Type;
583 row[3] = tuple.ContextData; 583 row[3] = symbol.ContextData;
584 row[4] = tuple.DefaultValue; 584 row[4] = symbol.DefaultValue;
585 row[5] = (tuple.KeyNoOrphan ? WindowsInstallerConstants.MsidbMsmConfigurableOptionKeyNoOrphan : 0) | 585 row[5] = (symbol.KeyNoOrphan ? WindowsInstallerConstants.MsidbMsmConfigurableOptionKeyNoOrphan : 0) |
586 (tuple.NonNullable ? WindowsInstallerConstants.MsidbMsmConfigurableOptionNonNullable : 0); 586 (symbol.NonNullable ? WindowsInstallerConstants.MsidbMsmConfigurableOptionNonNullable : 0);
587 row[6] = tuple.DisplayName; 587 row[6] = symbol.DisplayName;
588 row[7] = tuple.Description; 588 row[7] = symbol.Description;
589 row[8] = tuple.HelpLocation; 589 row[8] = symbol.HelpLocation;
590 row[9] = tuple.HelpKeyword; 590 row[9] = symbol.HelpKeyword;
591 } 591 }
592 592
593 private void AddMsiEmbeddedUITuple(MsiEmbeddedUITuple tuple) 593 private void AddMsiEmbeddedUISymbol(MsiEmbeddedUISymbol symbol)
594 { 594 {
595 var attributes = tuple.EntryPoint ? WindowsInstallerConstants.MsidbEmbeddedUI : 0; 595 var attributes = symbol.EntryPoint ? WindowsInstallerConstants.MsidbEmbeddedUI : 0;
596 attributes |= tuple.SupportsBasicUI ? WindowsInstallerConstants.MsidbEmbeddedHandlesBasic : 0; 596 attributes |= symbol.SupportsBasicUI ? WindowsInstallerConstants.MsidbEmbeddedHandlesBasic : 0;
597 597
598 var row = this.CreateRow(tuple, "MsiEmbeddedUI"); 598 var row = this.CreateRow(symbol, "MsiEmbeddedUI");
599 row[0] = tuple.Id.Id; 599 row[0] = symbol.Id.Id;
600 row[1] = tuple.FileName; 600 row[1] = symbol.FileName;
601 row[2] = attributes; 601 row[2] = attributes;
602 row[3] = tuple.MessageFilter; 602 row[3] = symbol.MessageFilter;
603 row[4] = tuple.Source; 603 row[4] = symbol.Source;
604 } 604 }
605 605
606 private void AddMsiServiceConfigTuple(MsiServiceConfigTuple tuple) 606 private void AddMsiServiceConfigSymbol(MsiServiceConfigSymbol symbol)
607 { 607 {
608 var events = tuple.OnInstall ? WindowsInstallerConstants.MsidbServiceConfigEventInstall : 0; 608 var events = symbol.OnInstall ? WindowsInstallerConstants.MsidbServiceConfigEventInstall : 0;
609 events |= tuple.OnReinstall ? WindowsInstallerConstants.MsidbServiceConfigEventReinstall : 0; 609 events |= symbol.OnReinstall ? WindowsInstallerConstants.MsidbServiceConfigEventReinstall : 0;
610 events |= tuple.OnUninstall ? WindowsInstallerConstants.MsidbServiceConfigEventUninstall : 0; 610 events |= symbol.OnUninstall ? WindowsInstallerConstants.MsidbServiceConfigEventUninstall : 0;
611 611
612 var row = this.CreateRow(tuple, "MsiServiceConfigFailureActions"); 612 var row = this.CreateRow(symbol, "MsiServiceConfigFailureActions");
613 row[0] = tuple.Id.Id; 613 row[0] = symbol.Id.Id;
614 row[1] = tuple.Name; 614 row[1] = symbol.Name;
615 row[2] = events; 615 row[2] = events;
616 row[3] = tuple.ConfigType; 616 row[3] = symbol.ConfigType;
617 row[4] = tuple.Argument; 617 row[4] = symbol.Argument;
618 row[5] = tuple.ComponentRef; 618 row[5] = symbol.ComponentRef;
619 } 619 }
620 620
621 private void AddMsiServiceConfigFailureActionsTuple(MsiServiceConfigFailureActionsTuple tuple) 621 private void AddMsiServiceConfigFailureActionsSymbol(MsiServiceConfigFailureActionsSymbol symbol)
622 { 622 {
623 var events = tuple.OnInstall ? WindowsInstallerConstants.MsidbServiceConfigEventInstall : 0; 623 var events = symbol.OnInstall ? WindowsInstallerConstants.MsidbServiceConfigEventInstall : 0;
624 events |= tuple.OnReinstall ? WindowsInstallerConstants.MsidbServiceConfigEventReinstall : 0; 624 events |= symbol.OnReinstall ? WindowsInstallerConstants.MsidbServiceConfigEventReinstall : 0;
625 events |= tuple.OnUninstall ? WindowsInstallerConstants.MsidbServiceConfigEventUninstall : 0; 625 events |= symbol.OnUninstall ? WindowsInstallerConstants.MsidbServiceConfigEventUninstall : 0;
626 626
627 var row = this.CreateRow(tuple, "MsiServiceConfig"); 627 var row = this.CreateRow(symbol, "MsiServiceConfig");
628 row[0] = tuple.Id.Id; 628 row[0] = symbol.Id.Id;
629 row[1] = tuple.Name; 629 row[1] = symbol.Name;
630 row[2] = events; 630 row[2] = events;
631 row[3] = tuple.ResetPeriod.HasValue ? tuple.ResetPeriod : null; 631 row[3] = symbol.ResetPeriod.HasValue ? symbol.ResetPeriod : null;
632 row[4] = tuple.RebootMessage ?? "[~]"; 632 row[4] = symbol.RebootMessage ?? "[~]";
633 row[5] = tuple.Command ?? "[~]"; 633 row[5] = symbol.Command ?? "[~]";
634 row[6] = tuple.Actions; 634 row[6] = symbol.Actions;
635 row[7] = tuple.DelayActions; 635 row[7] = symbol.DelayActions;
636 row[8] = tuple.ComponentRef; 636 row[8] = symbol.ComponentRef;
637 } 637 }
638 638
639 private void AddMoveFileTuple(MoveFileTuple tuple) 639 private void AddMoveFileSymbol(MoveFileSymbol symbol)
640 { 640 {
641 var row = this.CreateRow(tuple, "MoveFile"); 641 var row = this.CreateRow(symbol, "MoveFile");
642 row[0] = tuple.Id.Id; 642 row[0] = symbol.Id.Id;
643 row[1] = tuple.ComponentRef; 643 row[1] = symbol.ComponentRef;
644 row[2] = tuple.SourceName; 644 row[2] = symbol.SourceName;
645 row[3] = tuple.DestName; 645 row[3] = symbol.DestName;
646 row[4] = tuple.SourceFolder; 646 row[4] = symbol.SourceFolder;
647 row[5] = tuple.DestFolder; 647 row[5] = symbol.DestFolder;
648 row[6] = tuple.Delete ? WindowsInstallerConstants.MsidbMoveFileOptionsMove : 0; 648 row[6] = symbol.Delete ? WindowsInstallerConstants.MsidbMoveFileOptionsMove : 0;
649 } 649 }
650 650
651 private void AddPropertyTuple(PropertyTuple tuple) 651 private void AddPropertySymbol(PropertySymbol symbol)
652 { 652 {
653 if (String.IsNullOrEmpty(tuple.Value)) 653 if (String.IsNullOrEmpty(symbol.Value))
654 { 654 {
655 return; 655 return;
656 } 656 }
657 657
658 var row = (PropertyRow)this.CreateRow(tuple, "Property"); 658 var row = (PropertyRow)this.CreateRow(symbol, "Property");
659 row.Property = tuple.Id.Id; 659 row.Property = symbol.Id.Id;
660 row.Value = tuple.Value; 660 row.Value = symbol.Value;
661 } 661 }
662 662
663 private void AddRemoveFileTuple(RemoveFileTuple tuple) 663 private void AddRemoveFileSymbol(RemoveFileSymbol symbol)
664 { 664 {
665 var installMode = tuple.OnInstall == true ? WindowsInstallerConstants.MsidbRemoveFileInstallModeOnInstall : 0; 665 var installMode = symbol.OnInstall == true ? WindowsInstallerConstants.MsidbRemoveFileInstallModeOnInstall : 0;
666 installMode |= tuple.OnUninstall == true ? WindowsInstallerConstants.MsidbRemoveFileInstallModeOnRemove : 0; 666 installMode |= symbol.OnUninstall == true ? WindowsInstallerConstants.MsidbRemoveFileInstallModeOnRemove : 0;
667 667
668 var row = this.CreateRow(tuple, "RemoveFile"); 668 var row = this.CreateRow(symbol, "RemoveFile");
669 row[0] = tuple.Id.Id; 669 row[0] = symbol.Id.Id;
670 row[1] = tuple.ComponentRef; 670 row[1] = symbol.ComponentRef;
671 row[2] = tuple.FileName; 671 row[2] = symbol.FileName;
672 row[3] = tuple.DirProperty; 672 row[3] = symbol.DirProperty;
673 row[4] = installMode; 673 row[4] = installMode;
674 } 674 }
675 675
676 private void AddRegistryTuple(RegistryTuple tuple) 676 private void AddRegistrySymbol(RegistrySymbol symbol)
677 { 677 {
678 var value = tuple.Value; 678 var value = symbol.Value;
679 679
680 switch (tuple.ValueType) 680 switch (symbol.ValueType)
681 { 681 {
682 case RegistryValueType.Binary: 682 case RegistryValueType.Binary:
683 value = String.Concat("#x", value); 683 value = String.Concat("#x", value);
@@ -689,7 +689,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
689 value = String.Concat("#", value); 689 value = String.Concat("#", value);
690 break; 690 break;
691 case RegistryValueType.MultiString: 691 case RegistryValueType.MultiString:
692 switch (tuple.ValueAction) 692 switch (symbol.ValueAction)
693 { 693 {
694 case RegistryValueActionType.Append: 694 case RegistryValueActionType.Append:
695 value = String.Concat("[~]", value); 695 value = String.Concat("[~]", value);
@@ -715,164 +715,164 @@ namespace WixToolset.Core.WindowsInstaller.Bind
715 break; 715 break;
716 } 716 }
717 717
718 var row = this.CreateRow(tuple, "Registry"); 718 var row = this.CreateRow(symbol, "Registry");
719 row[0] = tuple.Id.Id; 719 row[0] = symbol.Id.Id;
720 row[1] = tuple.Root; 720 row[1] = symbol.Root;
721 row[2] = tuple.Key; 721 row[2] = symbol.Key;
722 row[3] = tuple.Name; 722 row[3] = symbol.Name;
723 row[4] = value; 723 row[4] = value;
724 row[5] = tuple.ComponentRef; 724 row[5] = symbol.ComponentRef;
725 } 725 }
726 726
727 private void AddRegLocatorTuple(RegLocatorTuple tuple) 727 private void AddRegLocatorSymbol(RegLocatorSymbol symbol)
728 { 728 {
729 var type = (int)tuple.Type; 729 var type = (int)symbol.Type;
730 type |= tuple.Win64 ? WindowsInstallerConstants.MsidbLocatorType64bit : 0; 730 type |= symbol.Win64 ? WindowsInstallerConstants.MsidbLocatorType64bit : 0;
731 731
732 var row = this.CreateRow(tuple, "RegLocator"); 732 var row = this.CreateRow(symbol, "RegLocator");
733 row[0] = tuple.Id.Id; 733 row[0] = symbol.Id.Id;
734 row[1] = tuple.Root; 734 row[1] = symbol.Root;
735 row[2] = tuple.Key; 735 row[2] = symbol.Key;
736 row[3] = tuple.Name; 736 row[3] = symbol.Name;
737 row[4] = type; 737 row[4] = type;
738 } 738 }
739 739
740 private void AddRemoveRegistryTuple(RemoveRegistryTuple tuple) 740 private void AddRemoveRegistrySymbol(RemoveRegistrySymbol symbol)
741 { 741 {
742 if (tuple.Action == RemoveRegistryActionType.RemoveOnInstall) 742 if (symbol.Action == RemoveRegistryActionType.RemoveOnInstall)
743 { 743 {
744 var row = this.CreateRow(tuple, "RemoveRegistry"); 744 var row = this.CreateRow(symbol, "RemoveRegistry");
745 row[0] = tuple.Id.Id; 745 row[0] = symbol.Id.Id;
746 row[1] = tuple.Root; 746 row[1] = symbol.Root;
747 row[2] = tuple.Key; 747 row[2] = symbol.Key;
748 row[3] = tuple.Name; 748 row[3] = symbol.Name;
749 row[4] = tuple.ComponentRef; 749 row[4] = symbol.ComponentRef;
750 } 750 }
751 else // Registry table is used to remove registry keys on uninstall. 751 else // Registry table is used to remove registry keys on uninstall.
752 { 752 {
753 var row = this.CreateRow(tuple, "Registry"); 753 var row = this.CreateRow(symbol, "Registry");
754 row[0] = tuple.Id.Id; 754 row[0] = symbol.Id.Id;
755 row[1] = tuple.Root; 755 row[1] = symbol.Root;
756 row[2] = tuple.Key; 756 row[2] = symbol.Key;
757 row[3] = tuple.Name; 757 row[3] = symbol.Name;
758 row[5] = tuple.ComponentRef; 758 row[5] = symbol.ComponentRef;
759 } 759 }
760 } 760 }
761 761
762 private void AddServiceControlTuple(ServiceControlTuple tuple) 762 private void AddServiceControlSymbol(ServiceControlSymbol symbol)
763 { 763 {
764 var events = tuple.InstallRemove ? WindowsInstallerConstants.MsidbServiceControlEventDelete : 0; 764 var events = symbol.InstallRemove ? WindowsInstallerConstants.MsidbServiceControlEventDelete : 0;
765 events |= tuple.UninstallRemove ? WindowsInstallerConstants.MsidbServiceControlEventUninstallDelete : 0; 765 events |= symbol.UninstallRemove ? WindowsInstallerConstants.MsidbServiceControlEventUninstallDelete : 0;
766 events |= tuple.InstallStart ? WindowsInstallerConstants.MsidbServiceControlEventStart : 0; 766 events |= symbol.InstallStart ? WindowsInstallerConstants.MsidbServiceControlEventStart : 0;
767 events |= tuple.UninstallStart ? WindowsInstallerConstants.MsidbServiceControlEventUninstallStart : 0; 767 events |= symbol.UninstallStart ? WindowsInstallerConstants.MsidbServiceControlEventUninstallStart : 0;
768 events |= tuple.InstallStop ? WindowsInstallerConstants.MsidbServiceControlEventStop : 0; 768 events |= symbol.InstallStop ? WindowsInstallerConstants.MsidbServiceControlEventStop : 0;
769 events |= tuple.UninstallStop ? WindowsInstallerConstants.MsidbServiceControlEventUninstallStop : 0; 769 events |= symbol.UninstallStop ? WindowsInstallerConstants.MsidbServiceControlEventUninstallStop : 0;
770 770
771 var row = this.CreateRow(tuple, "ServiceControl"); 771 var row = this.CreateRow(symbol, "ServiceControl");
772 row[0] = tuple.Id.Id; 772 row[0] = symbol.Id.Id;
773 row[1] = tuple.Name; 773 row[1] = symbol.Name;
774 row[2] = events; 774 row[2] = events;
775 row[3] = tuple.Arguments; 775 row[3] = symbol.Arguments;
776 if (tuple.Wait.HasValue) 776 if (symbol.Wait.HasValue)
777 { 777 {
778 row[4] = tuple.Wait.Value ? 1 : 0; 778 row[4] = symbol.Wait.Value ? 1 : 0;
779 } 779 }
780 row[5] = tuple.ComponentRef; 780 row[5] = symbol.ComponentRef;
781 } 781 }
782 782
783 private void AddServiceInstallTuple(ServiceInstallTuple tuple) 783 private void AddServiceInstallSymbol(ServiceInstallSymbol symbol)
784 { 784 {
785 var errorControl = (int)tuple.ErrorControl; 785 var errorControl = (int)symbol.ErrorControl;
786 errorControl |= tuple.Vital ? WindowsInstallerConstants.MsidbServiceInstallErrorControlVital : 0; 786 errorControl |= symbol.Vital ? WindowsInstallerConstants.MsidbServiceInstallErrorControlVital : 0;
787 787
788 var serviceType = (int)tuple.ServiceType; 788 var serviceType = (int)symbol.ServiceType;
789 serviceType |= tuple.Interactive ? WindowsInstallerConstants.MsidbServiceInstallInteractive : 0; 789 serviceType |= symbol.Interactive ? WindowsInstallerConstants.MsidbServiceInstallInteractive : 0;
790 790
791 var row = this.CreateRow(tuple, "ServiceInstall"); 791 var row = this.CreateRow(symbol, "ServiceInstall");
792 row[0] = tuple.Id.Id; 792 row[0] = symbol.Id.Id;
793 row[1] = tuple.Name; 793 row[1] = symbol.Name;
794 row[2] = tuple.DisplayName; 794 row[2] = symbol.DisplayName;
795 row[3] = serviceType; 795 row[3] = serviceType;
796 row[4] = (int)tuple.StartType; 796 row[4] = (int)symbol.StartType;
797 row[5] = errorControl; 797 row[5] = errorControl;
798 row[6] = tuple.LoadOrderGroup; 798 row[6] = symbol.LoadOrderGroup;
799 row[7] = tuple.Dependencies; 799 row[7] = symbol.Dependencies;
800 row[8] = tuple.StartName; 800 row[8] = symbol.StartName;
801 row[9] = tuple.Password; 801 row[9] = symbol.Password;
802 row[10] = tuple.Arguments; 802 row[10] = symbol.Arguments;
803 row[11] = tuple.ComponentRef; 803 row[11] = symbol.ComponentRef;
804 row[12] = tuple.Description; 804 row[12] = symbol.Description;
805 } 805 }
806 806
807 private void AddShortcutTuple(ShortcutTuple tuple) 807 private void AddShortcutSymbol(ShortcutSymbol symbol)
808 { 808 {
809 var row = this.CreateRow(tuple, "Shortcut"); 809 var row = this.CreateRow(symbol, "Shortcut");
810 row[0] = tuple.Id.Id; 810 row[0] = symbol.Id.Id;
811 row[1] = tuple.DirectoryRef; 811 row[1] = symbol.DirectoryRef;
812 row[2] = GetMsiFilenameValue(tuple.ShortName, tuple.Name); 812 row[2] = GetMsiFilenameValue(symbol.ShortName, symbol.Name);
813 row[3] = tuple.ComponentRef; 813 row[3] = symbol.ComponentRef;
814 row[4] = tuple.Target; 814 row[4] = symbol.Target;
815 row[5] = tuple.Arguments; 815 row[5] = symbol.Arguments;
816 row[6] = tuple.Description; 816 row[6] = symbol.Description;
817 row[7] = tuple.Hotkey; 817 row[7] = symbol.Hotkey;
818 row[8] = tuple.IconRef; 818 row[8] = symbol.IconRef;
819 row[9] = tuple.IconIndex; 819 row[9] = symbol.IconIndex;
820 row[10] = (int?)tuple.Show; 820 row[10] = (int?)symbol.Show;
821 row[11] = tuple.WorkingDirectory; 821 row[11] = symbol.WorkingDirectory;
822 row[12] = tuple.DisplayResourceDll; 822 row[12] = symbol.DisplayResourceDll;
823 row[13] = tuple.DisplayResourceId; 823 row[13] = symbol.DisplayResourceId;
824 row[14] = tuple.DescriptionResourceDll; 824 row[14] = symbol.DescriptionResourceDll;
825 row[15] = tuple.DescriptionResourceId; 825 row[15] = symbol.DescriptionResourceId;
826 } 826 }
827 827
828 private void AddTextStyleTuple(TextStyleTuple tuple) 828 private void AddTextStyleSymbol(TextStyleSymbol symbol)
829 { 829 {
830 var styleBits = tuple.Bold ? WindowsInstallerConstants.MsidbTextStyleStyleBitsBold : 0; 830 var styleBits = symbol.Bold ? WindowsInstallerConstants.MsidbTextStyleStyleBitsBold : 0;
831 styleBits |= tuple.Italic ? WindowsInstallerConstants.MsidbTextStyleStyleBitsItalic : 0; 831 styleBits |= symbol.Italic ? WindowsInstallerConstants.MsidbTextStyleStyleBitsItalic : 0;
832 styleBits |= tuple.Strike ? WindowsInstallerConstants.MsidbTextStyleStyleBitsStrike : 0; 832 styleBits |= symbol.Strike ? WindowsInstallerConstants.MsidbTextStyleStyleBitsStrike : 0;
833 styleBits |= tuple.Underline ? WindowsInstallerConstants.MsidbTextStyleStyleBitsUnderline : 0; 833 styleBits |= symbol.Underline ? WindowsInstallerConstants.MsidbTextStyleStyleBitsUnderline : 0;
834 834
835 long? color = null; 835 long? color = null;
836 836
837 if (tuple.Red.HasValue || tuple.Green.HasValue || tuple.Blue.HasValue) 837 if (symbol.Red.HasValue || symbol.Green.HasValue || symbol.Blue.HasValue)
838 { 838 {
839 color = tuple.Red ?? 0; 839 color = symbol.Red ?? 0;
840 color += (long)(tuple.Green ?? 0) * 256; 840 color += (long)(symbol.Green ?? 0) * 256;
841 color += (long)(tuple.Blue ?? 0) * 65536; 841 color += (long)(symbol.Blue ?? 0) * 65536;
842 } 842 }
843 843
844 var row = this.CreateRow(tuple, "TextStyle"); 844 var row = this.CreateRow(symbol, "TextStyle");
845 row[0] = tuple.Id.Id; 845 row[0] = symbol.Id.Id;
846 row[1] = tuple.FaceName; 846 row[1] = symbol.FaceName;
847 row[2] = tuple.Size; 847 row[2] = symbol.Size;
848 row[3] = color; 848 row[3] = color;
849 row[4] = styleBits == 0 ? null : (int?)styleBits; 849 row[4] = styleBits == 0 ? null : (int?)styleBits;
850 } 850 }
851 851
852 private void AddUpgradeTuple(UpgradeTuple tuple) 852 private void AddUpgradeSymbol(UpgradeSymbol symbol)
853 { 853 {
854 var row = (UpgradeRow)this.CreateRow(tuple, "Upgrade"); 854 var row = (UpgradeRow)this.CreateRow(symbol, "Upgrade");
855 row.UpgradeCode = tuple.UpgradeCode; 855 row.UpgradeCode = symbol.UpgradeCode;
856 row.VersionMin = tuple.VersionMin; 856 row.VersionMin = symbol.VersionMin;
857 row.VersionMax = tuple.VersionMax; 857 row.VersionMax = symbol.VersionMax;
858 row.Language = tuple.Language; 858 row.Language = symbol.Language;
859 row.Remove = tuple.Remove; 859 row.Remove = symbol.Remove;
860 row.ActionProperty = tuple.ActionProperty; 860 row.ActionProperty = symbol.ActionProperty;
861 861
862 var attributes = tuple.MigrateFeatures ? WindowsInstallerConstants.MsidbUpgradeAttributesMigrateFeatures : 0; 862 var attributes = symbol.MigrateFeatures ? WindowsInstallerConstants.MsidbUpgradeAttributesMigrateFeatures : 0;
863 attributes |= tuple.OnlyDetect ? WindowsInstallerConstants.MsidbUpgradeAttributesOnlyDetect : 0; 863 attributes |= symbol.OnlyDetect ? WindowsInstallerConstants.MsidbUpgradeAttributesOnlyDetect : 0;
864 attributes |= tuple.IgnoreRemoveFailures ? WindowsInstallerConstants.MsidbUpgradeAttributesIgnoreRemoveFailure : 0; 864 attributes |= symbol.IgnoreRemoveFailures ? WindowsInstallerConstants.MsidbUpgradeAttributesIgnoreRemoveFailure : 0;
865 attributes |= tuple.VersionMinInclusive ? WindowsInstallerConstants.MsidbUpgradeAttributesVersionMinInclusive : 0; 865 attributes |= symbol.VersionMinInclusive ? WindowsInstallerConstants.MsidbUpgradeAttributesVersionMinInclusive : 0;
866 attributes |= tuple.VersionMaxInclusive ? WindowsInstallerConstants.MsidbUpgradeAttributesVersionMaxInclusive : 0; 866 attributes |= symbol.VersionMaxInclusive ? WindowsInstallerConstants.MsidbUpgradeAttributesVersionMaxInclusive : 0;
867 attributes |= tuple.ExcludeLanguages ? WindowsInstallerConstants.MsidbUpgradeAttributesLanguagesExclusive : 0; 867 attributes |= symbol.ExcludeLanguages ? WindowsInstallerConstants.MsidbUpgradeAttributesLanguagesExclusive : 0;
868 row.Attributes = attributes; 868 row.Attributes = attributes;
869 } 869 }
870 870
871 private void AddWixActionTuple(WixActionTuple tuple) 871 private void AddWixActionSymbol(WixActionSymbol symbol)
872 { 872 {
873 // Get the table definition for the action (and ensure the proper table exists for a module). 873 // Get the table definition for the action (and ensure the proper table exists for a module).
874 string sequenceTableName = null; 874 string sequenceTableName = null;
875 switch (tuple.SequenceTable) 875 switch (symbol.SequenceTable)
876 { 876 {
877 case SequenceTable.AdminExecuteSequence: 877 case SequenceTable.AdminExecuteSequence:
878 if (OutputType.Module == this.Output.Type) 878 if (OutputType.Module == this.Output.Type)
@@ -932,60 +932,60 @@ namespace WixToolset.Core.WindowsInstaller.Bind
932 } 932 }
933 933
934 // create the action sequence row in the output 934 // create the action sequence row in the output
935 var row = this.CreateRow(tuple, sequenceTableName); 935 var row = this.CreateRow(symbol, sequenceTableName);
936 936
937 if (SectionType.Module == this.Section.Type) 937 if (SectionType.Module == this.Section.Type)
938 { 938 {
939 row[0] = tuple.Action; 939 row[0] = symbol.Action;
940 if (0 != tuple.Sequence) 940 if (0 != symbol.Sequence)
941 { 941 {
942 row[1] = tuple.Sequence; 942 row[1] = symbol.Sequence;
943 } 943 }
944 else 944 else
945 { 945 {
946 var after = (null == tuple.Before); 946 var after = (null == symbol.Before);
947 row[2] = after ? tuple.After : tuple.Before; 947 row[2] = after ? symbol.After : symbol.Before;
948 row[3] = after ? 1 : 0; 948 row[3] = after ? 1 : 0;
949 } 949 }
950 row[4] = tuple.Condition; 950 row[4] = symbol.Condition;
951 } 951 }
952 else 952 else
953 { 953 {
954 row[0] = tuple.Action; 954 row[0] = symbol.Action;
955 row[1] = tuple.Condition; 955 row[1] = symbol.Condition;
956 row[2] = tuple.Sequence; 956 row[2] = symbol.Sequence;
957 } 957 }
958 } 958 }
959 959
960 private void IndexCustomTableCellTuple(WixCustomTableCellTuple wixCustomTableCellTuple, Dictionary<string, List<WixCustomTableCellTuple>> cellsByTableAndRowId) 960 private void IndexCustomTableCellSymbol(WixCustomTableCellSymbol wixCustomTableCellSymbol, Dictionary<string, List<WixCustomTableCellSymbol>> cellsByTableAndRowId)
961 { 961 {
962 var tableAndRowId = wixCustomTableCellTuple.TableRef + "/" + wixCustomTableCellTuple.RowId; 962 var tableAndRowId = wixCustomTableCellSymbol.TableRef + "/" + wixCustomTableCellSymbol.RowId;
963 if (!cellsByTableAndRowId.TryGetValue(tableAndRowId, out var cells)) 963 if (!cellsByTableAndRowId.TryGetValue(tableAndRowId, out var cells))
964 { 964 {
965 cells = new List<WixCustomTableCellTuple>(); 965 cells = new List<WixCustomTableCellSymbol>();
966 cellsByTableAndRowId.Add(tableAndRowId, cells); 966 cellsByTableAndRowId.Add(tableAndRowId, cells);
967 } 967 }
968 968
969 cells.Add(wixCustomTableCellTuple); 969 cells.Add(wixCustomTableCellSymbol);
970 } 970 }
971 971
972 private void AddIndexedCellTuples(Dictionary<string, List<WixCustomTableCellTuple>> cellsByTableAndRowId) 972 private void AddIndexedCellSymbols(Dictionary<string, List<WixCustomTableCellSymbol>> cellsByTableAndRowId)
973 { 973 {
974 foreach (var rowOfCells in cellsByTableAndRowId.Values) 974 foreach (var rowOfCells in cellsByTableAndRowId.Values)
975 { 975 {
976 var firstCellTuple = rowOfCells[0]; 976 var firstCellSymbol = rowOfCells[0];
977 var customTableDefinition = this.TableDefinitions[firstCellTuple.TableRef]; 977 var customTableDefinition = this.TableDefinitions[firstCellSymbol.TableRef];
978 978
979 if (customTableDefinition.Unreal) 979 if (customTableDefinition.Unreal)
980 { 980 {
981 continue; 981 continue;
982 } 982 }
983 983
984 var customRow = this.CreateRow(firstCellTuple, customTableDefinition); 984 var customRow = this.CreateRow(firstCellSymbol, customTableDefinition);
985 var customRowFieldsByColumnName = customRow.Fields.ToDictionary(f => f.Column.Name); 985 var customRowFieldsByColumnName = customRow.Fields.ToDictionary(f => f.Column.Name);
986 986
987#if TODO // SectionId seems like a good thing to preserve. 987#if TODO // SectionId seems like a good thing to preserve.
988 customRow.SectionId = tuple.SectionId; 988 customRow.SectionId = symbol.SectionId;
989#endif 989#endif
990 foreach (var cell in rowOfCells) 990 foreach (var cell in rowOfCells)
991 { 991 {
@@ -1037,23 +1037,23 @@ namespace WixToolset.Core.WindowsInstaller.Bind
1037 { 1037 {
1038 if (!customTableDefinition.Columns[i].Nullable && (null == customRow.Fields[i].Data || 0 == customRow.Fields[i].Data.ToString().Length)) 1038 if (!customTableDefinition.Columns[i].Nullable && (null == customRow.Fields[i].Data || 0 == customRow.Fields[i].Data.ToString().Length))
1039 { 1039 {
1040 this.Messaging.Write(ErrorMessages.NoDataForColumn(firstCellTuple.SourceLineNumbers, customTableDefinition.Columns[i].Name, customTableDefinition.Name)); 1040 this.Messaging.Write(ErrorMessages.NoDataForColumn(firstCellSymbol.SourceLineNumbers, customTableDefinition.Columns[i].Name, customTableDefinition.Name));
1041 } 1041 }
1042 } 1042 }
1043 } 1043 }
1044 } 1044 }
1045 1045
1046 private void AddWixEnsureTableTuple(WixEnsureTableTuple tuple) 1046 private void AddWixEnsureTableSymbol(WixEnsureTableSymbol symbol)
1047 { 1047 {
1048 var tableDefinition = this.TableDefinitions[tuple.Table]; 1048 var tableDefinition = this.TableDefinitions[symbol.Table];
1049 this.Output.EnsureTable(tableDefinition); 1049 this.Output.EnsureTable(tableDefinition);
1050 } 1050 }
1051 1051
1052 private bool AddTupleFromExtension(IntermediateTuple tuple) 1052 private bool AddSymbolFromExtension(IntermediateSymbol symbol)
1053 { 1053 {
1054 foreach (var extension in this.BackendExtensions) 1054 foreach (var extension in this.BackendExtensions)
1055 { 1055 {
1056 if (extension.TryAddTupleToOutput(this.Section, tuple, this.Output, this.TableDefinitions)) 1056 if (extension.TryAddSymbolToOutput(this.Section, symbol, this.Output, this.TableDefinitions))
1057 { 1057 {
1058 return true; 1058 return true;
1059 } 1059 }
@@ -1062,8 +1062,8 @@ namespace WixToolset.Core.WindowsInstaller.Bind
1062 return false; 1062 return false;
1063 } 1063 }
1064 1064
1065 private bool AddTupleDefaultly(IntermediateTuple tuple) => 1065 private bool AddSymbolDefaultly(IntermediateSymbol symbol) =>
1066 this.BackendHelper.TryAddTupleToOutputMatchingTableDefinitions(this.Section, tuple, this.Output, this.TableDefinitions); 1066 this.BackendHelper.TryAddSymbolToOutputMatchingTableDefinitions(this.Section, symbol, this.Output, this.TableDefinitions);
1067 1067
1068 private static OutputType SectionTypeToOutputType(SectionType type) 1068 private static OutputType SectionTypeToOutputType(SectionType type)
1069 { 1069 {
@@ -1085,11 +1085,11 @@ namespace WixToolset.Core.WindowsInstaller.Bind
1085 } 1085 }
1086 } 1086 }
1087 1087
1088 private Row CreateRow(IntermediateTuple tuple, string tableDefinitionName) => 1088 private Row CreateRow(IntermediateSymbol symbol, string tableDefinitionName) =>
1089 this.CreateRow(tuple, this.TableDefinitions[tableDefinitionName]); 1089 this.CreateRow(symbol, this.TableDefinitions[tableDefinitionName]);
1090 1090
1091 private Row CreateRow(IntermediateTuple tuple, TableDefinition tableDefinition) => 1091 private Row CreateRow(IntermediateSymbol symbol, TableDefinition tableDefinition) =>
1092 this.BackendHelper.CreateRow(this.Section, tuple, this.Output, tableDefinition); 1092 this.BackendHelper.CreateRow(this.Section, symbol, this.Output, tableDefinition);
1093 1093
1094 private static string GetMsiFilenameValue(string shortName, string longName) 1094 private static string GetMsiFilenameValue(string shortName, string longName)
1095 { 1095 {