diff options
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Unbind/UnbindDatabaseCommand.cs')
| -rw-r--r-- | src/WixToolset.Core.WindowsInstaller/Unbind/UnbindDatabaseCommand.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindDatabaseCommand.cs b/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindDatabaseCommand.cs index 72e0c3c8..5d24d08a 100644 --- a/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindDatabaseCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindDatabaseCommand.cs | |||
| @@ -12,11 +12,12 @@ namespace WixToolset.Core.WindowsInstaller.Unbind | |||
| 12 | using WixToolset.Data; | 12 | using WixToolset.Data; |
| 13 | using WixToolset.Data.WindowsInstaller; | 13 | using WixToolset.Data.WindowsInstaller; |
| 14 | using WixToolset.Data.WindowsInstaller.Rows; | 14 | using WixToolset.Data.WindowsInstaller.Rows; |
| 15 | using WixToolset.Extensibility.Services; | ||
| 15 | using WixToolset.Msi; | 16 | using WixToolset.Msi; |
| 16 | 17 | ||
| 17 | internal class UnbindDatabaseCommand | 18 | internal class UnbindDatabaseCommand |
| 18 | { | 19 | { |
| 19 | public UnbindDatabaseCommand(Messaging messaging, Database database, string databasePath, OutputType outputType, string exportBasePath, string intermediateFolder, bool isAdminImage, bool suppressDemodularization, bool skipSummaryInfo) | 20 | public UnbindDatabaseCommand(IMessaging messaging, Database database, string databasePath, OutputType outputType, string exportBasePath, string intermediateFolder, bool isAdminImage, bool suppressDemodularization, bool skipSummaryInfo) |
| 20 | { | 21 | { |
| 21 | this.Messaging = messaging; | 22 | this.Messaging = messaging; |
| 22 | this.Database = database; | 23 | this.Database = database; |
| @@ -31,7 +32,7 @@ namespace WixToolset.Core.WindowsInstaller.Unbind | |||
| 31 | this.TableDefinitions = WindowsInstallerStandardInternal.GetTableDefinitions(); | 32 | this.TableDefinitions = WindowsInstallerStandardInternal.GetTableDefinitions(); |
| 32 | } | 33 | } |
| 33 | 34 | ||
| 34 | public Messaging Messaging { get; } | 35 | public IMessaging Messaging { get; } |
| 35 | 36 | ||
| 36 | public Database Database { get; } | 37 | public Database Database { get; } |
| 37 | 38 | ||
| @@ -316,7 +317,7 @@ namespace WixToolset.Core.WindowsInstaller.Unbind | |||
| 316 | 317 | ||
| 317 | if (!success) | 318 | if (!success) |
| 318 | { | 319 | { |
| 319 | this.Messaging.OnMessage(WixWarnings.BadColumnDataIgnored(row.SourceLineNumbers, Convert.ToString(intValue, CultureInfo.InvariantCulture), tableName, row.Fields[i].Column.Name)); | 320 | this.Messaging.Write(WarningMessages.BadColumnDataIgnored(row.SourceLineNumbers, Convert.ToString(intValue, CultureInfo.InvariantCulture), tableName, row.Fields[i].Column.Name)); |
| 320 | } | 321 | } |
| 321 | break; | 322 | break; |
| 322 | case ColumnType.Object: | 323 | case ColumnType.Object: |
| @@ -480,7 +481,7 @@ namespace WixToolset.Core.WindowsInstaller.Unbind | |||
| 480 | 481 | ||
| 481 | if (!File.Exists(wixFileRow.Source)) | 482 | if (!File.Exists(wixFileRow.Source)) |
| 482 | { | 483 | { |
| 483 | throw new WixException(WixErrors.WixFileNotFound(wixFileRow.Source)); | 484 | throw new WixException(ErrorMessages.WixFileNotFound(wixFileRow.Source)); |
| 484 | } | 485 | } |
| 485 | 486 | ||
| 486 | wixFileTable.Rows.Add(wixFileRow); | 487 | wixFileTable.Rows.Add(wixFileRow); |
