[wix-users] conditional compilation IFDEF ?
Alan Sinclair
anadem at gmail.com
Wed Dec 11 19:43:38 PST 2019
oops, silly me, I found ifndef!
thanks
Alan
On Wed, Dec 11, 2019 at 7:41 PM Alan Sinclair <anadem at gmail.com> wrote:
> Is there anything similar to "ifdef" for candle?
>
> I'm using conditional compilation of some .wxs sources with syntax like
> this:
> <?if $(var.MY_VAR) = yes ?>
> <Condition Message="You need to be an administrator to install
> this product.">
> Privileged
> </Condition>
> <?else ?>
> stuff
> <?endif ?>
> candle myfile.wxs -dMY_VAR=no
>
> My makefiles would be nicer if I could simply omit "-dMY_VAR=no" when its
> value isn't "yes"
>
> thanks
> Alan
>
More information about the wix-users
mailing list