aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core.Burn/Bundles/BurnReader.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Core.Burn/Bundles/BurnReader.cs')
-rw-r--r--src/WixToolset.Core.Burn/Bundles/BurnReader.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/WixToolset.Core.Burn/Bundles/BurnReader.cs b/src/WixToolset.Core.Burn/Bundles/BurnReader.cs
index 3b3076c4..b4e23623 100644
--- a/src/WixToolset.Core.Burn/Bundles/BurnReader.cs
+++ b/src/WixToolset.Core.Burn/Bundles/BurnReader.cs
@@ -8,6 +8,7 @@ namespace WixToolset.Core.Burn.Bundles
8 using System.IO; 8 using System.IO;
9 using System.Xml; 9 using System.Xml;
10 using WixToolset.Core.Native; 10 using WixToolset.Core.Native;
11 using WixToolset.Extensibility.Services;
11 12
12 /// <summary> 13 /// <summary>
13 /// Burn PE reader for the WiX toolset. 14 /// Burn PE reader for the WiX toolset.
@@ -32,8 +33,8 @@ namespace WixToolset.Core.Burn.Bundles
32 /// Creates a BurnReader for reading a PE file. 33 /// Creates a BurnReader for reading a PE file.
33 /// </summary> 34 /// </summary>
34 /// <param name="fileExe">File to read.</param> 35 /// <param name="fileExe">File to read.</param>
35 private BurnReader(string fileExe) 36 private BurnReader(IMessaging messaging, string fileExe)
36 : base(fileExe) 37 : base(messaging, fileExe)
37 { 38 {
38 this.attachedContainerPayloadNames = new List<DictionaryEntry>(); 39 this.attachedContainerPayloadNames = new List<DictionaryEntry>();
39 } 40 }
@@ -59,9 +60,9 @@ namespace WixToolset.Core.Burn.Bundles
59 /// </summary> 60 /// </summary>
60 /// <param name="fileExe">Path to file.</param> 61 /// <param name="fileExe">Path to file.</param>
61 /// <returns>Burn reader.</returns> 62 /// <returns>Burn reader.</returns>
62 public static BurnReader Open(string fileExe) 63 public static BurnReader Open(IMessaging messaging, string fileExe)
63 { 64 {
64 BurnReader reader = new BurnReader(fileExe); 65 BurnReader reader = new BurnReader(messaging, fileExe);
65 66
66 reader.binaryReader = new BinaryReader(File.Open(fileExe, FileMode.Open, FileAccess.Read, FileShare.Read | FileShare.Delete)); 67 reader.binaryReader = new BinaryReader(File.Open(fileExe, FileMode.Open, FileAccess.Read, FileShare.Read | FileShare.Delete));
67 if (!reader.Initialize(reader.binaryReader)) 68 if (!reader.Initialize(reader.binaryReader))