aboutsummaryrefslogtreecommitdiff
path: root/src/tools/heat
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/heat')
-rw-r--r--src/tools/heat/DirectoryHarvester.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/tools/heat/DirectoryHarvester.cs b/src/tools/heat/DirectoryHarvester.cs
index c153fef5..e69857ab 100644
--- a/src/tools/heat/DirectoryHarvester.cs
+++ b/src/tools/heat/DirectoryHarvester.cs
@@ -177,7 +177,7 @@ namespace WixToolset.Harvesters
177 { 177 {
178 try 178 try
179 { 179 {
180 int fileCount = this.HarvestDirectory(path, "SourceDir\\", harvestParent, generateType); 180 int fileCount = this.HarvestDirectory(path, "", harvestParent, generateType);
181 181
182 if (generateType != GenerateType.PayloadGroup) 182 if (generateType != GenerateType.PayloadGroup)
183 { 183 {
@@ -256,7 +256,7 @@ namespace WixToolset.Harvesters
256 foreach (string filePath in Directory.GetFiles(path)) 256 foreach (string filePath in Directory.GetFiles(path))
257 { 257 {
258 string fileName = Path.GetFileName(filePath); 258 string fileName = Path.GetFileName(filePath);
259 string source = String.Concat(relativePath, fileName); 259 string source = String.Concat("SourceDir\\", relativePath, fileName);
260 260
261 Wix.ISchemaElement newChild; 261 Wix.ISchemaElement newChild;
262 if (generateType == GenerateType.PayloadGroup) 262 if (generateType == GenerateType.PayloadGroup)
@@ -265,6 +265,11 @@ namespace WixToolset.Harvesters
265 newChild = payload; 265 newChild = payload;
266 266
267 payload.SourceFile = source; 267 payload.SourceFile = source;
268
269 if (!String.IsNullOrEmpty(relativePath))
270 {
271 payload.Name = String.Concat(relativePath, fileName);
272 }
268 } 273 }
269 else 274 else
270 { 275 {