Reference WiX define made in included file.

Posted by leiflundgren on Stack Overflow See other posts from Stack Overflow or by leiflundgren
Published on 2010-04-17T16:47:16Z Indexed on 2010/04/17 16:53 UTC
Read the original article Hit count: 370

Filed under:

I have a defines.wxi-file which contains some good definitions used in all my wxs-files.

When I attempt to reference the defined value I get Undefined preprocessor variable '$(var.MAGE_FOLDER)' back in my face.

I guess there is something trivial I am missing here... Any ideas?


defines.wxi

<Include>
    <?define IMAGE_FOLDER="Images" ?> 
</Include>

Product.wxs

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">

    <?Include defines.wxi ?>

    <Product ... >    
        <Component Id='c.Images' Directory='$(var.IMAGE_FOLDER)' />

© Stack Overflow or respective owner

Related posts about wix