diff options
| author | Rob Mensching <rob@firegiant.com> | 2019-10-25 00:48:35 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2019-10-25 00:53:29 -0700 |
| commit | 9c714a8f1baa6e0130e5cd00cbdca649cebaf6a5 (patch) | |
| tree | ebf26d0e37244f3014e0c4924a29af7f7e56e2f2 /src/WixToolset.Core.WindowsInstaller/MsiBackend.cs | |
| parent | 87580cbe111a8df836231a0192dee674cf482f08 (diff) | |
| download | wix-9c714a8f1baa6e0130e5cd00cbdca649cebaf6a5.tar.gz wix-9c714a8f1baa6e0130e5cd00cbdca649cebaf6a5.tar.bz2 wix-9c714a8f1baa6e0130e5cd00cbdca649cebaf6a5.zip | |
Update to WixOutput file structure to fix embedded file handling
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) |
