Integer variables at WIX

Posted by Hila on Stack Overflow See other posts from Stack Overflow or by Hila
Published on 2010-12-30T06:48:39Z Indexed on 2010/12/30 6:54 UTC
Read the original article Hit count: 292

Filed under:
|
|

I would like to install a feature according to the brand.
So in my brand.wxi I defined:

    <?define brand.FeatureLevel = 1 ?>

And in my wxs I wrote:

            <Feature Id="FF" Title="FF" Level="$(var.brand.FeatureLevel)">
                <ComponentRef Id="..." />
                <ComponentRef Id="..." />
            </Feature>

This definition works fine (wheather I've placed 0 or 1 as FeatureLevel). My only problem is a warning I get at compilation time:

The 'Level' attribute is invalid - The value '$(var.brand.FeatureLevel)' is invalid according to its datatype 'http://www.w3.org/2001/XMLSchema:integer' - The string '$(var.brand.FeatureLevel)' is not a valid Integer value.

Is there a way to fix this warning? Can I define integer variable? I couldn't find a way...

© Stack Overflow or respective owner

Related posts about variables

Related posts about wix