aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core.WindowsInstaller/Unbind
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2019-10-26 13:40:49 -0700
committerRob Mensching <rob@firegiant.com>2019-10-26 13:56:11 -0700
commit6eab6255f832007886c4b01861dc39d5582177ef (patch)
treecb3e11ad38046ed74eede94126c9923e4dfc287b /src/WixToolset.Core.WindowsInstaller/Unbind
parentf01d284101e95d490497062c2dc9065423d0cf37 (diff)
downloadwix-6eab6255f832007886c4b01861dc39d5582177ef.tar.gz
wix-6eab6255f832007886c4b01861dc39d5582177ef.tar.bz2
wix-6eab6255f832007886c4b01861dc39d5582177ef.zip
Update to WindowsInstallerData rename from Data
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Unbind')
-rw-r--r--src/WixToolset.Core.WindowsInstaller/Unbind/ExtractCabinetsCommand.cs4
-rw-r--r--src/WixToolset.Core.WindowsInstaller/Unbind/UnbindDatabaseCommand.cs8
-rw-r--r--src/WixToolset.Core.WindowsInstaller/Unbind/UnbindTranformCommand.cs12
3 files changed, 12 insertions, 12 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Unbind/ExtractCabinetsCommand.cs b/src/WixToolset.Core.WindowsInstaller/Unbind/ExtractCabinetsCommand.cs
index 57547d4f..86eaa945 100644
--- a/src/WixToolset.Core.WindowsInstaller/Unbind/ExtractCabinetsCommand.cs
+++ b/src/WixToolset.Core.WindowsInstaller/Unbind/ExtractCabinetsCommand.cs
@@ -15,7 +15,7 @@ namespace WixToolset.Core.WindowsInstaller.Unbind
15 15
16 internal class ExtractCabinetsCommand 16 internal class ExtractCabinetsCommand
17 { 17 {
18 public ExtractCabinetsCommand(Output output, Database database, string inputFilePath, string exportBasePath, string intermediateFolder, bool treatOutputAsModule = false) 18 public ExtractCabinetsCommand(WindowsInstallerData output, Database database, string inputFilePath, string exportBasePath, string intermediateFolder, bool treatOutputAsModule = false)
19 { 19 {
20 this.Output = output; 20 this.Output = output;
21 this.Database = database; 21 this.Database = database;
@@ -27,7 +27,7 @@ namespace WixToolset.Core.WindowsInstaller.Unbind
27 27
28 public string[] ExtractedFiles { get; private set; } 28 public string[] ExtractedFiles { get; private set; }
29 29
30 private Output Output { get; } 30 private WindowsInstallerData Output { get; }
31 31
32 private Database Database { get; } 32 private Database Database { get; }
33 33
diff --git a/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindDatabaseCommand.cs b/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindDatabaseCommand.cs
index 0699199b..2a26be8c 100644
--- a/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindDatabaseCommand.cs
+++ b/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindDatabaseCommand.cs
@@ -57,12 +57,12 @@ namespace WixToolset.Core.WindowsInstaller.Unbind
57 57
58 private int SectionCount { get; set; } 58 private int SectionCount { get; set; }
59 59
60 public Output Execute() 60 public WindowsInstallerData Execute()
61 { 61 {
62 this.exportedFiles = new List<string>(); 62 this.exportedFiles = new List<string>();
63 63
64 string modularizationGuid = null; 64 string modularizationGuid = null;
65 var output = new Output(new SourceLineNumber(this.DatabasePath)); 65 var output = new WindowsInstallerData(new SourceLineNumber(this.DatabasePath));
66 View validationView = null; 66 View validationView = null;
67 67
68 // set the output type 68 // set the output type
@@ -442,7 +442,7 @@ namespace WixToolset.Core.WindowsInstaller.Unbind
442 /// </summary> 442 /// </summary>
443 /// <param name="databaseFile">The path to the msi database file in an admin image.</param> 443 /// <param name="databaseFile">The path to the msi database file in an admin image.</param>
444 /// <param name="output">The Output that represents the msi database.</param> 444 /// <param name="output">The Output that represents the msi database.</param>
445 private void GenerateWixFileTable(string databaseFile, Output output) 445 private void GenerateWixFileTable(string databaseFile, WindowsInstallerData output)
446 { 446 {
447 throw new NotImplementedException(); 447 throw new NotImplementedException();
448#if TODO_FIX_UNBINDING_FILES 448#if TODO_FIX_UNBINDING_FILES
@@ -605,7 +605,7 @@ namespace WixToolset.Core.WindowsInstaller.Unbind
605 /// Creates section ids on rows which form logical groupings of resources. 605 /// Creates section ids on rows which form logical groupings of resources.
606 /// </summary> 606 /// </summary>
607 /// <param name="output">The Output that represents the msi database.</param> 607 /// <param name="output">The Output that represents the msi database.</param>
608 private void GenerateSectionIds(Output output) 608 private void GenerateSectionIds(WindowsInstallerData output)
609 { 609 {
610 // First assign and index section ids for the tables that are in their own sections. 610 // First assign and index section ids for the tables that are in their own sections.
611 this.AssignSectionIdsToTable(output.Tables["Binary"], 0); 611 this.AssignSectionIdsToTable(output.Tables["Binary"], 0);
diff --git a/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindTranformCommand.cs b/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindTranformCommand.cs
index bf282e99..bdf8d542 100644
--- a/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindTranformCommand.cs
+++ b/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindTranformCommand.cs
@@ -39,9 +39,9 @@ namespace WixToolset.Core.WindowsInstaller.Unbind
39 39
40 private string EmptyFile { get; set; } 40 private string EmptyFile { get; set; }
41 41
42 public Output Execute() 42 public WindowsInstallerData Execute()
43 { 43 {
44 Output transform = new Output(new SourceLineNumber(this.TransformFile)); 44 WindowsInstallerData transform = new WindowsInstallerData(new SourceLineNumber(this.TransformFile));
45 transform.Type = OutputType.Transform; 45 transform.Type = OutputType.Transform;
46 46
47 // get the summary information table 47 // get the summary information table
@@ -63,7 +63,7 @@ namespace WixToolset.Core.WindowsInstaller.Unbind
63 } 63 }
64 64
65 // create a schema msi which hopefully matches the table schemas in the transform 65 // create a schema msi which hopefully matches the table schemas in the transform
66 Output schemaOutput = new Output(null); 66 WindowsInstallerData schemaOutput = new WindowsInstallerData(null);
67 string msiDatabaseFile = Path.Combine(this.IntermediateFolder, "schema.msi"); 67 string msiDatabaseFile = Path.Combine(this.IntermediateFolder, "schema.msi");
68 foreach (TableDefinition tableDefinition in this.TableDefinitions) 68 foreach (TableDefinition tableDefinition in this.TableDefinitions)
69 { 69 {
@@ -88,7 +88,7 @@ namespace WixToolset.Core.WindowsInstaller.Unbind
88 88
89 // unbind the database 89 // unbind the database
90 var unbindCommand = new UnbindDatabaseCommand(this.Messaging, msiDatabase, msiDatabaseFile, OutputType.Product, this.ExportBasePath, this.IntermediateFolder, false, false, skipSummaryInfo: true); 90 var unbindCommand = new UnbindDatabaseCommand(this.Messaging, msiDatabase, msiDatabaseFile, OutputType.Product, this.ExportBasePath, this.IntermediateFolder, false, false, skipSummaryInfo: true);
91 Output transformViewOutput = unbindCommand.Execute(); 91 WindowsInstallerData transformViewOutput = unbindCommand.Execute();
92 92
93 // index the added and possibly modified rows (added rows may also appears as modified rows) 93 // index the added and possibly modified rows (added rows may also appears as modified rows)
94 transformViewTable = transformViewOutput.Tables["_TransformView"]; 94 transformViewTable = transformViewOutput.Tables["_TransformView"];
@@ -158,7 +158,7 @@ namespace WixToolset.Core.WindowsInstaller.Unbind
158 158
159 // unbind the database 159 // unbind the database
160 var unbindCommand = new UnbindDatabaseCommand(this.Messaging, msiDatabase, msiDatabaseFile, OutputType.Product, this.ExportBasePath, this.IntermediateFolder, false, false, skipSummaryInfo: true); 160 var unbindCommand = new UnbindDatabaseCommand(this.Messaging, msiDatabase, msiDatabaseFile, OutputType.Product, this.ExportBasePath, this.IntermediateFolder, false, false, skipSummaryInfo: true);
161 Output output = unbindCommand.Execute(); 161 WindowsInstallerData output = unbindCommand.Execute();
162 162
163 // index all the rows to easily find modified rows 163 // index all the rows to easily find modified rows
164 Hashtable rows = new Hashtable(); 164 Hashtable rows = new Hashtable();
@@ -240,7 +240,7 @@ namespace WixToolset.Core.WindowsInstaller.Unbind
240 return transform; 240 return transform;
241 } 241 }
242 242
243 private void GenerateDatabase(Output output, string databaseFile) 243 private void GenerateDatabase(WindowsInstallerData output, string databaseFile)
244 { 244 {
245 var command = new GenerateDatabaseCommand(); 245 var command = new GenerateDatabaseCommand();
246 command.Extensions = Array.Empty<IFileSystemExtension>(); 246 command.Extensions = Array.Empty<IFileSystemExtension>();