diff options
Diffstat (limited to 'src/WixToolset.Core.Burn/Bundles/BurnReader.cs')
-rw-r--r-- | src/WixToolset.Core.Burn/Bundles/BurnReader.cs | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/WixToolset.Core.Burn/Bundles/BurnReader.cs b/src/WixToolset.Core.Burn/Bundles/BurnReader.cs index 261ef7b4..3b3076c4 100644 --- a/src/WixToolset.Core.Burn/Bundles/BurnReader.cs +++ b/src/WixToolset.Core.Burn/Bundles/BurnReader.cs | |||
@@ -7,7 +7,7 @@ namespace WixToolset.Core.Burn.Bundles | |||
7 | using System.Collections.Generic; | 7 | using System.Collections.Generic; |
8 | using System.IO; | 8 | using System.IO; |
9 | using System.Xml; | 9 | using System.Xml; |
10 | using WixToolset.Core.Cab; | 10 | using WixToolset.Core.Native; |
11 | 11 | ||
12 | /// <summary> | 12 | /// <summary> |
13 | /// Burn PE reader for the WiX toolset. | 13 | /// Burn PE reader for the WiX toolset. |
@@ -101,10 +101,8 @@ namespace WixToolset.Core.Burn.Bundles | |||
101 | BurnCommon.CopyStream(this.binaryReader.BaseStream, tempCab, (int)this.UXSize); | 101 | BurnCommon.CopyStream(this.binaryReader.BaseStream, tempCab, (int)this.UXSize); |
102 | } | 102 | } |
103 | 103 | ||
104 | using (var extract = new WixExtractCab()) | 104 | var cabinet = new Cabinet(tempCabPath); |
105 | { | 105 | cabinet.Extract(outputDirectory); |
106 | extract.Extract(tempCabPath, outputDirectory); | ||
107 | } | ||
108 | 106 | ||
109 | Directory.CreateDirectory(Path.GetDirectoryName(manifestPath)); | 107 | Directory.CreateDirectory(Path.GetDirectoryName(manifestPath)); |
110 | File.Delete(manifestPath); | 108 | File.Delete(manifestPath); |
@@ -181,10 +179,8 @@ namespace WixToolset.Core.Burn.Bundles | |||
181 | BurnCommon.CopyStream(this.binaryReader.BaseStream, tempCab, (int)this.AttachedContainerSize); | 179 | BurnCommon.CopyStream(this.binaryReader.BaseStream, tempCab, (int)this.AttachedContainerSize); |
182 | } | 180 | } |
183 | 181 | ||
184 | using (WixExtractCab extract = new WixExtractCab()) | 182 | var cabinet = new Cabinet(tempCabPath); |
185 | { | 183 | cabinet.Extract(outputDirectory); |
186 | extract.Extract(tempCabPath, outputDirectory); | ||
187 | } | ||
188 | 184 | ||
189 | foreach (DictionaryEntry entry in this.attachedContainerPayloadNames) | 185 | foreach (DictionaryEntry entry in this.attachedContainerPayloadNames) |
190 | { | 186 | { |