From 427e1a8c65c038e63674503f4f56e53fe00ac7f0 Mon Sep 17 00:00:00 2001 From: Bob Arnson Date: Wed, 11 Dec 2019 19:05:57 -0500 Subject: Correctly report files unbound from cabinets. --- .../Unbind/ExtractCabinetsCommand.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/WixToolset.Core.WindowsInstaller/Unbind') 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 using System.Collections.Generic; using System.Globalization; using System.IO; + using System.Linq; using WixToolset.Core.Native; using WixToolset.Core.WindowsInstaller.Msi; using WixToolset.Data; @@ -129,15 +130,13 @@ namespace WixToolset.Core.WindowsInstaller.Unbind try { var cabinet = new Cabinet(cabinetFile); - cabinet.Extract(this.ExportBasePath); + this.ExtractedFiles = cabinet.Extract(this.ExportBasePath).ToArray(); } catch (FileNotFoundException) { throw new WixException(ErrorMessages.FileNotFound(new SourceLineNumber(this.InputFilePath), cabinetFile)); } } - - this.ExtractedFiles = Directory.GetFiles(this.ExportBasePath); } else { -- cgit v1.2.3-55-g6feb