aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core.WindowsInstaller/Bind/CalculateComponentGuids.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Bind/CalculateComponentGuids.cs')
-rw-r--r--src/WixToolset.Core.WindowsInstaller/Bind/CalculateComponentGuids.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/CalculateComponentGuids.cs b/src/WixToolset.Core.WindowsInstaller/Bind/CalculateComponentGuids.cs
index 414984de..f66ff375 100644
--- a/src/WixToolset.Core.WindowsInstaller/Bind/CalculateComponentGuids.cs
+++ b/src/WixToolset.Core.WindowsInstaller/Bind/CalculateComponentGuids.cs
@@ -87,7 +87,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
87 } 87 }
88 88
89 var targetName = Common.GetName(row.DefaultDir, false, true); 89 var targetName = Common.GetName(row.DefaultDir, false, true);
90 targetPathsByDirectoryId.Add(row.Id.Id, new ResolvedDirectory(row.Directory_Parent, targetName)); 90 targetPathsByDirectoryId.Add(row.Id.Id, new ResolvedDirectory(row.ParentDirectoryRef, targetName));
91 } 91 }
92 } 92 }
93 93
@@ -112,10 +112,10 @@ namespace WixToolset.Core.WindowsInstaller.Bind
112 112
113 foreach (var file in files) 113 foreach (var file in files)
114 { 114 {
115 if (!filesByComponentId.TryGetValue(file.Component_, out var componentFiles)) 115 if (!filesByComponentId.TryGetValue(file.ComponentRef, out var componentFiles))
116 { 116 {
117 componentFiles = new List<FileTuple>(); 117 componentFiles = new List<FileTuple>();
118 filesByComponentId.Add(file.Component_, componentFiles); 118 filesByComponentId.Add(file.ComponentRef, componentFiles);
119 } 119 }
120 120
121 componentFiles.Add(file); 121 componentFiles.Add(file);
@@ -132,8 +132,8 @@ namespace WixToolset.Core.WindowsInstaller.Bind
132 if (fileRow.Id.Id == componentTuple.KeyPath) 132 if (fileRow.Id.Id == componentTuple.KeyPath)
133 { 133 {
134 // calculate the key file's canonical target path 134 // calculate the key file's canonical target path
135 string directoryPath = PathResolver.GetDirectoryPath(targetPathsByDirectoryId, componentIdGenSeeds, componentTuple.Directory_, true); 135 string directoryPath = PathResolver.GetDirectoryPath(targetPathsByDirectoryId, componentIdGenSeeds, componentTuple.DirectoryRef, true);
136 string fileName = Common.GetName(fileRow.LongFileName, false, true).ToLowerInvariant(); 136 string fileName = Common.GetName(fileRow.Name, false, true).ToLowerInvariant();
137 path = Path.Combine(directoryPath, fileName); 137 path = Path.Combine(directoryPath, fileName);
138 138
139 // find paths that are not canonicalized 139 // find paths that are not canonicalized
@@ -144,7 +144,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
144 path.StartsWith(@"StartMenuFolder\programs", StringComparison.Ordinal) || 144 path.StartsWith(@"StartMenuFolder\programs", StringComparison.Ordinal) ||
145 path.StartsWith(@"WindowsFolder\fonts", StringComparison.Ordinal)) 145 path.StartsWith(@"WindowsFolder\fonts", StringComparison.Ordinal))
146 { 146 {
147 this.Messaging.Write(ErrorMessages.IllegalPathForGeneratedComponentGuid(componentTuple.SourceLineNumbers, fileRow.Component_, path)); 147 this.Messaging.Write(ErrorMessages.IllegalPathForGeneratedComponentGuid(componentTuple.SourceLineNumbers, fileRow.ComponentRef, path));
148 } 148 }
149 149
150 // if component has more than one file, the key path must be versioned 150 // if component has more than one file, the key path must be versioned