diff options
| author | Rob Mensching <rob@firegiant.com> | 2019-05-22 16:28:02 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2019-05-23 16:02:37 -0700 |
| commit | 3051bf2fc300df125115c9538a0bfc8256bfde6a (patch) | |
| tree | 65aa2e091a6a5fa983314ab9cb55a72ba16faf02 /src/WixToolset.Core.WindowsInstaller/Bind/CalculateComponentGuids.cs | |
| parent | 3859a8cd7d6001f7b49c22065e33242ddb486fbb (diff) | |
| download | wix-3051bf2fc300df125115c9538a0bfc8256bfde6a.tar.gz wix-3051bf2fc300df125115c9538a0bfc8256bfde6a.tar.bz2 wix-3051bf2fc300df125115c9538a0bfc8256bfde6a.zip | |
Integrate short and source name changes to Directory and Shortcut tuples
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Bind/CalculateComponentGuids.cs')
| -rw-r--r-- | src/WixToolset.Core.WindowsInstaller/Bind/CalculateComponentGuids.cs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/CalculateComponentGuids.cs b/src/WixToolset.Core.WindowsInstaller/Bind/CalculateComponentGuids.cs index f66ff375..835d9b8d 100644 --- a/src/WixToolset.Core.WindowsInstaller/Bind/CalculateComponentGuids.cs +++ b/src/WixToolset.Core.WindowsInstaller/Bind/CalculateComponentGuids.cs | |||
| @@ -76,18 +76,17 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 76 | targetPathsByDirectoryId = new Dictionary<string, ResolvedDirectory>(directories.Count); | 76 | targetPathsByDirectoryId = new Dictionary<string, ResolvedDirectory>(directories.Count); |
| 77 | 77 | ||
| 78 | // Get the target paths for all directories. | 78 | // Get the target paths for all directories. |
| 79 | foreach (var row in directories) | 79 | foreach (var directory in directories) |
| 80 | { | 80 | { |
| 81 | // If the directory Id already exists, we will skip it here since | 81 | // If the directory Id already exists, we will skip it here since |
| 82 | // checking for duplicate primary keys is done later when importing tables | 82 | // checking for duplicate primary keys is done later when importing tables |
| 83 | // into database | 83 | // into database |
| 84 | if (targetPathsByDirectoryId.ContainsKey(row.Id.Id)) | 84 | if (targetPathsByDirectoryId.ContainsKey(directory.Id.Id)) |
| 85 | { | 85 | { |
| 86 | continue; | 86 | continue; |
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | var targetName = Common.GetName(row.DefaultDir, false, true); | 89 | targetPathsByDirectoryId.Add(directory.Id.Id, new ResolvedDirectory(directory.ParentDirectoryRef, directory.Name)); |
| 90 | targetPathsByDirectoryId.Add(row.Id.Id, new ResolvedDirectory(row.ParentDirectoryRef, targetName)); | ||
| 91 | } | 90 | } |
| 92 | } | 91 | } |
| 93 | 92 | ||
