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/Bind/CreatePatchTransformsCommand.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/Bind/CreatePatchTransformsCommand.cs')
| -rw-r--r-- | src/WixToolset.Core.WindowsInstaller/Bind/CreatePatchTransformsCommand.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/CreatePatchTransformsCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/CreatePatchTransformsCommand.cs index 76e6dd56..7bc1a8bd 100644 --- a/src/WixToolset.Core.WindowsInstaller/Bind/CreatePatchTransformsCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Bind/CreatePatchTransformsCommand.cs | |||
| @@ -15,15 +15,18 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 15 | 15 | ||
| 16 | internal class CreatePatchTransformsCommand | 16 | internal class CreatePatchTransformsCommand |
| 17 | { | 17 | { |
| 18 | public CreatePatchTransformsCommand(IMessaging messaging, Intermediate intermediate, string intermediateFolder) | 18 | public CreatePatchTransformsCommand(IMessaging messaging, IBackendHelper backendHelper, Intermediate intermediate, string intermediateFolder) |
| 19 | { | 19 | { |
| 20 | this.Messaging = messaging; | 20 | this.Messaging = messaging; |
| 21 | this.BackendHelper = backendHelper; | ||
| 21 | this.Intermediate = intermediate; | 22 | this.Intermediate = intermediate; |
| 22 | this.IntermediateFolder = intermediateFolder; | 23 | this.IntermediateFolder = intermediateFolder; |
| 23 | } | 24 | } |
| 24 | 25 | ||
| 25 | private IMessaging Messaging { get; } | 26 | private IMessaging Messaging { get; } |
| 26 | 27 | ||
| 28 | private IBackendHelper BackendHelper { get; } | ||
| 29 | |||
| 27 | private Intermediate Intermediate { get; } | 30 | private Intermediate Intermediate { get; } |
| 28 | 31 | ||
| 29 | private string IntermediateFolder { get; } | 32 | private string IntermediateFolder { get; } |
| @@ -52,7 +55,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 52 | { | 55 | { |
| 53 | var exportBasePath = Path.Combine(this.IntermediateFolder, "_trans"); // TODO: come up with a better path. | 56 | var exportBasePath = Path.Combine(this.IntermediateFolder, "_trans"); // TODO: come up with a better path. |
| 54 | 57 | ||
| 55 | var command = new UnbindTransformCommand(this.Messaging, symbol.TransformFile.Path, exportBasePath, this.IntermediateFolder); | 58 | var command = new UnbindTransformCommand(this.Messaging, this.BackendHelper, symbol.TransformFile.Path, exportBasePath, this.IntermediateFolder); |
| 56 | transform = command.Execute(); | 59 | transform = command.Execute(); |
| 57 | } | 60 | } |
| 58 | 61 | ||
| @@ -76,7 +79,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 76 | 79 | ||
| 77 | var isAdminImage = false; // TODO: need a better way to set this | 80 | var isAdminImage = false; // TODO: need a better way to set this |
| 78 | 81 | ||
| 79 | var command = new UnbindDatabaseCommand(this.Messaging, database, path, OutputType.Product, exportBasePath, this.IntermediateFolder, isAdminImage, suppressDemodularization: true, skipSummaryInfo: true); | 82 | var command = new UnbindDatabaseCommand(this.Messaging, this.BackendHelper, database, path, OutputType.Product, exportBasePath, this.IntermediateFolder, isAdminImage, suppressDemodularization: true, skipSummaryInfo: true); |
| 80 | return command.Execute(); | 83 | return command.Execute(); |
| 81 | } | 84 | } |
| 82 | } | 85 | } |
