diff options
| author | Rob Mensching <rob@firegiant.com> | 2017-10-14 16:12:07 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2017-10-14 16:12:07 -0700 |
| commit | dbde9e7104b907bbbaea17e21247d8cafc8b3a4c (patch) | |
| tree | 0f5fbbb6fe12c6b2e5e622a0e18ce4c5b4eb2b96 /src/WixToolset.Core.WindowsInstaller/MstBackend.cs | |
| parent | fbf986eb97f68396797a89fc7d40dec07b775440 (diff) | |
| download | wix-dbde9e7104b907bbbaea17e21247d8cafc8b3a4c.tar.gz wix-dbde9e7104b907bbbaea17e21247d8cafc8b3a4c.tar.bz2 wix-dbde9e7104b907bbbaea17e21247d8cafc8b3a4c.zip | |
Massive refactoring to introduce the concept of IBackend
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/MstBackend.cs')
| -rw-r--r-- | src/WixToolset.Core.WindowsInstaller/MstBackend.cs | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/MstBackend.cs b/src/WixToolset.Core.WindowsInstaller/MstBackend.cs new file mode 100644 index 00000000..2cb7da89 --- /dev/null +++ b/src/WixToolset.Core.WindowsInstaller/MstBackend.cs | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
| 2 | |||
| 3 | namespace WixToolset.Core.WindowsInstaller | ||
| 4 | { | ||
| 5 | using System; | ||
| 6 | using WixToolset.Core.WindowsInstaller.Databases; | ||
| 7 | using WixToolset.Core.WindowsInstaller.Unbind; | ||
| 8 | using WixToolset.Data; | ||
| 9 | using WixToolset.Data.Bind; | ||
| 10 | using WixToolset.Extensibility; | ||
| 11 | |||
| 12 | internal class MstBackend : IBackend | ||
| 13 | { | ||
| 14 | public BindResult Bind(IBindContext context) | ||
| 15 | { | ||
| 16 | var command = new BindTransformCommand(); | ||
| 17 | command.Extensions = context.Extensions; | ||
| 18 | command.TempFilesLocation = context.IntermediateFolder; | ||
| 19 | command.Transform = context.IntermediateRepresentation; | ||
| 20 | command.OutputPath = context.OutputPath; | ||
| 21 | command.Execute(); | ||
| 22 | |||
| 23 | return new BindResult(Array.Empty<FileTransfer>(), Array.Empty<string>()); | ||
| 24 | } | ||
| 25 | |||
| 26 | public bool Inscribe(IInscribeContext context) | ||
| 27 | { | ||
| 28 | throw new NotImplementedException(); | ||
| 29 | } | ||
| 30 | |||
| 31 | public Output Unbind(IUnbindContext context) | ||
| 32 | { | ||
| 33 | var command = new UnbindMsiOrMsmCommand(context); | ||
| 34 | return command.Execute(); | ||
| 35 | } | ||
| 36 | } | ||
| 37 | } \ No newline at end of file | ||
