From 3b3854e3cb7c171cd356497531a040596af5d214 Mon Sep 17 00:00:00 2001 From: Bob Arnson Date: Wed, 5 Dec 2018 19:12:53 -0500 Subject: Return object fields exported from unbinding in the decompile results. --- .../Unbind/UnbindDatabaseCommand.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/WixToolset.Core.WindowsInstaller/Unbind/UnbindDatabaseCommand.cs') diff --git a/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindDatabaseCommand.cs b/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindDatabaseCommand.cs index 3bbc29f1..86ecea38 100644 --- a/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindDatabaseCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindDatabaseCommand.cs @@ -7,6 +7,7 @@ namespace WixToolset.Core.WindowsInstaller.Unbind using System.Collections.Generic; using System.Globalization; using System.IO; + using System.Linq; using System.Text.RegularExpressions; using WixToolset.Core.Native; using WixToolset.Data; @@ -17,6 +18,8 @@ namespace WixToolset.Core.WindowsInstaller.Unbind internal class UnbindDatabaseCommand { + private List exportedFiles; + public UnbindDatabaseCommand(IMessaging messaging, Database database, string databasePath, OutputType outputType, string exportBasePath, string intermediateFolder, bool isAdminImage, bool suppressDemodularization, bool skipSummaryInfo) { this.Messaging = messaging; @@ -52,10 +55,14 @@ namespace WixToolset.Core.WindowsInstaller.Unbind public TableDefinitionCollection TableDefinitions { get; } + public IEnumerable ExportedFiles => this.exportedFiles; + private int SectionCount { get; set; } public Output Execute() { + this.exportedFiles = new List(); + string modularizationGuid = null; var output = new Output(new SourceLineNumber(this.DatabasePath)); View validationView = null; @@ -343,6 +350,8 @@ namespace WixToolset.Core.WindowsInstaller.Unbind fs.Write(buffer, 0, bytesRead); } } + + this.exportedFiles.Add(sourceFile); } row[i] = sourceFile; -- cgit v1.2.3-55-g6feb