diff options
| author | Rob Mensching <rob@firegiant.com> | 2020-05-30 14:53:05 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2020-05-30 15:07:21 -0700 |
| commit | d529525a1e331f3ef9ec2707791c99bd78fdd82f (patch) | |
| tree | 1d9fe1f0c0ee9850371c916802eb03ec9dc37a87 /src/WixToolset.Core.WindowsInstaller/Bind/GetFileFacadesCommand.cs | |
| parent | 9c54d2fce80983bbee5f0f113b5aa30f22bc8a23 (diff) | |
| download | wix-d529525a1e331f3ef9ec2707791c99bd78fdd82f.tar.gz wix-d529525a1e331f3ef9ec2707791c99bd78fdd82f.tar.bz2 wix-d529525a1e331f3ef9ec2707791c99bd78fdd82f.zip | |
Basic patching support
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Bind/GetFileFacadesCommand.cs')
| -rw-r--r-- | src/WixToolset.Core.WindowsInstaller/Bind/GetFileFacadesCommand.cs | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/GetFileFacadesCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/GetFileFacadesCommand.cs index 2844f797..55171da4 100644 --- a/src/WixToolset.Core.WindowsInstaller/Bind/GetFileFacadesCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Bind/GetFileFacadesCommand.cs | |||
| @@ -26,28 +26,26 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 26 | var facades = new List<FileFacade>(); | 26 | var facades = new List<FileFacade>(); |
| 27 | 27 | ||
| 28 | var assemblyFile = this.Section.Tuples.OfType<AssemblyTuple>().ToDictionary(t => t.Id.Id); | 28 | var assemblyFile = this.Section.Tuples.OfType<AssemblyTuple>().ToDictionary(t => t.Id.Id); |
| 29 | //var wixFiles = this.Section.Tuples.OfType<WixFileTuple>().ToDictionary(t => t.Id.Id); | ||
| 30 | //var deltaPatchFiles = this.Section.Tuples.OfType<WixDeltaPatchFileTuple>().ToDictionary(t => t.Id.Id); | 29 | //var deltaPatchFiles = this.Section.Tuples.OfType<WixDeltaPatchFileTuple>().ToDictionary(t => t.Id.Id); |
| 31 | 30 | ||
| 32 | foreach (var file in this.Section.Tuples.OfType<FileTuple>()) | 31 | foreach (var file in this.Section.Tuples.OfType<FileTuple>()) |
| 33 | { | 32 | { |
| 34 | //var wixFile = wixFiles[file.Id.Id]; | 33 | assemblyFile.TryGetValue(file.Id.Id, out var assembly); |
| 35 | 34 | ||
| 36 | //deltaPatchFiles.TryGetValue(file.Id.Id, out var deltaPatchFile); | 35 | //deltaPatchFiles.TryGetValue(file.Id.Id, out var deltaPatchFile); |
| 37 | 36 | ||
| 38 | //facades.Add(new FileFacade(file, wixFile, deltaPatchFile)); | ||
| 39 | |||
| 40 | assemblyFile.TryGetValue(file.Id.Id, out var assembly); | ||
| 41 | |||
| 42 | facades.Add(new FileFacade(file, assembly)); | 37 | facades.Add(new FileFacade(file, assembly)); |
| 38 | //facades.Add(new FileFacade(file, wixFile, deltaPatchFile)); | ||
| 43 | } | 39 | } |
| 44 | 40 | ||
| 45 | //this.ResolveDeltaPatchSymbolPaths(deltaPatchFiles, facades); | 41 | #if TODO_PATCHING_DELTA |
| 42 | this.ResolveDeltaPatchSymbolPaths(deltaPatchFiles, facades); | ||
| 43 | #endif | ||
| 46 | 44 | ||
| 47 | this.FileFacades = facades; | 45 | this.FileFacades = facades; |
| 48 | } | 46 | } |
| 49 | 47 | ||
| 50 | #if FIX_THIS | 48 | #if TODO_PATCHING_DELTA |
| 51 | /// <summary> | 49 | /// <summary> |
| 52 | /// Merge data from the WixPatchSymbolPaths rows into the WixDeltaPatchFile rows. | 50 | /// Merge data from the WixPatchSymbolPaths rows into the WixDeltaPatchFile rows. |
| 53 | /// </summary> | 51 | /// </summary> |
| @@ -132,7 +130,6 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 132 | file.SymbolPaths = String.Concat(file.SymbolPaths, ";", row.SymbolPaths); | 130 | file.SymbolPaths = String.Concat(file.SymbolPaths, ";", row.SymbolPaths); |
| 133 | } | 131 | } |
| 134 | 132 | ||
| 135 | #if TODO_PATCHING | ||
| 136 | Field field = row.Fields[2]; | 133 | Field field = row.Fields[2]; |
| 137 | if (null != field.PreviousData) | 134 | if (null != field.PreviousData) |
| 138 | { | 135 | { |
| @@ -145,7 +142,6 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 145 | file.PreviousSymbols = String.Concat(file.PreviousSymbols, ";", field.PreviousData); | 142 | file.PreviousSymbols = String.Concat(file.PreviousSymbols, ";", field.PreviousData); |
| 146 | } | 143 | } |
| 147 | } | 144 | } |
| 148 | #endif | ||
| 149 | } | 145 | } |
| 150 | #endif | 146 | #endif |
| 151 | } | 147 | } |
