diff options
| author | Bob Arnson <bob@firegiant.com> | 2018-12-07 19:42:42 -0500 |
|---|---|---|
| committer | Bob Arnson <bob@firegiant.com> | 2018-12-07 19:50:06 -0500 |
| commit | 77e611874a3d3d45e51a46e75674c44d418670cb (patch) | |
| tree | 4ad149792799fdb9fe9e34deb2f784a51ba2cc44 /src/WixToolset.Core.WindowsInstaller/Decompile | |
| parent | 3b3854e3cb7c171cd356497531a040596af5d214 (diff) | |
| download | wix-77e611874a3d3d45e51a46e75674c44d418670cb.tar.gz wix-77e611874a3d3d45e51a46e75674c44d418670cb.tar.bz2 wix-77e611874a3d3d45e51a46e75674c44d418670cb.zip | |
Let caller specify directory for files extracted by ExtractCabinetsCommand.
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Decompile')
| -rw-r--r-- | src/WixToolset.Core.WindowsInstaller/Decompile/DecompileMsiOrMsmCommand.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Decompile/DecompileMsiOrMsmCommand.cs b/src/WixToolset.Core.WindowsInstaller/Decompile/DecompileMsiOrMsmCommand.cs index e874eed6..d622dbb2 100644 --- a/src/WixToolset.Core.WindowsInstaller/Decompile/DecompileMsiOrMsmCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Decompile/DecompileMsiOrMsmCommand.cs | |||
| @@ -5,7 +5,7 @@ namespace WixToolset.Core.WindowsInstaller.Unbind | |||
| 5 | using System; | 5 | using System; |
| 6 | using System.Collections.Generic; | 6 | using System.Collections.Generic; |
| 7 | using System.ComponentModel; | 7 | using System.ComponentModel; |
| 8 | using System.Linq; | 8 | using System.IO; |
| 9 | using WixToolset.Core.Native; | 9 | using WixToolset.Core.Native; |
| 10 | using WixToolset.Data; | 10 | using WixToolset.Data; |
| 11 | using WixToolset.Extensibility; | 11 | using WixToolset.Extensibility; |
| @@ -46,7 +46,9 @@ namespace WixToolset.Core.WindowsInstaller.Unbind | |||
| 46 | // extract the files from the cabinets | 46 | // extract the files from the cabinets |
| 47 | if (!String.IsNullOrEmpty(this.Context.ExtractFolder) && !this.Context.SuppressExtractCabinets) | 47 | if (!String.IsNullOrEmpty(this.Context.ExtractFolder) && !this.Context.SuppressExtractCabinets) |
| 48 | { | 48 | { |
| 49 | var extractCommand = new ExtractCabinetsCommand(output, database, this.Context.DecompilePath, this.Context.ExtractFolder, this.Context.IntermediateFolder, this.Context.TreatProductAsModule); | 49 | var fileDirectory = Path.Combine(this.Context.ExtractFolder, "File"); |
| 50 | |||
| 51 | var extractCommand = new ExtractCabinetsCommand(output, database, this.Context.DecompilePath, fileDirectory, this.Context.IntermediateFolder, this.Context.TreatProductAsModule); | ||
| 50 | extractCommand.Execute(); | 52 | extractCommand.Execute(); |
| 51 | 53 | ||
| 52 | extractedFilePaths.AddRange(extractCommand.ExtractedFiles); | 54 | extractedFilePaths.AddRange(extractCommand.ExtractedFiles); |
