I'm had problems with this too.

I've had the following line in my .wixproj file:

    <WixVariables>Config="demo.wxi"</WixVariables>

Then in my .wxs file, I'd like to include the file specified as config.

I tried this in my .wxs file,
<?include $(var.Config) ?>
but I get this error:
Error CNDL0150: Undefined preprocessor variable '$(var.Config)'.

Then I looked around, and discovered, that this passes a LINKER variable.

To pass a compiler variable I need to do this instead:
    <DefineConstants>Config=demo.wxi</DefineConstants>

Now it works as expected.

Anthony Wieser
Wieser Software Ltd


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to