[wix-users] conditional compilation IFDEF ?
anadem at gmail.com
Wed Dec 11 19:43:38 PST 2019
oops, silly me, I found ifndef!
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
> <?if $(var.MY_VAR) = yes ?>
> <Condition Message="You need to be an administrator to install
> this product.">
> <?else ?>
> <?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"
More information about the wix-users