diff options
| author | Rob Mensching <rob@firegiant.com> | 2020-06-06 15:49:09 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2020-06-08 16:37:14 -0700 |
| commit | 3fb889ab7aa3cb0dfae23e0379e28552e919ad72 (patch) | |
| tree | 573a4bc2677a3db1adcdf1a508b8a32ed4c796a8 /src/WixToolset.Core.WindowsInstaller/Bind | |
| parent | 703546818ada54faa0bac33441370291b8e4bf6b (diff) | |
| download | wix-3fb889ab7aa3cb0dfae23e0379e28552e919ad72.tar.gz wix-3fb889ab7aa3cb0dfae23e0379e28552e919ad72.tar.bz2 wix-3fb889ab7aa3cb0dfae23e0379e28552e919ad72.zip | |
Integrate change to TryParseCommand and other code cleanup
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Bind')
| -rw-r--r-- | src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs | 27 | ||||
| -rw-r--r-- | src/WixToolset.Core.WindowsInstaller/Bind/UpdateTransformsWithFileFacades.cs | 2 |
2 files changed, 13 insertions, 16 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs index ffaf1479..bdb089ee 100644 --- a/src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs | |||
| @@ -403,13 +403,6 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 403 | 403 | ||
| 404 | this.ValidateComponentGuids(output); | 404 | this.ValidateComponentGuids(output); |
| 405 | 405 | ||
| 406 | // We can create instance transforms since Component Guids and Outputs are created. | ||
| 407 | if (output.Type == OutputType.Product) | ||
| 408 | { | ||
| 409 | var command = new CreateInstanceTransformsCommand(section, output, tableDefinitions, this.BackendHelper); | ||
| 410 | command.Execute(); | ||
| 411 | } | ||
| 412 | |||
| 413 | // Stop processing if an error previously occurred. | 406 | // Stop processing if an error previously occurred. |
| 414 | if (this.Messaging.EncounteredError) | 407 | if (this.Messaging.EncounteredError) |
| 415 | { | 408 | { |
| @@ -452,19 +445,25 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 452 | trackedFiles.AddRange(command.TrackedFiles); | 445 | trackedFiles.AddRange(command.TrackedFiles); |
| 453 | } | 446 | } |
| 454 | 447 | ||
| 455 | if (output.Type == OutputType.Patch) | ||
| 456 | { | ||
| 457 | // Copy output data back into the transforms. | ||
| 458 | var command = new UpdateTransformsWithFileFacades(this.Messaging, output, this.SubStorages, tableDefinitions, fileFacades); | ||
| 459 | command.Execute(); | ||
| 460 | } | ||
| 461 | |||
| 462 | // stop processing if an error previously occurred | 448 | // stop processing if an error previously occurred |
| 463 | if (this.Messaging.EncounteredError) | 449 | if (this.Messaging.EncounteredError) |
| 464 | { | 450 | { |
| 465 | return null; | 451 | return null; |
| 466 | } | 452 | } |
| 467 | 453 | ||
| 454 | // We can create instance transforms since Component Guids and Outputs are created. | ||
| 455 | if (output.Type == OutputType.Product) | ||
| 456 | { | ||
| 457 | var command = new CreateInstanceTransformsCommand(section, output, tableDefinitions, this.BackendHelper); | ||
| 458 | command.Execute(); | ||
| 459 | } | ||
| 460 | else if (output.Type == OutputType.Patch) | ||
| 461 | { | ||
| 462 | // Copy output data back into the transforms. | ||
| 463 | var command = new UpdateTransformsWithFileFacades(this.Messaging, output, this.SubStorages, tableDefinitions, fileFacades); | ||
| 464 | command.Execute(); | ||
| 465 | } | ||
| 466 | |||
| 468 | // Generate database file. | 467 | // Generate database file. |
| 469 | this.Messaging.Write(VerboseMessages.GeneratingDatabase()); | 468 | this.Messaging.Write(VerboseMessages.GeneratingDatabase()); |
| 470 | 469 | ||
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/UpdateTransformsWithFileFacades.cs b/src/WixToolset.Core.WindowsInstaller/Bind/UpdateTransformsWithFileFacades.cs index af2e8f85..2af45e77 100644 --- a/src/WixToolset.Core.WindowsInstaller/Bind/UpdateTransformsWithFileFacades.cs +++ b/src/WixToolset.Core.WindowsInstaller/Bind/UpdateTransformsWithFileFacades.cs | |||
| @@ -4,8 +4,6 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 4 | { | 4 | { |
| 5 | using System; | 5 | using System; |
| 6 | using System.Collections.Generic; | 6 | using System.Collections.Generic; |
| 7 | using System.Diagnostics; | ||
| 8 | using System.IO; | ||
| 9 | using System.Linq; | 7 | using System.Linq; |
| 10 | using WixToolset.Core.Bind; | 8 | using WixToolset.Core.Bind; |
| 11 | using WixToolset.Data; | 9 | using WixToolset.Data; |
