diff options
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/MsmBackend.cs')
-rw-r--r-- | src/WixToolset.Core.WindowsInstaller/MsmBackend.cs | 31 |
1 files changed, 12 insertions, 19 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/MsmBackend.cs b/src/WixToolset.Core.WindowsInstaller/MsmBackend.cs index d5281759..f048b4e2 100644 --- a/src/WixToolset.Core.WindowsInstaller/MsmBackend.cs +++ b/src/WixToolset.Core.WindowsInstaller/MsmBackend.cs | |||
@@ -2,7 +2,6 @@ | |||
2 | 2 | ||
3 | namespace WixToolset.Core.WindowsInstaller | 3 | namespace WixToolset.Core.WindowsInstaller |
4 | { | 4 | { |
5 | using System; | ||
6 | using WixToolset.Core.WindowsInstaller.Bind; | 5 | using WixToolset.Core.WindowsInstaller.Bind; |
7 | using WixToolset.Core.WindowsInstaller.Unbind; | 6 | using WixToolset.Core.WindowsInstaller.Unbind; |
8 | using WixToolset.Data; | 7 | using WixToolset.Data; |
@@ -25,24 +24,21 @@ namespace WixToolset.Core.WindowsInstaller | |||
25 | 24 | ||
26 | var validator = Validator.CreateFromContext(context, "mergemod.cub"); | 25 | var validator = Validator.CreateFromContext(context, "mergemod.cub"); |
27 | 26 | ||
28 | var command = new BindDatabaseCommand(context, backendExtensions, validator); | 27 | using (var command = new BindDatabaseCommand(context, backendExtensions, validator)) |
29 | command.Execute(); | 28 | { |
29 | command.Execute(); | ||
30 | 30 | ||
31 | var result = context.ServiceProvider.GetService<IBindResult>(); | 31 | var result = context.ServiceProvider.GetService<IBindResult>(); |
32 | result.FileTransfers = command.FileTransfers; | 32 | result.FileTransfers = command.FileTransfers; |
33 | result.TrackedFiles = command.TrackedFiles; | 33 | result.TrackedFiles = command.TrackedFiles; |
34 | 34 | ||
35 | foreach (var extension in backendExtensions) | 35 | foreach (var extension in backendExtensions) |
36 | { | 36 | { |
37 | extension.PostBackendBind(result, command.Pdb); | 37 | extension.PostBackendBind(result, command.Wixout); |
38 | } | 38 | } |
39 | 39 | ||
40 | if (!String.IsNullOrEmpty(context.OutputPdbPath)) | 40 | return result; |
41 | { | ||
42 | command.Pdb?.Save(context.OutputPdbPath); | ||
43 | } | 41 | } |
44 | |||
45 | return result; | ||
46 | } | 42 | } |
47 | 43 | ||
48 | public IDecompileResult Decompile(IDecompileContext context) | 44 | public IDecompileResult Decompile(IDecompileContext context) |
@@ -67,10 +63,7 @@ namespace WixToolset.Core.WindowsInstaller | |||
67 | return result; | 63 | return result; |
68 | } | 64 | } |
69 | 65 | ||
70 | public bool Inscribe(IInscribeContext context) | 66 | public bool Inscribe(IInscribeContext context) => false; |
71 | { | ||
72 | return false; | ||
73 | } | ||
74 | 67 | ||
75 | public Intermediate Unbind(IUnbindContext context) | 68 | public Intermediate Unbind(IUnbindContext context) |
76 | { | 69 | { |