Correctly report files unbound from cabinets.
Bob Arnson committed
Dec 11, 2019 at 19:05 UTC
427e1a8c65c038e63674503f4f56e53fe00ac7f0
1 file changed
+2
-3
src/WixToolset.Core.WindowsInstaller/Unbind/ExtractCabinetsCommand.cs
+2
-3
@@ -7,6 +7,7 @@ namespace WixToolset.Core.WindowsInstaller.Unbind
7
using System.Collections.Generic;
8
using System.Globalization;
9
using System.IO;
10
+ using System.Linq;
11
using WixToolset.Core.Native;
12
using WixToolset.Core.WindowsInstaller.Msi;
13
using WixToolset.Data;
@@ -129,15 +130,13 @@ namespace WixToolset.Core.WindowsInstaller.Unbind
130
try
131
{
132
var cabinet = new Cabinet(cabinetFile);
132
- cabinet.Extract(this.ExportBasePath);
133
+ this.ExtractedFiles = cabinet.Extract(this.ExportBasePath).ToArray();
134
}
135
catch (FileNotFoundException)
136
{
137
throw new WixException(ErrorMessages.FileNotFound(new SourceLineNumber(this.InputFilePath), cabinetFile));
138
}
139
}
139
-
140
- this.ExtractedFiles = Directory.GetFiles(this.ExportBasePath);
140
}
141
else
142
{