aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2020-06-06 15:49:09 -0700
committerRob Mensching <rob@firegiant.com>2020-06-08 16:37:14 -0700
commit3fb889ab7aa3cb0dfae23e0379e28552e919ad72 (patch)
tree573a4bc2677a3db1adcdf1a508b8a32ed4c796a8 /src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs
parent703546818ada54faa0bac33441370291b8e4bf6b (diff)
downloadwix-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/BindDatabaseCommand.cs')
-rw-r--r--src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs27
1 files changed, 13 insertions, 14 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