From 13b2d56bf2ac116f29ca4b930a929bb26037b940 Mon Sep 17 00:00:00 2001 From: Bob Arnson Date: Wed, 11 Dec 2019 19:03:44 -0500 Subject: Handle cab-free Media element. --- src/WixToolset.Core/Compiler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WixToolset.Core/Compiler.cs b/src/WixToolset.Core/Compiler.cs index 179c5a37..2a020ad5 100644 --- a/src/WixToolset.Core/Compiler.cs +++ b/src/WixToolset.Core/Compiler.cs @@ -7299,7 +7299,7 @@ namespace WixToolset.Core } } - if (!compressionLevel.HasValue && null == cabinet) + if (compressionLevel.HasValue && String.IsNullOrEmpty(cabinet)) { this.Core.Write(ErrorMessages.ExpectedAttribute(sourceLineNumbers, node.Name.LocalName, "Cabinet", "CompressionLevel")); } -- cgit v1.2.3-55-g6feb