WiX v3.0.4214.0
candle.exe -dIExist does work.
Using the statement in a wxs file gives the following candle error.
Product.wxs(7) : error CNDL0151 : The define statement '' is not well-formed. Define statements should be in the form .
But the surrounding already checks for existance of the variable. So the enclosed should not be evaluated.
The same is true for this variant.
Gives the error LGHT0196: The WiX variable 'C' was declared without a value. Please specify a value for the variable.
I wanted to check whether a value actually does exist. The documentation does not state how to do this. If its not supported I would encourage implementing this feature.
minimal example for illustration
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 15 days (the time period specified by
the administrator of this Tracker).