diff options
| author | Rob Mensching <rob@firegiant.com> | 2020-06-25 14:43:50 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2020-06-25 14:50:31 -0700 |
| commit | 38afa9e7bc7eacc021f8805f607368a05751e3c3 (patch) | |
| tree | 803b0a8d9a06a7d6f7c4df408437017ae21a883e /src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs | |
| parent | 8968578d50858721317d410549a9f9b5c62bf1f7 (diff) | |
| download | wix-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/BindDatabaseCommand.cs')
| -rw-r--r-- | src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs index ea6d49a0..950fe1c1 100644 --- a/src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs | |||
| @@ -8,7 +8,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 8 | using System.Linq; | 8 | using System.Linq; |
| 9 | using WixToolset.Core.Bind; | 9 | using WixToolset.Core.Bind; |
| 10 | using WixToolset.Data; | 10 | using WixToolset.Data; |
| 11 | using WixToolset.Data.Tuples; | 11 | using WixToolset.Data.Symbols; |
| 12 | using WixToolset.Data.WindowsInstaller; | 12 | using WixToolset.Data.WindowsInstaller; |
| 13 | using WixToolset.Extensibility; | 13 | using WixToolset.Extensibility; |
| 14 | using WixToolset.Extensibility.Data; | 14 | using WixToolset.Extensibility.Data; |
| @@ -147,7 +147,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 147 | // Add binder variables for all properties. | 147 | // Add binder variables for all properties. |
| 148 | if (SectionType.Product == section.Type || variableCache != null) | 148 | if (SectionType.Product == section.Type || variableCache != null) |
| 149 | { | 149 | { |
| 150 | foreach (var propertyRow in section.Tuples.OfType<PropertyTuple>()) | 150 | foreach (var propertyRow in section.Symbols.OfType<PropertySymbol>()) |
| 151 | { | 151 | { |
| 152 | // Set the ProductCode if it is to be generated. | 152 | // Set the ProductCode if it is to be generated. |
| 153 | if ("ProductCode".Equals(propertyRow.Id.Id, StringComparison.Ordinal) && "*".Equals(propertyRow.Value, StringComparison.Ordinal)) | 153 | if ("ProductCode".Equals(propertyRow.Id.Id, StringComparison.Ordinal) && "*".Equals(propertyRow.Value, StringComparison.Ordinal)) |
| @@ -256,13 +256,13 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 256 | // Retrieve file information from merge modules. | 256 | // Retrieve file information from merge modules. |
| 257 | if (SectionType.Product == section.Type) | 257 | if (SectionType.Product == section.Type) |
| 258 | { | 258 | { |
| 259 | var wixMergeTuples = section.Tuples.OfType<WixMergeTuple>().ToList(); | 259 | var wixMergeSymbols = section.Symbols.OfType<WixMergeSymbol>().ToList(); |
| 260 | 260 | ||
| 261 | if (wixMergeTuples.Any()) | 261 | if (wixMergeSymbols.Any()) |
| 262 | { | 262 | { |
| 263 | containsMergeModules = true; | 263 | containsMergeModules = true; |
| 264 | 264 | ||
| 265 | var command = new ExtractMergeModuleFilesCommand(this.Messaging, wixMergeTuples, fileFacades, installerVersion, this.IntermediateFolder, this.SuppressLayout); | 265 | var command = new ExtractMergeModuleFilesCommand(this.Messaging, wixMergeSymbols, fileFacades, installerVersion, this.IntermediateFolder, this.SuppressLayout); |
| 266 | command.Execute(); | 266 | command.Execute(); |
| 267 | 267 | ||
| 268 | fileFacades.AddRange(command.MergeModulesFileFacades); | 268 | fileFacades.AddRange(command.MergeModulesFileFacades); |
| @@ -294,7 +294,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 294 | command.Execute(); | 294 | command.Execute(); |
| 295 | } | 295 | } |
| 296 | 296 | ||
| 297 | #if TODO_FINISH_UPDATE // use tuples instead of rows | 297 | #if TODO_FINISH_UPDATE // use symbols instead of rows |
| 298 | // Extended binder extensions can be called now that fields are resolved. | 298 | // Extended binder extensions can be called now that fields are resolved. |
| 299 | { | 299 | { |
| 300 | Table updatedFiles = this.Output.EnsureTable(this.TableDefinitions["WixBindUpdatedFiles"]); | 300 | Table updatedFiles = this.Output.EnsureTable(this.TableDefinitions["WixBindUpdatedFiles"]); |
| @@ -341,20 +341,20 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 341 | command.Execute(); | 341 | command.Execute(); |
| 342 | } | 342 | } |
| 343 | 343 | ||
| 344 | // Add missing CreateFolder tuples to null-keypath components. | 344 | // Add missing CreateFolder symbols to null-keypath components. |
| 345 | { | 345 | { |
| 346 | var command = new AddCreateFoldersCommand(section); | 346 | var command = new AddCreateFoldersCommand(section); |
| 347 | command.Execute(); | 347 | command.Execute(); |
| 348 | } | 348 | } |
| 349 | 349 | ||
| 350 | // Update tuples that reference text files on disk. | 350 | // Update symbols that reference text files on disk. |
| 351 | { | 351 | { |
| 352 | var command = new UpdateFromTextFilesCommand(this.Messaging, section); | 352 | var command = new UpdateFromTextFilesCommand(this.Messaging, section); |
| 353 | command.Execute(); | 353 | command.Execute(); |
| 354 | } | 354 | } |
| 355 | 355 | ||
| 356 | // Assign files to media and update file sequences. | 356 | // Assign files to media and update file sequences. |
| 357 | Dictionary<MediaTuple, IEnumerable<FileFacade>> filesByCabinetMedia; | 357 | Dictionary<MediaSymbol, IEnumerable<FileFacade>> filesByCabinetMedia; |
| 358 | IEnumerable<FileFacade> uncompressedFiles; | 358 | IEnumerable<FileFacade> uncompressedFiles; |
| 359 | { | 359 | { |
| 360 | var order = new OptimizeFileFacadesOrderCommand(fileFacades); | 360 | var order = new OptimizeFileFacadesOrderCommand(fileFacades); |
| @@ -391,7 +391,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 391 | if (output.Type == OutputType.Module) | 391 | if (output.Type == OutputType.Module) |
| 392 | { | 392 | { |
| 393 | // Modularize identifiers. | 393 | // Modularize identifiers. |
| 394 | var modularize = new ModularizeCommand(output, modularizationSuffix, section.Tuples.OfType<WixSuppressModularizationTuple>()); | 394 | var modularize = new ModularizeCommand(output, modularizationSuffix, section.Symbols.OfType<WixSuppressModularizationSymbol>()); |
| 395 | modularize.Execute(); | 395 | modularize.Execute(); |
| 396 | 396 | ||
| 397 | // Ensure all sequence tables in place because, mergemod.dll requires them. | 397 | // Ensure all sequence tables in place because, mergemod.dll requires them. |
| @@ -418,7 +418,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 418 | 418 | ||
| 419 | if (SectionType.Patch == section.Type && this.DeltaBinaryPatch) | 419 | if (SectionType.Patch == section.Type && this.DeltaBinaryPatch) |
| 420 | { | 420 | { |
| 421 | var command = new CreateDeltaPatchesCommand(fileFacades, this.IntermediateFolder, section.Tuples.OfType<WixPatchIdTuple>().FirstOrDefault()); | 421 | var command = new CreateDeltaPatchesCommand(fileFacades, this.IntermediateFolder, section.Symbols.OfType<WixPatchIdSymbol>().FirstOrDefault()); |
| 422 | command.Execute(); | 422 | command.Execute(); |
| 423 | } | 423 | } |
| 424 | 424 | ||
| @@ -428,7 +428,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 428 | { | 428 | { |
| 429 | this.Messaging.Write(VerboseMessages.CreatingCabinetFiles()); | 429 | this.Messaging.Write(VerboseMessages.CreatingCabinetFiles()); |
| 430 | 430 | ||
| 431 | var mediaTemplate = section.Tuples.OfType<WixMediaTemplateTuple>().FirstOrDefault(); | 431 | var mediaTemplate = section.Symbols.OfType<WixMediaTemplateSymbol>().FirstOrDefault(); |
| 432 | 432 | ||
| 433 | var command = new CreateCabinetsCommand(this.ServiceProvider, this.BackendHelper, mediaTemplate); | 433 | var command = new CreateCabinetsCommand(this.ServiceProvider, this.BackendHelper, mediaTemplate); |
| 434 | command.CabbingThreadCount = this.CabbingThreadCount; | 434 | command.CabbingThreadCount = this.CabbingThreadCount; |
| @@ -578,7 +578,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 578 | return wixout; | 578 | return wixout; |
| 579 | } | 579 | } |
| 580 | 580 | ||
| 581 | private string ResolveMedia(MediaTuple media, string mediaLayoutDirectory, string layoutDirectory) | 581 | private string ResolveMedia(MediaSymbol media, string mediaLayoutDirectory, string layoutDirectory) |
| 582 | { | 582 | { |
| 583 | string layout = null; | 583 | string layout = null; |
| 584 | 584 | ||
