aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/WixToolset.Core.WindowsInstaller/Unbind/ExtractCabinetsCommand.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Unbind/ExtractCabinetsCommand.cs b/src/WixToolset.Core.WindowsInstaller/Unbind/ExtractCabinetsCommand.cs
index 86eaa945..6840b2d4 100644
--- a/src/WixToolset.Core.WindowsInstaller/Unbind/ExtractCabinetsCommand.cs
+++ b/src/WixToolset.Core.WindowsInstaller/Unbind/ExtractCabinetsCommand.cs
@@ -7,6 +7,7 @@ namespace WixToolset.Core.WindowsInstaller.Unbind
7 using System.Collections.Generic; 7 using System.Collections.Generic;
8 using System.Globalization; 8 using System.Globalization;
9 using System.IO; 9 using System.IO;
10 using System.Linq;
10 using WixToolset.Core.Native; 11 using WixToolset.Core.Native;
11 using WixToolset.Core.WindowsInstaller.Msi; 12 using WixToolset.Core.WindowsInstaller.Msi;
12 using WixToolset.Data; 13 using WixToolset.Data;
@@ -129,15 +130,13 @@ namespace WixToolset.Core.WindowsInstaller.Unbind
129 try 130 try
130 { 131 {
131 var cabinet = new Cabinet(cabinetFile); 132 var cabinet = new Cabinet(cabinetFile);
132 cabinet.Extract(this.ExportBasePath); 133 this.ExtractedFiles = cabinet.Extract(this.ExportBasePath).ToArray();
133 } 134 }
134 catch (FileNotFoundException) 135 catch (FileNotFoundException)
135 { 136 {
136 throw new WixException(ErrorMessages.FileNotFound(new SourceLineNumber(this.InputFilePath), cabinetFile)); 137 throw new WixException(ErrorMessages.FileNotFound(new SourceLineNumber(this.InputFilePath), cabinetFile));
137 } 138 }
138 } 139 }
139
140 this.ExtractedFiles = Directory.GetFiles(this.ExportBasePath);
141 } 140 }
142 else 141 else
143 { 142 {