diff options
| author | Rob Mensching <rob@firegiant.com> | 2021-03-14 07:38:48 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2021-03-14 07:47:48 -0700 |
| commit | 3ccd5e439da4296d6f2b66ce47075ab20d039676 (patch) | |
| tree | b5546552613b869367d09f444492a0bbcfadcfe0 /src/WixToolset.Core.WindowsInstaller/Unbind/UnbindTranformCommand.cs | |
| parent | 574785ab1421c9b67336c13ade5c2263e665ca07 (diff) | |
| download | wix-3ccd5e439da4296d6f2b66ce47075ab20d039676.tar.gz wix-3ccd5e439da4296d6f2b66ce47075ab20d039676.tar.bz2 wix-3ccd5e439da4296d6f2b66ce47075ab20d039676.zip | |
Minimize public surface area of Core
Fixes wixtoolset/issues#6374
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Unbind/UnbindTranformCommand.cs')
| -rw-r--r-- | src/WixToolset.Core.WindowsInstaller/Unbind/UnbindTranformCommand.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindTranformCommand.cs b/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindTranformCommand.cs index de2c5e37..bde29405 100644 --- a/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindTranformCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindTranformCommand.cs | |||
| @@ -17,9 +17,10 @@ namespace WixToolset.Core.WindowsInstaller.Unbind | |||
| 17 | 17 | ||
| 18 | internal class UnbindTransformCommand | 18 | internal class UnbindTransformCommand |
| 19 | { | 19 | { |
| 20 | public UnbindTransformCommand(IMessaging messaging, string transformFile, string exportBasePath, string intermediateFolder) | 20 | public UnbindTransformCommand(IMessaging messaging, IBackendHelper backendHelper, string transformFile, string exportBasePath, string intermediateFolder) |
| 21 | { | 21 | { |
| 22 | this.Messaging = messaging; | 22 | this.Messaging = messaging; |
| 23 | this.BackendHelper = backendHelper; | ||
| 23 | this.TransformFile = transformFile; | 24 | this.TransformFile = transformFile; |
| 24 | this.ExportBasePath = exportBasePath; | 25 | this.ExportBasePath = exportBasePath; |
| 25 | this.IntermediateFolder = intermediateFolder; | 26 | this.IntermediateFolder = intermediateFolder; |
| @@ -29,6 +30,8 @@ namespace WixToolset.Core.WindowsInstaller.Unbind | |||
| 29 | 30 | ||
| 30 | private IMessaging Messaging { get; } | 31 | private IMessaging Messaging { get; } |
| 31 | 32 | ||
| 33 | private IBackendHelper BackendHelper { get; } | ||
| 34 | |||
| 32 | private string TransformFile { get; } | 35 | private string TransformFile { get; } |
| 33 | 36 | ||
| 34 | private string ExportBasePath { get; } | 37 | private string ExportBasePath { get; } |
| @@ -87,7 +90,7 @@ namespace WixToolset.Core.WindowsInstaller.Unbind | |||
| 87 | msiDatabase.ApplyTransform(this.TransformFile, TransformErrorConditions.All | TransformErrorConditions.ViewTransform); | 90 | msiDatabase.ApplyTransform(this.TransformFile, TransformErrorConditions.All | TransformErrorConditions.ViewTransform); |
| 88 | 91 | ||
| 89 | // unbind the database | 92 | // unbind the database |
| 90 | var unbindCommand = new UnbindDatabaseCommand(this.Messaging, msiDatabase, msiDatabaseFile, OutputType.Product, this.ExportBasePath, this.IntermediateFolder, false, false, skipSummaryInfo: true); | 93 | var unbindCommand = new UnbindDatabaseCommand(this.Messaging, this.BackendHelper, msiDatabase, msiDatabaseFile, OutputType.Product, this.ExportBasePath, this.IntermediateFolder, false, false, skipSummaryInfo: true); |
| 91 | var transformViewOutput = unbindCommand.Execute(); | 94 | var transformViewOutput = unbindCommand.Execute(); |
| 92 | 95 | ||
| 93 | // index the added and possibly modified rows (added rows may also appears as modified rows) | 96 | // index the added and possibly modified rows (added rows may also appears as modified rows) |
| @@ -157,7 +160,7 @@ namespace WixToolset.Core.WindowsInstaller.Unbind | |||
| 157 | } | 160 | } |
| 158 | 161 | ||
| 159 | // unbind the database | 162 | // unbind the database |
| 160 | var unbindCommand = new UnbindDatabaseCommand(this.Messaging, msiDatabase, msiDatabaseFile, OutputType.Product, this.ExportBasePath, this.IntermediateFolder, false, false, skipSummaryInfo: true); | 163 | var unbindCommand = new UnbindDatabaseCommand(this.Messaging, this.BackendHelper, msiDatabase, msiDatabaseFile, OutputType.Product, this.ExportBasePath, this.IntermediateFolder, false, false, skipSummaryInfo: true); |
| 161 | var output = unbindCommand.Execute(); | 164 | var output = unbindCommand.Execute(); |
| 162 | 165 | ||
| 163 | // index all the rows to easily find modified rows | 166 | // index all the rows to easily find modified rows |
