aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBob Arnson <bob@firegiant.com>2018-12-07 20:51:51 -0500
committerBob Arnson <bob@firegiant.com>2018-12-07 21:01:33 -0500
commit6823fa23d6fe2115135e7318aef6e285b3faaf45 (patch)
tree424f0ba814743c9a3278d321c17d151d5e4a5176 /src
parent77e611874a3d3d45e51a46e75674c44d418670cb (diff)
downloadwix-6823fa23d6fe2115135e7318aef6e285b3faaf45.tar.gz
wix-6823fa23d6fe2115135e7318aef6e285b3faaf45.tar.bz2
wix-6823fa23d6fe2115135e7318aef6e285b3faaf45.zip
Optionally use IDecompileContext.CabinetExtractFolder to extract cabs.
Diffstat (limited to '')
-rw-r--r--src/WixToolset.Core.WindowsInstaller/Decompile/DecompileMsiOrMsmCommand.cs2
-rw-r--r--src/WixToolset.Core/DecompileContext.cs2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Decompile/DecompileMsiOrMsmCommand.cs b/src/WixToolset.Core.WindowsInstaller/Decompile/DecompileMsiOrMsmCommand.cs
index d622dbb2..474847be 100644
--- a/src/WixToolset.Core.WindowsInstaller/Decompile/DecompileMsiOrMsmCommand.cs
+++ b/src/WixToolset.Core.WindowsInstaller/Decompile/DecompileMsiOrMsmCommand.cs
@@ -46,7 +46,7 @@ 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 fileDirectory = Path.Combine(this.Context.ExtractFolder, "File"); 49 var fileDirectory = String.IsNullOrEmpty(this.Context.CabinetExtractFolder) ? Path.Combine(this.Context.ExtractFolder, "File") : this.Context.CabinetExtractFolder;
50 50
51 var extractCommand = new ExtractCabinetsCommand(output, database, this.Context.DecompilePath, fileDirectory, this.Context.IntermediateFolder, this.Context.TreatProductAsModule); 51 var extractCommand = new ExtractCabinetsCommand(output, database, this.Context.DecompilePath, fileDirectory, this.Context.IntermediateFolder, this.Context.TreatProductAsModule);
52 extractCommand.Execute(); 52 extractCommand.Execute();
diff --git a/src/WixToolset.Core/DecompileContext.cs b/src/WixToolset.Core/DecompileContext.cs
index b697c3cf..c6902117 100644
--- a/src/WixToolset.Core/DecompileContext.cs
+++ b/src/WixToolset.Core/DecompileContext.cs
@@ -25,6 +25,8 @@ namespace WixToolset.Core
25 25
26 public string ExtractFolder { get; set; } 26 public string ExtractFolder { get; set; }
27 27
28 public string CabinetExtractFolder { get; set; }
29
28 public string BaseSourcePath { get; set; } 30 public string BaseSourcePath { get; set; }
29 31
30 public string IntermediateFolder { get; set; } 32 public string IntermediateFolder { get; set; }