diff options
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Unbind')
| -rw-r--r-- | src/WixToolset.Core.WindowsInstaller/Unbind/UnbindDatabaseCommand.cs | 9 |
1 files changed, 9 insertions, 0 deletions
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 | |||
| 7 | using System.Collections.Generic; | 7 | using System.Collections.Generic; |
| 8 | using System.Globalization; | 8 | using System.Globalization; |
| 9 | using System.IO; | 9 | using System.IO; |
| 10 | using System.Linq; | ||
| 10 | using System.Text.RegularExpressions; | 11 | using System.Text.RegularExpressions; |
| 11 | using WixToolset.Core.Native; | 12 | using WixToolset.Core.Native; |
| 12 | using WixToolset.Data; | 13 | using WixToolset.Data; |
| @@ -17,6 +18,8 @@ namespace WixToolset.Core.WindowsInstaller.Unbind | |||
| 17 | 18 | ||
| 18 | internal class UnbindDatabaseCommand | 19 | internal class UnbindDatabaseCommand |
| 19 | { | 20 | { |
| 21 | private List<string> exportedFiles; | ||
| 22 | |||
| 20 | public UnbindDatabaseCommand(IMessaging messaging, Database database, string databasePath, OutputType outputType, string exportBasePath, string intermediateFolder, bool isAdminImage, bool suppressDemodularization, bool skipSummaryInfo) | 23 | public UnbindDatabaseCommand(IMessaging messaging, Database database, string databasePath, OutputType outputType, string exportBasePath, string intermediateFolder, bool isAdminImage, bool suppressDemodularization, bool skipSummaryInfo) |
| 21 | { | 24 | { |
| 22 | this.Messaging = messaging; | 25 | this.Messaging = messaging; |
| @@ -52,10 +55,14 @@ namespace WixToolset.Core.WindowsInstaller.Unbind | |||
| 52 | 55 | ||
| 53 | public TableDefinitionCollection TableDefinitions { get; } | 56 | public TableDefinitionCollection TableDefinitions { get; } |
| 54 | 57 | ||
| 58 | public IEnumerable<string> ExportedFiles => this.exportedFiles; | ||
| 59 | |||
| 55 | private int SectionCount { get; set; } | 60 | private int SectionCount { get; set; } |
| 56 | 61 | ||
| 57 | public Output Execute() | 62 | public Output Execute() |
| 58 | { | 63 | { |
| 64 | this.exportedFiles = new List<string>(); | ||
| 65 | |||
| 59 | string modularizationGuid = null; | 66 | string modularizationGuid = null; |
| 60 | var output = new Output(new SourceLineNumber(this.DatabasePath)); | 67 | var output = new Output(new SourceLineNumber(this.DatabasePath)); |
| 61 | View validationView = null; | 68 | View validationView = null; |
| @@ -343,6 +350,8 @@ namespace WixToolset.Core.WindowsInstaller.Unbind | |||
| 343 | fs.Write(buffer, 0, bytesRead); | 350 | fs.Write(buffer, 0, bytesRead); |
| 344 | } | 351 | } |
| 345 | } | 352 | } |
| 353 | |||
| 354 | this.exportedFiles.Add(sourceFile); | ||
| 346 | } | 355 | } |
| 347 | 356 | ||
| 348 | row[i] = sourceFile; | 357 | row[i] = sourceFile; |
