Welcome to MSDN Blogs Sign in | Join | Help

WiX: Preprocessor error and warning

This is simple but could be handy. You can now add preprocessor instructions to you WiX authoring that will allow you to display a warning or error message when the preprocessor encounters that line.

Often errors and warnings would be used inside other prepropcessor constructs.

Example:

<?warning Must define the variable variableThatMustBeDefined ?>
<?ifndef variableThatMustBeDefined ?> 
    <?error You did not define the variable variableThatMustBeDefined ?>
<?endif ?>

Published Saturday, May 05, 2007 8:32 PM by Petermarcu
Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: WiX: Preprocessor error and warning

Hi,

I am getting the error in the WIX compilation.

error CNDL0129: Schema validation is failed with the following error. The element "Product" in namespace cannot contain text.

I could'nt find any reference for the error CNDL0129.

Please help me.

Monday, May 26, 2008 12:08 AM by vijayjs

# re: WiX: Preprocessor error and warning

It sounds like you have either malformed xml or are trying to put text inside the Product element.

Wednesday, May 28, 2008 1:01 AM by Petermarcu

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker