diff options
| author | Rob Mensching <rob@firegiant.com> | 2017-11-29 22:03:26 -0800 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2017-11-29 22:03:26 -0800 |
| commit | 71c52d5af2293d3eb79882ce36b0411f81185c11 (patch) | |
| tree | 23dd116bdd6abc2b0f7b488f490d1b77faa41812 /src/WixToolset.Core.WindowsInstaller/Bind/CreateCabinetsCommand.cs | |
| parent | 0fa198ed8c6c6fc81e649466879752a99fe37d08 (diff) | |
| download | wix-71c52d5af2293d3eb79882ce36b0411f81185c11.tar.gz wix-71c52d5af2293d3eb79882ce36b0411f81185c11.tar.bz2 wix-71c52d5af2293d3eb79882ce36b0411f81185c11.zip | |
Fix source path and cabinet processing
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Bind/CreateCabinetsCommand.cs')
| -rw-r--r-- | src/WixToolset.Core.WindowsInstaller/Bind/CreateCabinetsCommand.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/CreateCabinetsCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/CreateCabinetsCommand.cs index b5a436c5..a449397d 100644 --- a/src/WixToolset.Core.WindowsInstaller/Bind/CreateCabinetsCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Bind/CreateCabinetsCommand.cs | |||
| @@ -66,7 +66,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 66 | 66 | ||
| 67 | public TableDefinitionCollection TableDefinitions { private get; set; } | 67 | public TableDefinitionCollection TableDefinitions { private get; set; } |
| 68 | 68 | ||
| 69 | public Table WixMediaTable { private get; set; } | 69 | public IEnumerable<WixMediaTuple> WixMediaTuples { private get; set; } |
| 70 | 70 | ||
| 71 | public IEnumerable<FileTransfer> FileTransfers => this.fileTransfers; | 71 | public IEnumerable<FileTransfer> FileTransfers => this.fileTransfers; |
| 72 | 72 | ||
| @@ -77,7 +77,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 77 | /// <returns>The uncompressed file rows.</returns> | 77 | /// <returns>The uncompressed file rows.</returns> |
| 78 | public void Execute() | 78 | public void Execute() |
| 79 | { | 79 | { |
| 80 | var wixMediaRows = new RowDictionary<WixMediaRow>(this.WixMediaTable); | 80 | var wixMediaTuples = this.WixMediaTuples.ToDictionary(t => t.DiskId_); |
| 81 | 81 | ||
| 82 | this.lastCabinetAddedToMediaTable = new Dictionary<string, string>(); | 82 | this.lastCabinetAddedToMediaTable = new Dictionary<string, string>(); |
| 83 | 83 | ||
| @@ -93,13 +93,13 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 93 | 93 | ||
| 94 | foreach (var entry in this.FileRowsByCabinet) | 94 | foreach (var entry in this.FileRowsByCabinet) |
| 95 | { | 95 | { |
| 96 | var mediaRow = entry.Key; | 96 | var mediaTuple = entry.Key; |
| 97 | IEnumerable<FileFacade> files = entry.Value; | 97 | IEnumerable<FileFacade> files = entry.Value; |
| 98 | CompressionLevel compressionLevel = this.DefaultCompressionLevel; | 98 | CompressionLevel compressionLevel = this.DefaultCompressionLevel; |
| 99 | 99 | ||
| 100 | string mediaLayoutFolder = null; | 100 | string mediaLayoutFolder = null; |
| 101 | 101 | ||
| 102 | if (wixMediaRows.TryGetValue(mediaRow.Id.Id, out var wixMediaRow)) | 102 | if (wixMediaTuples.TryGetValue(mediaTuple.DiskId, out var wixMediaRow)) |
| 103 | { | 103 | { |
| 104 | mediaLayoutFolder = wixMediaRow.Layout; | 104 | mediaLayoutFolder = wixMediaRow.Layout; |
| 105 | 105 | ||
| @@ -109,9 +109,9 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 109 | } | 109 | } |
| 110 | } | 110 | } |
| 111 | 111 | ||
| 112 | string cabinetDir = this.ResolveMedia(mediaRow, mediaLayoutFolder, this.LayoutDirectory); | 112 | string cabinetDir = this.ResolveMedia(mediaTuple, mediaLayoutFolder, this.LayoutDirectory); |
| 113 | 113 | ||
| 114 | CabinetWorkItem cabinetWorkItem = this.CreateCabinetWorkItem(this.Output, cabinetDir, mediaRow, compressionLevel, files, this.fileTransfers); | 114 | CabinetWorkItem cabinetWorkItem = this.CreateCabinetWorkItem(this.Output, cabinetDir, mediaTuple, compressionLevel, files, this.fileTransfers); |
| 115 | if (null != cabinetWorkItem) | 115 | if (null != cabinetWorkItem) |
| 116 | { | 116 | { |
| 117 | cabinetBuilder.Enqueue(cabinetWorkItem); | 117 | cabinetBuilder.Enqueue(cabinetWorkItem); |
