diff options
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Bind/CopyTransformDataCommand.cs')
-rw-r--r-- | src/WixToolset.Core.WindowsInstaller/Bind/CopyTransformDataCommand.cs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/CopyTransformDataCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/CopyTransformDataCommand.cs index 559d440c..13408312 100644 --- a/src/WixToolset.Core.WindowsInstaller/Bind/CopyTransformDataCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Bind/CopyTransformDataCommand.cs | |||
@@ -12,13 +12,16 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
12 | using WixToolset.Data.WindowsInstaller; | 12 | using WixToolset.Data.WindowsInstaller; |
13 | using WixToolset.Data.WindowsInstaller.Rows; | 13 | using WixToolset.Data.WindowsInstaller.Rows; |
14 | using WixToolset.Extensibility; | 14 | using WixToolset.Extensibility; |
15 | using WixToolset.Extensibility.Services; | ||
15 | 16 | ||
16 | internal class CopyTransformDataCommand | 17 | internal class CopyTransformDataCommand |
17 | { | 18 | { |
18 | public bool CopyOutFileRows { private get; set; } | 19 | public bool CopyOutFileRows { private get; set; } |
19 | 20 | ||
20 | public IEnumerable<IBinderExtension> Extensions { private get; set; } | 21 | public IEnumerable<IBinderExtension> Extensions { private get; set; } |
21 | 22 | ||
23 | public IMessaging Messaging { private get; set; } | ||
24 | |||
22 | public Output Output { private get; set; } | 25 | public Output Output { private get; set; } |
23 | 26 | ||
24 | public TableDefinitionCollection TableDefinitions { private get; set; } | 27 | public TableDefinitionCollection TableDefinitions { private get; set; } |
@@ -465,14 +468,14 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
465 | { | 468 | { |
466 | if (seqDuplicateFiles < seqInstallFiles) | 469 | if (seqDuplicateFiles < seqInstallFiles) |
467 | { | 470 | { |
468 | throw new WixException(WixErrors.InsertInvalidSequenceActionOrder(mainFileRow.SourceLineNumbers, iesTable.Name, "InstallFiles", "DuplicateFiles", wixPatchAction.Action)); | 471 | throw new WixException(ErrorMessages.InsertInvalidSequenceActionOrder(mainFileRow.SourceLineNumbers, iesTable.Name, "InstallFiles", "DuplicateFiles", wixPatchAction.Action)); |
469 | } | 472 | } |
470 | else | 473 | else |
471 | { | 474 | { |
472 | sequence = (seqDuplicateFiles + seqInstallFiles) / 2; | 475 | sequence = (seqDuplicateFiles + seqInstallFiles) / 2; |
473 | if (seqInstallFiles == sequence || seqDuplicateFiles == sequence) | 476 | if (seqInstallFiles == sequence || seqDuplicateFiles == sequence) |
474 | { | 477 | { |
475 | throw new WixException(WixErrors.InsertSequenceNoSpace(mainFileRow.SourceLineNumbers, iesTable.Name, "InstallFiles", "DuplicateFiles", wixPatchAction.Action)); | 478 | throw new WixException(ErrorMessages.InsertSequenceNoSpace(mainFileRow.SourceLineNumbers, iesTable.Name, "InstallFiles", "DuplicateFiles", wixPatchAction.Action)); |
476 | } | 479 | } |
477 | } | 480 | } |
478 | } | 481 | } |
@@ -579,7 +582,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
579 | // Make sure all changes to non keypath files also had a change in the keypath. | 582 | // Make sure all changes to non keypath files also had a change in the keypath. |
580 | if (!componentWithChangedKeyPath.ContainsKey(componentFile.Key) && componentKeyPath.ContainsKey(componentFile.Key)) | 583 | if (!componentWithChangedKeyPath.ContainsKey(componentFile.Key) && componentKeyPath.ContainsKey(componentFile.Key)) |
581 | { | 584 | { |
582 | Messaging.Instance.OnMessage(WixWarnings.UpdateOfNonKeyPathFile((string)componentFile.Value, (string)componentFile.Key, (string)componentKeyPath[componentFile.Key])); | 585 | this.Messaging.Write(WarningMessages.UpdateOfNonKeyPathFile((string)componentFile.Value, (string)componentFile.Key, (string)componentKeyPath[componentFile.Key])); |
583 | } | 586 | } |
584 | } | 587 | } |
585 | } | 588 | } |