diff options
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/MsiBackend.cs')
| -rw-r--r-- | src/WixToolset.Core.WindowsInstaller/MsiBackend.cs | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/MsiBackend.cs b/src/WixToolset.Core.WindowsInstaller/MsiBackend.cs index 2ebb3f13..5cd7204a 100644 --- a/src/WixToolset.Core.WindowsInstaller/MsiBackend.cs +++ b/src/WixToolset.Core.WindowsInstaller/MsiBackend.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.Inscribe; | 6 | using WixToolset.Core.WindowsInstaller.Inscribe; |
| 8 | using WixToolset.Core.WindowsInstaller.Unbind; | 7 | using WixToolset.Core.WindowsInstaller.Unbind; |
| @@ -26,18 +25,21 @@ namespace WixToolset.Core.WindowsInstaller | |||
| 26 | 25 | ||
| 27 | var validator = Validator.CreateFromContext(context, "darice.cub"); | 26 | var validator = Validator.CreateFromContext(context, "darice.cub"); |
| 28 | 27 | ||
| 29 | var command = new BindDatabaseCommand(context, backendExtensions, validator); | 28 | using (var command = new BindDatabaseCommand(context, backendExtensions, validator)) |
| 30 | command.Execute(); | 29 | { |
| 30 | command.Execute(); | ||
| 31 | 31 | ||
| 32 | var result = context.ServiceProvider.GetService<IBindResult>(); | 32 | var result = context.ServiceProvider.GetService<IBindResult>(); |
| 33 | result.FileTransfers = command.FileTransfers; | 33 | result.FileTransfers = command.FileTransfers; |
| 34 | result.TrackedFiles = command.TrackedFiles; | 34 | result.TrackedFiles = command.TrackedFiles; |
| 35 | 35 | ||
| 36 | foreach (var extension in backendExtensions) | 36 | foreach (var extension in backendExtensions) |
| 37 | { | 37 | { |
| 38 | extension.PostBackendBind(result, command.Pdb); | 38 | extension.PostBackendBind(result, command.Wixout); |
| 39 | } | ||
| 40 | |||
| 41 | return result; | ||
| 39 | } | 42 | } |
| 40 | return result; | ||
| 41 | } | 43 | } |
| 42 | 44 | ||
| 43 | public IDecompileResult Decompile(IDecompileContext context) | 45 | public IDecompileResult Decompile(IDecompileContext context) |
