diff options
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller')
3 files changed, 17 insertions, 13 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs index 205feeac..2e4b4827 100644 --- a/src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs | |||
| @@ -36,7 +36,6 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 36 | this.Intermediate = context.IntermediateRepresentation; | 36 | this.Intermediate = context.IntermediateRepresentation; |
| 37 | this.Messaging = context.Messaging; | 37 | this.Messaging = context.Messaging; |
| 38 | this.OutputPath = context.OutputPath; | 38 | this.OutputPath = context.OutputPath; |
| 39 | this.PdbFile = context.OutputPdbPath; | ||
| 40 | this.IntermediateFolder = context.IntermediateFolder; | 39 | this.IntermediateFolder = context.IntermediateFolder; |
| 41 | this.Validator = validator; | 40 | this.Validator = validator; |
| 42 | 41 | ||
| @@ -61,8 +60,6 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 61 | 60 | ||
| 62 | private IEnumerable<IWindowsInstallerBackendExtension> BackendExtensions { get; } | 61 | private IEnumerable<IWindowsInstallerBackendExtension> BackendExtensions { get; } |
| 63 | 62 | ||
| 64 | private string PdbFile { get; } | ||
| 65 | |||
| 66 | private Intermediate Intermediate { get; } | 63 | private Intermediate Intermediate { get; } |
| 67 | 64 | ||
| 68 | private IMessaging Messaging { get; } | 65 | private IMessaging Messaging { get; } |
| @@ -84,6 +81,8 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 84 | 81 | ||
| 85 | public IEnumerable<string> ContentFilePaths { get; private set; } | 82 | public IEnumerable<string> ContentFilePaths { get; private set; } |
| 86 | 83 | ||
| 84 | public Pdb Pdb { get; private set; } | ||
| 85 | |||
| 87 | public void Execute() | 86 | public void Execute() |
| 88 | { | 87 | { |
| 89 | var section = this.Intermediate.Sections.Single(); | 88 | var section = this.Intermediate.Sections.Single(); |
| @@ -428,14 +427,6 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 428 | return; | 427 | return; |
| 429 | } | 428 | } |
| 430 | 429 | ||
| 431 | // Output the output to a file. | ||
| 432 | if (!String.IsNullOrEmpty(this.PdbFile)) | ||
| 433 | { | ||
| 434 | Pdb pdb = new Pdb(); | ||
| 435 | pdb.Output = output; | ||
| 436 | pdb.Save(this.PdbFile); | ||
| 437 | } | ||
| 438 | |||
| 439 | // Merge modules. | 430 | // Merge modules. |
| 440 | if (containsMergeModules) | 431 | if (containsMergeModules) |
| 441 | { | 432 | { |
| @@ -514,6 +505,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 514 | 505 | ||
| 515 | this.FileTransfers = fileTransfers; | 506 | this.FileTransfers = fileTransfers; |
| 516 | this.ContentFilePaths = fileFacades.Select(r => r.WixFile.Source.Path).ToList(); | 507 | this.ContentFilePaths = fileFacades.Select(r => r.WixFile.Source.Path).ToList(); |
| 508 | this.Pdb = new Pdb { Output = output }; | ||
| 517 | 509 | ||
| 518 | // TODO: Eventually this gets removed | 510 | // TODO: Eventually this gets removed |
| 519 | var intermediate = new Intermediate(this.Intermediate.Id, new[] { section }, this.Intermediate.Localizations.ToDictionary(l => l.Culture, StringComparer.OrdinalIgnoreCase), this.Intermediate.EmbedFilePaths); | 511 | var intermediate = new Intermediate(this.Intermediate.Id, new[] { section }, this.Intermediate.Localizations.ToDictionary(l => l.Culture, StringComparer.OrdinalIgnoreCase), this.Intermediate.EmbedFilePaths); |
diff --git a/src/WixToolset.Core.WindowsInstaller/MsiBackend.cs b/src/WixToolset.Core.WindowsInstaller/MsiBackend.cs index 00f09db3..60aec15b 100644 --- a/src/WixToolset.Core.WindowsInstaller/MsiBackend.cs +++ b/src/WixToolset.Core.WindowsInstaller/MsiBackend.cs | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | namespace WixToolset.Core.WindowsInstaller | 3 | namespace WixToolset.Core.WindowsInstaller |
| 4 | { | 4 | { |
| 5 | using System; | ||
| 5 | using WixToolset.Core.WindowsInstaller.Bind; | 6 | using WixToolset.Core.WindowsInstaller.Bind; |
| 6 | using WixToolset.Core.WindowsInstaller.Inscribe; | 7 | using WixToolset.Core.WindowsInstaller.Inscribe; |
| 7 | using WixToolset.Core.WindowsInstaller.Unbind; | 8 | using WixToolset.Core.WindowsInstaller.Unbind; |
| @@ -32,7 +33,12 @@ namespace WixToolset.Core.WindowsInstaller | |||
| 32 | 33 | ||
| 33 | foreach (var extension in backendExtensions) | 34 | foreach (var extension in backendExtensions) |
| 34 | { | 35 | { |
| 35 | extension.PostBackendBind(result); | 36 | extension.PostBackendBind(result, command.Pdb); |
| 37 | } | ||
| 38 | |||
| 39 | if (!String.IsNullOrEmpty(context.OutputPdbPath)) | ||
| 40 | { | ||
| 41 | command.Pdb?.Save(context.OutputPdbPath); | ||
| 36 | } | 42 | } |
| 37 | 43 | ||
| 38 | return result; | 44 | return result; |
diff --git a/src/WixToolset.Core.WindowsInstaller/MsmBackend.cs b/src/WixToolset.Core.WindowsInstaller/MsmBackend.cs index 9c70860e..4076da66 100644 --- a/src/WixToolset.Core.WindowsInstaller/MsmBackend.cs +++ b/src/WixToolset.Core.WindowsInstaller/MsmBackend.cs | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | namespace WixToolset.Core.WindowsInstaller | 3 | namespace WixToolset.Core.WindowsInstaller |
| 4 | { | 4 | { |
| 5 | using System; | ||
| 5 | using WixToolset.Core.WindowsInstaller.Bind; | 6 | using WixToolset.Core.WindowsInstaller.Bind; |
| 6 | using WixToolset.Core.WindowsInstaller.Unbind; | 7 | using WixToolset.Core.WindowsInstaller.Unbind; |
| 7 | using WixToolset.Data; | 8 | using WixToolset.Data; |
| @@ -31,7 +32,12 @@ namespace WixToolset.Core.WindowsInstaller | |||
| 31 | 32 | ||
| 32 | foreach (var extension in backendExtensions) | 33 | foreach (var extension in backendExtensions) |
| 33 | { | 34 | { |
| 34 | extension.PostBackendBind(result); | 35 | extension.PostBackendBind(result, command.Pdb); |
| 36 | } | ||
| 37 | |||
| 38 | if (!String.IsNullOrEmpty(context.OutputPdbPath)) | ||
| 39 | { | ||
| 40 | command.Pdb?.Save(context.OutputPdbPath); | ||
| 35 | } | 41 | } |
| 36 | 42 | ||
| 37 | return result; | 43 | return result; |
