Menu

#1244 Preprocessor variables do not work correctly

v3.0
closed
candle (347)
2012-09-15
2008-06-16
Jens Lorenz
No

WiX v3.0.4214.0

  1. Although stated otherwise in the documentation, this does not work:

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 .

  1. Checking for defined preprocessor variables does not allow using them, even when the statements are not used. The following statement will give the error CNDL0150: Undefined preprocessor variable '$(var.C)' and refuse to compile.

But the surrounding already checks for existance of the variable. So the enclosed should not be evaluated.

The same is true for this variant.

  1. How to check whether a variable has a value.

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.

Discussion

  • Jens Lorenz

    Jens Lorenz - 2008-06-16

    minimal example for illustration

     
  • SourceForge Robot

    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).

     
MongoDB Logo MongoDB