diff options
Diffstat (limited to 'src/WixToolset.Core/Compiler_EmbeddedUI.cs')
-rw-r--r-- | src/WixToolset.Core/Compiler_EmbeddedUI.cs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/WixToolset.Core/Compiler_EmbeddedUI.cs b/src/WixToolset.Core/Compiler_EmbeddedUI.cs index 706fe6e9..1827a200 100644 --- a/src/WixToolset.Core/Compiler_EmbeddedUI.cs +++ b/src/WixToolset.Core/Compiler_EmbeddedUI.cs | |||
@@ -23,6 +23,7 @@ namespace WixToolset.Core | |||
23 | var sourceLineNumbers = Preprocessor.GetSourceLineNumbers(node); | 23 | var sourceLineNumbers = Preprocessor.GetSourceLineNumbers(node); |
24 | Identifier id = null; | 24 | Identifier id = null; |
25 | string commandLine = null; | 25 | string commandLine = null; |
26 | string condition = null; | ||
26 | string source = null; | 27 | string source = null; |
27 | var type = 0; | 28 | var type = 0; |
28 | 29 | ||
@@ -47,6 +48,9 @@ namespace WixToolset.Core | |||
47 | case "CommandLine": | 48 | case "CommandLine": |
48 | commandLine = this.Core.GetAttributeValue(sourceLineNumbers, attrib); | 49 | commandLine = this.Core.GetAttributeValue(sourceLineNumbers, attrib); |
49 | break; | 50 | break; |
51 | case "Condition": | ||
52 | condition = this.Core.GetAttributeValue(sourceLineNumbers, attrib); | ||
53 | break; | ||
50 | case "FileSource": | 54 | case "FileSource": |
51 | if (null != source) | 55 | if (null != source) |
52 | { | 56 | { |
@@ -76,8 +80,11 @@ namespace WixToolset.Core | |||
76 | } | 80 | } |
77 | } | 81 | } |
78 | 82 | ||
79 | // Get the condition from the inner text of the element. | 83 | if (condition == null) |
80 | var condition = this.Core.GetConditionInnerText(node); | 84 | { |
85 | // Get the condition from the inner text of the element. | ||
86 | condition = this.Core.GetConditionInnerText(node); | ||
87 | } | ||
81 | 88 | ||
82 | if (null == id) | 89 | if (null == id) |
83 | { | 90 | { |