aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core.WindowsInstaller/Decompile
diff options
context:
space:
mode:
authorBob Arnson <bob@firegiant.com>2018-12-05 19:12:53 -0500
committerBob Arnson <bob@firegiant.com>2018-12-05 20:15:30 -0500
commit3b3854e3cb7c171cd356497531a040596af5d214 (patch)
tree8438bab6ff671135e014aa3ddb28e30a969a5069 /src/WixToolset.Core.WindowsInstaller/Decompile
parent8510c8891b2db107b67a94efe1011e1b513d91b4 (diff)
downloadwix-3b3854e3cb7c171cd356497531a040596af5d214.tar.gz
wix-3b3854e3cb7c171cd356497531a040596af5d214.tar.bz2
wix-3b3854e3cb7c171cd356497531a040596af5d214.zip
Return object fields exported from unbinding in the decompile results.
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Decompile')
-rw-r--r--src/WixToolset.Core.WindowsInstaller/Decompile/DecompileMsiOrMsmCommand.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Decompile/DecompileMsiOrMsmCommand.cs b/src/WixToolset.Core.WindowsInstaller/Decompile/DecompileMsiOrMsmCommand.cs
index 6ca1d89f..e874eed6 100644
--- a/src/WixToolset.Core.WindowsInstaller/Decompile/DecompileMsiOrMsmCommand.cs
+++ b/src/WixToolset.Core.WindowsInstaller/Decompile/DecompileMsiOrMsmCommand.cs
@@ -5,6 +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 WixToolset.Core.Native; 9 using WixToolset.Core.Native;
9 using WixToolset.Data; 10 using WixToolset.Data;
10 using WixToolset.Extensibility; 11 using WixToolset.Extensibility;
@@ -37,6 +38,7 @@ namespace WixToolset.Core.WindowsInstaller.Unbind
37 { 38 {
38 var unbindCommand = new UnbindDatabaseCommand(this.Messaging, database, this.Context.DecompilePath, this.Context.DecompileType, this.Context.ExtractFolder, this.Context.IntermediateFolder, this.Context.IsAdminImage, false, skipSummaryInfo: false); 39 var unbindCommand = new UnbindDatabaseCommand(this.Messaging, database, this.Context.DecompilePath, this.Context.DecompileType, this.Context.ExtractFolder, this.Context.IntermediateFolder, this.Context.IsAdminImage, false, skipSummaryInfo: false);
39 var output = unbindCommand.Execute(); 40 var output = unbindCommand.Execute();
41 var extractedFilePaths = new List<string>(unbindCommand.ExportedFiles);
40 42
41 var decompiler = new Decompiler(this.Messaging, this.Extensions, this.Context.BaseSourcePath, this.Context.SuppressCustomTables, this.Context.SuppressDroppingEmptyTables, this.Context.SuppressUI, this.Context.TreatProductAsModule); 43 var decompiler = new Decompiler(this.Messaging, this.Extensions, this.Context.BaseSourcePath, this.Context.SuppressCustomTables, this.Context.SuppressDroppingEmptyTables, this.Context.SuppressUI, this.Context.TreatProductAsModule);
42 result.Document = decompiler.Decompile(output); 44 result.Document = decompiler.Decompile(output);
@@ -47,7 +49,8 @@ namespace WixToolset.Core.WindowsInstaller.Unbind
47 var extractCommand = new ExtractCabinetsCommand(output, database, this.Context.DecompilePath, this.Context.ExtractFolder, this.Context.IntermediateFolder, this.Context.TreatProductAsModule); 49 var extractCommand = new ExtractCabinetsCommand(output, database, this.Context.DecompilePath, this.Context.ExtractFolder, this.Context.IntermediateFolder, this.Context.TreatProductAsModule);
48 extractCommand.Execute(); 50 extractCommand.Execute();
49 51
50 result.ExtractedFilePaths = extractCommand.ExtractedFiles; 52 extractedFilePaths.AddRange(extractCommand.ExtractedFiles);
53 result.ExtractedFilePaths = extractedFilePaths;
51 } 54 }
52 else 55 else
53 { 56 {