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/MsmBackend.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/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 | { |
