diff options
| author | Bob Arnson <bob@firegiant.com> | 2018-12-17 17:13:29 -0500 |
|---|---|---|
| committer | Bob Arnson <bob@firegiant.com> | 2018-12-17 17:22:20 -0500 |
| commit | 65a9e0b609f6b25e0e138eef9e8bb58cd98120d9 (patch) | |
| tree | 1d1612f716a99370833c0819abcb36bb98f2c507 /src/WixToolset.Core.WindowsInstaller/Unbind/ExtractCabinetsCommand.cs | |
| parent | fefa4b5403b7cfe29649e71d8b5f1a18faa93568 (diff) | |
| download | wix-65a9e0b609f6b25e0e138eef9e8bb58cd98120d9.tar.gz wix-65a9e0b609f6b25e0e138eef9e8bb58cd98120d9.tar.bz2 wix-65a9e0b609f6b25e0e138eef9e8bb58cd98120d9.zip | |
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.
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Unbind/ExtractCabinetsCommand.cs')
| -rw-r--r-- | src/WixToolset.Core.WindowsInstaller/Unbind/ExtractCabinetsCommand.cs | 6 |
1 files changed, 0 insertions, 6 deletions
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 | |||
| 121 | // extract the cabinet files | 121 | // extract the cabinet files |
| 122 | if (0 < cabinetFiles.Count) | 122 | if (0 < cabinetFiles.Count) |
| 123 | { | 123 | { |
| 124 | // delete the directory and its files to prevent cab extraction due to an existing file | ||
| 125 | if (Directory.Exists(this.ExportBasePath)) | ||
| 126 | { | ||
| 127 | Directory.Delete(this.ExportBasePath, true); | ||
| 128 | } | ||
| 129 | |||
| 130 | // ensure the directory exists or extraction will fail | 124 | // ensure the directory exists or extraction will fail |
| 131 | Directory.CreateDirectory(this.ExportBasePath); | 125 | Directory.CreateDirectory(this.ExportBasePath); |
| 132 | 126 | ||
