diff options
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Unbind')
3 files changed, 10 insertions, 8 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Unbind/ExtractCabinetsCommand.cs b/src/WixToolset.Core.WindowsInstaller/Unbind/ExtractCabinetsCommand.cs index 1757e06f..ed3161ef 100644 --- a/src/WixToolset.Core.WindowsInstaller/Unbind/ExtractCabinetsCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Unbind/ExtractCabinetsCommand.cs | |||
| @@ -136,7 +136,7 @@ namespace WixToolset.Core.WindowsInstaller.Unbind | |||
| 136 | } | 136 | } |
| 137 | catch (FileNotFoundException) | 137 | catch (FileNotFoundException) |
| 138 | { | 138 | { |
| 139 | throw new WixException(WixErrors.FileNotFound(new SourceLineNumber(this.InputFilePath), cabinetFile)); | 139 | throw new WixException(ErrorMessages.FileNotFound(new SourceLineNumber(this.InputFilePath), cabinetFile)); |
| 140 | } | 140 | } |
| 141 | } | 141 | } |
| 142 | } | 142 | } |
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); |
diff --git a/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindTranformCommand.cs b/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindTranformCommand.cs index 70f751f5..2b018013 100644 --- a/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindTranformCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindTranformCommand.cs | |||
| @@ -13,11 +13,12 @@ namespace WixToolset.Core.WindowsInstaller.Unbind | |||
| 13 | using WixToolset.Data; | 13 | using WixToolset.Data; |
| 14 | using WixToolset.Data.WindowsInstaller; | 14 | using WixToolset.Data.WindowsInstaller; |
| 15 | using WixToolset.Extensibility; | 15 | using WixToolset.Extensibility; |
| 16 | using WixToolset.Extensibility.Services; | ||
| 16 | using WixToolset.Msi; | 17 | using WixToolset.Msi; |
| 17 | 18 | ||
| 18 | internal class UnbindTransformCommand | 19 | internal class UnbindTransformCommand |
| 19 | { | 20 | { |
| 20 | public UnbindTransformCommand(Messaging messaging, string transformFile, string exportBasePath, string intermediateFolder) | 21 | public UnbindTransformCommand(IMessaging messaging, string transformFile, string exportBasePath, string intermediateFolder) |
| 21 | { | 22 | { |
| 22 | this.Messaging = messaging; | 23 | this.Messaging = messaging; |
| 23 | this.TransformFile = transformFile; | 24 | this.TransformFile = transformFile; |
| @@ -27,7 +28,7 @@ namespace WixToolset.Core.WindowsInstaller.Unbind | |||
| 27 | this.TableDefinitions = WindowsInstallerStandardInternal.GetTableDefinitions(); | 28 | this.TableDefinitions = WindowsInstallerStandardInternal.GetTableDefinitions(); |
| 28 | } | 29 | } |
| 29 | 30 | ||
| 30 | private Messaging Messaging { get; } | 31 | private IMessaging Messaging { get; } |
| 31 | 32 | ||
| 32 | private string TransformFile { get; } | 33 | private string TransformFile { get; } |
| 33 | 34 | ||
| @@ -152,7 +153,7 @@ namespace WixToolset.Core.WindowsInstaller.Unbind | |||
| 152 | // this commonly happens when the transform was built | 153 | // this commonly happens when the transform was built |
| 153 | // against a database schema different from the internal | 154 | // against a database schema different from the internal |
| 154 | // table definitions | 155 | // table definitions |
| 155 | throw new WixException(WixErrors.TransformSchemaMismatch()); | 156 | throw new WixException(ErrorMessages.TransformSchemaMismatch()); |
| 156 | } | 157 | } |
| 157 | } | 158 | } |
| 158 | 159 | ||
