From 65a9e0b609f6b25e0e138eef9e8bb58cd98120d9 Mon Sep 17 00:00:00 2001 From: Bob Arnson Date: Mon, 17 Dec 2018 17:13:29 -0500 Subject: Clean and create export directory early. ...to support extracting cabinets to the root of the export directory rather than requiring files in cabinets to be extracted to their own directory. --- .../Unbind/ExtractCabinetsCommand.cs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/WixToolset.Core.WindowsInstaller/Unbind/ExtractCabinetsCommand.cs') diff --git a/src/WixToolset.Core.WindowsInstaller/Unbind/ExtractCabinetsCommand.cs b/src/WixToolset.Core.WindowsInstaller/Unbind/ExtractCabinetsCommand.cs index fab780f8..21ea1541 100644 --- a/src/WixToolset.Core.WindowsInstaller/Unbind/ExtractCabinetsCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Unbind/ExtractCabinetsCommand.cs @@ -121,12 +121,6 @@ namespace WixToolset.Core.WindowsInstaller.Unbind // extract the cabinet files if (0 < cabinetFiles.Count) { - // delete the directory and its files to prevent cab extraction due to an existing file - if (Directory.Exists(this.ExportBasePath)) - { - Directory.Delete(this.ExportBasePath, true); - } - // ensure the directory exists or extraction will fail Directory.CreateDirectory(this.ExportBasePath); -- cgit v1.2.3-55-g6feb