diff options
| author | Rob Mensching <rob@firegiant.com> | 2021-03-02 01:49:28 -0800 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2021-03-02 02:21:22 -0800 |
| commit | 85e611c40c3c8bf3ff3b06b52d53d046bc8ff392 (patch) | |
| tree | 88687390ed6041716580ffd4f288bdc2efe03f86 /src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs | |
| parent | 16c221a8663361ff29e140a0a395d3173daa0625 (diff) | |
| download | wix-85e611c40c3c8bf3ff3b06b52d53d046bc8ff392.tar.gz wix-85e611c40c3c8bf3ff3b06b52d53d046bc8ff392.tar.bz2 wix-85e611c40c3c8bf3ff3b06b52d53d046bc8ff392.zip | |
Remove references to "Output" and use "Data" instead
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs')
| -rw-r--r-- | src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs index b3b9023c..7a64b777 100644 --- a/src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs | |||
| @@ -402,31 +402,29 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 402 | return null; | 402 | return null; |
| 403 | } | 403 | } |
| 404 | 404 | ||
| 405 | // Time to create the output object. Try to put as much above here as possible, updating the IR is better. | 405 | // Time to create the WindowsInstallerData object. Try to put as much above here as possible, updating the IR is better. |
| 406 | WindowsInstallerData output; | 406 | WindowsInstallerData data; |
| 407 | { | 407 | { |
| 408 | var command = new CreateOutputFromIRCommand(this.Messaging, section, tableDefinitions, this.BackendExtensions, this.WindowsInstallerBackendHelper); | 408 | var command = new CreateWindowsInstallerDataFromIRCommand(this.Messaging, section, tableDefinitions, this.BackendExtensions, this.WindowsInstallerBackendHelper); |
| 409 | command.Execute(); | 409 | data = command.Execute(); |
| 410 | |||
| 411 | output = command.Output; | ||
| 412 | } | 410 | } |
| 413 | 411 | ||
| 414 | IEnumerable<string> suppressedTableNames = null; | 412 | IEnumerable<string> suppressedTableNames = null; |
| 415 | if (output.Type == OutputType.Module) | 413 | if (data.Type == OutputType.Module) |
| 416 | { | 414 | { |
| 417 | // Modularize identifiers. | 415 | // Modularize identifiers. |
| 418 | var modularize = new ModularizeCommand(output, modularizationSuffix, section.Symbols.OfType<WixSuppressModularizationSymbol>()); | 416 | var modularize = new ModularizeCommand(data, modularizationSuffix, section.Symbols.OfType<WixSuppressModularizationSymbol>()); |
| 419 | modularize.Execute(); | 417 | modularize.Execute(); |
| 420 | 418 | ||
| 421 | // Ensure all sequence tables in place because, mergemod.dll requires them. | 419 | // Ensure all sequence tables in place because, mergemod.dll requires them. |
| 422 | var unsuppress = new AddBackSuppressedSequenceTablesCommand(output, tableDefinitions); | 420 | var unsuppress = new AddBackSuppressedSequenceTablesCommand(data, tableDefinitions); |
| 423 | suppressedTableNames = unsuppress.Execute(); | 421 | suppressedTableNames = unsuppress.Execute(); |
| 424 | } | 422 | } |
| 425 | else if (output.Type == OutputType.Patch) | 423 | else if (data.Type == OutputType.Patch) |
| 426 | { | 424 | { |
| 427 | foreach (var storage in this.SubStorages) | 425 | foreach (var storage in this.SubStorages) |
| 428 | { | 426 | { |
| 429 | output.SubStorages.Add(storage); | 427 | data.SubStorages.Add(storage); |
| 430 | } | 428 | } |
| 431 | } | 429 | } |
| 432 | 430 | ||
| @@ -448,7 +446,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 448 | 446 | ||
| 449 | // create cabinet files and process uncompressed files | 447 | // create cabinet files and process uncompressed files |
| 450 | var layoutDirectory = Path.GetDirectoryName(this.OutputPath); | 448 | var layoutDirectory = Path.GetDirectoryName(this.OutputPath); |
| 451 | if (!this.SuppressLayout || OutputType.Module == output.Type) | 449 | if (!this.SuppressLayout || OutputType.Module == data.Type) |
| 452 | { | 450 | { |
| 453 | this.Messaging.Write(VerboseMessages.CreatingCabinetFiles()); | 451 | this.Messaging.Write(VerboseMessages.CreatingCabinetFiles()); |
| 454 | 452 | ||
| @@ -458,7 +456,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 458 | command.CabbingThreadCount = this.CabbingThreadCount; | 456 | command.CabbingThreadCount = this.CabbingThreadCount; |
| 459 | command.CabCachePath = this.CabCachePath; | 457 | command.CabCachePath = this.CabCachePath; |
| 460 | command.DefaultCompressionLevel = this.DefaultCompressionLevel; | 458 | command.DefaultCompressionLevel = this.DefaultCompressionLevel; |
| 461 | command.Output = output; | 459 | command.Data = data; |
| 462 | command.Messaging = this.Messaging; | 460 | command.Messaging = this.Messaging; |
| 463 | command.BackendExtensions = this.BackendExtensions; | 461 | command.BackendExtensions = this.BackendExtensions; |
| 464 | command.LayoutDirectory = layoutDirectory; | 462 | command.LayoutDirectory = layoutDirectory; |
| @@ -481,15 +479,15 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 481 | } | 479 | } |
| 482 | 480 | ||
| 483 | // We can create instance transforms since Component Guids and Outputs are created. | 481 | // We can create instance transforms since Component Guids and Outputs are created. |
| 484 | if (output.Type == OutputType.Product) | 482 | if (data.Type == OutputType.Product) |
| 485 | { | 483 | { |
| 486 | var command = new CreateInstanceTransformsCommand(section, output, tableDefinitions, this.WindowsInstallerBackendHelper); | 484 | var command = new CreateInstanceTransformsCommand(section, data, tableDefinitions, this.WindowsInstallerBackendHelper); |
| 487 | command.Execute(); | 485 | command.Execute(); |
| 488 | } | 486 | } |
| 489 | else if (output.Type == OutputType.Patch) | 487 | else if (data.Type == OutputType.Patch) |
| 490 | { | 488 | { |
| 491 | // Copy output data back into the transforms. | 489 | // Copy output data back into the transforms. |
| 492 | var command = new UpdateTransformsWithFileFacades(this.Messaging, output, this.SubStorages, tableDefinitions, fileFacades); | 490 | var command = new UpdateTransformsWithFileFacades(this.Messaging, data, this.SubStorages, tableDefinitions, fileFacades); |
| 493 | command.Execute(); | 491 | command.Execute(); |
| 494 | } | 492 | } |
| 495 | 493 | ||
| @@ -500,7 +498,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 500 | var trackMsi = this.WindowsInstallerBackendHelper.TrackFile(this.OutputPath, TrackedFileType.Final); | 498 | var trackMsi = this.WindowsInstallerBackendHelper.TrackFile(this.OutputPath, TrackedFileType.Final); |
| 501 | trackedFiles.Add(trackMsi); | 499 | trackedFiles.Add(trackMsi); |
| 502 | 500 | ||
| 503 | var command = new GenerateDatabaseCommand(this.Messaging, this.WindowsInstallerBackendHelper, this.FileSystemManager, output, trackMsi.Path, tableDefinitions, this.IntermediateFolder, this.Codepage, keepAddedColumns: false, this.SuppressAddingValidationRows, useSubdirectory: false); | 501 | var command = new GenerateDatabaseCommand(this.Messaging, this.WindowsInstallerBackendHelper, this.FileSystemManager, data, trackMsi.Path, tableDefinitions, this.IntermediateFolder, this.Codepage, keepAddedColumns: false, this.SuppressAddingValidationRows, useSubdirectory: false); |
| 504 | command.Execute(); | 502 | command.Execute(); |
| 505 | 503 | ||
| 506 | trackedFiles.AddRange(command.GeneratedTemporaryFiles); | 504 | trackedFiles.AddRange(command.GeneratedTemporaryFiles); |
| @@ -572,12 +570,12 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 572 | var result = this.ServiceProvider.GetService<IBindResult>(); | 570 | var result = this.ServiceProvider.GetService<IBindResult>(); |
| 573 | result.FileTransfers = fileTransfers; | 571 | result.FileTransfers = fileTransfers; |
| 574 | result.TrackedFiles = trackedFiles; | 572 | result.TrackedFiles = trackedFiles; |
| 575 | result.Wixout = this.CreateWixout(trackedFiles, this.Intermediate, output); | 573 | result.Wixout = this.CreateWixout(trackedFiles, this.Intermediate, data); |
| 576 | 574 | ||
| 577 | return result; | 575 | return result; |
| 578 | } | 576 | } |
| 579 | 577 | ||
| 580 | private WixOutput CreateWixout(List<ITrackedFile> trackedFiles, Intermediate intermediate, WindowsInstallerData output) | 578 | private WixOutput CreateWixout(List<ITrackedFile> trackedFiles, Intermediate intermediate, WindowsInstallerData data) |
| 581 | { | 579 | { |
| 582 | WixOutput wixout; | 580 | WixOutput wixout; |
| 583 | 581 | ||
| @@ -595,7 +593,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 595 | 593 | ||
| 596 | intermediate.Save(wixout); | 594 | intermediate.Save(wixout); |
| 597 | 595 | ||
| 598 | output.Save(wixout); | 596 | data.Save(wixout); |
| 599 | 597 | ||
| 600 | wixout.Reopen(); | 598 | wixout.Reopen(); |
| 601 | 599 | ||
