aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core.TestPackage/BundleExtractor.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Core.TestPackage/BundleExtractor.cs')
-rw-r--r--src/WixToolset.Core.TestPackage/BundleExtractor.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/WixToolset.Core.TestPackage/BundleExtractor.cs b/src/WixToolset.Core.TestPackage/BundleExtractor.cs
index ad97f113..8c9f31e6 100644
--- a/src/WixToolset.Core.TestPackage/BundleExtractor.cs
+++ b/src/WixToolset.Core.TestPackage/BundleExtractor.cs
@@ -45,6 +45,23 @@ namespace WixToolset.Core.TestPackage
45 } 45 }
46 46
47 /// <summary> 47 /// <summary>
48 /// Extracts the attached container.
49 /// </summary>
50 /// <param name="messaging"></param>
51 /// <param name="bundleFilePath">Path to the bundle.</param>
52 /// <param name="destinationFolderPath">Path to extract to.</param>
53 /// <param name="tempFolderPath">Temp path for extraction.</param>
54 /// <returns>True if there was an attached container.</returns>
55 public static bool ExtractAttachedContainer(IMessaging messaging, string bundleFilePath, string destinationFolderPath, string tempFolderPath)
56 {
57 Directory.CreateDirectory(tempFolderPath);
58 using (var burnReader = BurnReader.Open(messaging, bundleFilePath))
59 {
60 return burnReader.ExtractAttachedContainer(destinationFolderPath, tempFolderPath);
61 }
62 }
63
64 /// <summary>
48 /// Gets an <see cref="XmlNamespaceManager"/> for BootstrapperApplicationData.xml with the given prefix assigned to the root namespace. 65 /// Gets an <see cref="XmlNamespaceManager"/> for BootstrapperApplicationData.xml with the given prefix assigned to the root namespace.
49 /// </summary> 66 /// </summary>
50 /// <param name="document"></param> 67 /// <param name="document"></param>