aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/WixToolset.Core/Compiler.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/WixToolset.Core/Compiler.cs b/src/WixToolset.Core/Compiler.cs
index 003617cc..5267a232 100644
--- a/src/WixToolset.Core/Compiler.cs
+++ b/src/WixToolset.Core/Compiler.cs
@@ -2467,13 +2467,12 @@ namespace WixToolset.Core
2467 var isGeneratableGuidOk = "*" == guid; 2467 var isGeneratableGuidOk = "*" == guid;
2468 if (isGeneratableGuidOk) 2468 if (isGeneratableGuidOk)
2469 { 2469 {
2470 if (encounteredODBCDataSource) 2470 if (encounteredODBCDataSource || ComponentKeyPathType.Directory == keyPathType)
2471 { 2471 {
2472 this.Core.Write(ErrorMessages.IllegalComponentWithAutoGeneratedGuid(sourceLineNumbers)); 2472 this.Core.Write(ErrorMessages.IllegalComponentWithAutoGeneratedGuid(sourceLineNumbers));
2473 isGeneratableGuidOk = false; 2473 isGeneratableGuidOk = false;
2474 } 2474 }
2475 2475 else if (0 < files && ComponentKeyPathType.Registry == keyPathType)
2476 if (0 < files && ComponentKeyPathType.Registry == keyPathType)
2477 { 2476 {
2478 this.Core.Write(ErrorMessages.IllegalComponentWithAutoGeneratedGuid(sourceLineNumbers, true)); 2477 this.Core.Write(ErrorMessages.IllegalComponentWithAutoGeneratedGuid(sourceLineNumbers, true));
2479 isGeneratableGuidOk = false; 2478 isGeneratableGuidOk = false;