diff options
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Bind/UpdateControlTextCommand.cs')
-rw-r--r-- | src/WixToolset.Core.WindowsInstaller/Bind/UpdateControlTextCommand.cs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/UpdateControlTextCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/UpdateControlTextCommand.cs index dddc9380..3ad2470f 100644 --- a/src/WixToolset.Core.WindowsInstaller/Bind/UpdateControlTextCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Bind/UpdateControlTextCommand.cs | |||
@@ -7,9 +7,12 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
7 | using WixToolset.Data; | 7 | using WixToolset.Data; |
8 | using WixToolset.Data.WindowsInstaller; | 8 | using WixToolset.Data.WindowsInstaller; |
9 | using WixToolset.Data.WindowsInstaller.Rows; | 9 | using WixToolset.Data.WindowsInstaller.Rows; |
10 | using WixToolset.Extensibility.Services; | ||
10 | 11 | ||
11 | internal class UpdateControlTextCommand | 12 | internal class UpdateControlTextCommand |
12 | { | 13 | { |
14 | public IMessaging Messaging { private get; set; } | ||
15 | |||
13 | public Table BBControlTable { private get; set; } | 16 | public Table BBControlTable { private get; set; } |
14 | 17 | ||
15 | public Table WixBBControlTable { private get; set; } | 18 | public Table WixBBControlTable { private get; set; } |
@@ -60,19 +63,19 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
60 | } | 63 | } |
61 | catch (DirectoryNotFoundException e) | 64 | catch (DirectoryNotFoundException e) |
62 | { | 65 | { |
63 | Messaging.Instance.OnMessage(WixErrors.BinderFileManagerMissingFile(sourceLineNumbers, e.Message)); | 66 | this.Messaging.Write(ErrorMessages.BinderFileManagerMissingFile(sourceLineNumbers, e.Message)); |
64 | } | 67 | } |
65 | catch (FileNotFoundException e) | 68 | catch (FileNotFoundException e) |
66 | { | 69 | { |
67 | Messaging.Instance.OnMessage(WixErrors.BinderFileManagerMissingFile(sourceLineNumbers, e.Message)); | 70 | this.Messaging.Write(ErrorMessages.BinderFileManagerMissingFile(sourceLineNumbers, e.Message)); |
68 | } | 71 | } |
69 | catch (IOException e) | 72 | catch (IOException e) |
70 | { | 73 | { |
71 | Messaging.Instance.OnMessage(WixErrors.BinderFileManagerMissingFile(sourceLineNumbers, e.Message)); | 74 | this.Messaging.Write(ErrorMessages.BinderFileManagerMissingFile(sourceLineNumbers, e.Message)); |
72 | } | 75 | } |
73 | catch (NotSupportedException) | 76 | catch (NotSupportedException) |
74 | { | 77 | { |
75 | Messaging.Instance.OnMessage(WixErrors.FileNotFound(sourceLineNumbers, source)); | 78 | this.Messaging.Write(ErrorMessages.FileNotFound(sourceLineNumbers, source)); |
76 | } | 79 | } |
77 | 80 | ||
78 | return text; | 81 | return text; |