diff options
| author | Rob Mensching <rob@firegiant.com> | 2020-05-30 14:53:05 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2020-05-30 15:07:21 -0700 |
| commit | d529525a1e331f3ef9ec2707791c99bd78fdd82f (patch) | |
| tree | 1d9fe1f0c0ee9850371c916802eb03ec9dc37a87 /src/WixToolset.Core.WindowsInstaller/Bind/GenerateDatabaseCommand.cs | |
| parent | 9c54d2fce80983bbee5f0f113b5aa30f22bc8a23 (diff) | |
| download | wix-d529525a1e331f3ef9ec2707791c99bd78fdd82f.tar.gz wix-d529525a1e331f3ef9ec2707791c99bd78fdd82f.tar.bz2 wix-d529525a1e331f3ef9ec2707791c99bd78fdd82f.zip | |
Basic patching support
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Bind/GenerateDatabaseCommand.cs')
| -rw-r--r-- | src/WixToolset.Core.WindowsInstaller/Bind/GenerateDatabaseCommand.cs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/GenerateDatabaseCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/GenerateDatabaseCommand.cs index ed3b6f01..eff94e80 100644 --- a/src/WixToolset.Core.WindowsInstaller/Bind/GenerateDatabaseCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Bind/GenerateDatabaseCommand.cs | |||
| @@ -10,17 +10,16 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 10 | using WixToolset.Core.WindowsInstaller.Msi; | 10 | using WixToolset.Core.WindowsInstaller.Msi; |
| 11 | using WixToolset.Data; | 11 | using WixToolset.Data; |
| 12 | using WixToolset.Data.WindowsInstaller; | 12 | using WixToolset.Data.WindowsInstaller; |
| 13 | using WixToolset.Extensibility; | ||
| 14 | using WixToolset.Extensibility.Data; | 13 | using WixToolset.Extensibility.Data; |
| 15 | using WixToolset.Extensibility.Services; | 14 | using WixToolset.Extensibility.Services; |
| 16 | 15 | ||
| 17 | internal class GenerateDatabaseCommand | 16 | internal class GenerateDatabaseCommand |
| 18 | { | 17 | { |
| 19 | public GenerateDatabaseCommand(IMessaging messaging, IBackendHelper backendHelper, IEnumerable<IFileSystemExtension> fileSystemExtensions, WindowsInstallerData data, string outputPath, TableDefinitionCollection tableDefinitions, string intermediateFolder, int codepage, bool keepAddedColumns, bool suppressAddingValidationRows, bool useSubdirectory) | 18 | public GenerateDatabaseCommand(IMessaging messaging, IBackendHelper backendHelper, FileSystemManager fileSystemManager, WindowsInstallerData data, string outputPath, TableDefinitionCollection tableDefinitions, string intermediateFolder, int codepage, bool keepAddedColumns, bool suppressAddingValidationRows, bool useSubdirectory) |
| 20 | { | 19 | { |
| 21 | this.Messaging = messaging; | 20 | this.Messaging = messaging; |
| 22 | this.BackendHelper = backendHelper; | 21 | this.BackendHelper = backendHelper; |
| 23 | this.Extensions = fileSystemExtensions; | 22 | this.FileSystemManager = fileSystemManager; |
| 24 | this.Data = data; | 23 | this.Data = data; |
| 25 | this.OutputPath = outputPath; | 24 | this.OutputPath = outputPath; |
| 26 | this.TableDefinitions = tableDefinitions; | 25 | this.TableDefinitions = tableDefinitions; |
| @@ -35,7 +34,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 35 | 34 | ||
| 36 | private IBackendHelper BackendHelper { get; } | 35 | private IBackendHelper BackendHelper { get; } |
| 37 | 36 | ||
| 38 | private IEnumerable<IFileSystemExtension> Extensions { get; } | 37 | private FileSystemManager FileSystemManager { get; } |
| 39 | 38 | ||
| 40 | /// <summary> | 39 | /// <summary> |
| 41 | /// Whether to keep columns added in a transform. | 40 | /// Whether to keep columns added in a transform. |
| @@ -371,7 +370,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 371 | var transformFile = Path.Combine(this.IntermediateFolder, String.Concat(subStorage.Name, ".mst")); | 370 | var transformFile = Path.Combine(this.IntermediateFolder, String.Concat(subStorage.Name, ".mst")); |
| 372 | 371 | ||
| 373 | // Bind the transform. | 372 | // Bind the transform. |
| 374 | var command = new BindTransformCommand(this.Messaging, this.BackendHelper, this.Extensions, this.IntermediateFolder, subStorage.Data, transformFile, this.TableDefinitions); | 373 | var command = new BindTransformCommand(this.Messaging, this.BackendHelper, this.FileSystemManager, this.IntermediateFolder, subStorage.Data, transformFile, this.TableDefinitions); |
| 375 | command.Execute(); | 374 | command.Execute(); |
| 376 | 375 | ||
| 377 | if (this.Messaging.EncounteredError) | 376 | if (this.Messaging.EncounteredError) |
