On 22-Sep-10 18:11, David Amey wrote:
> Basically I'm using heat to harvest a folder, simples. However I'm using the 
> "-var" property in the command line (to replace the "sourceDir" in the output 
> component's source attribute), using a variable declared in the main.wxs. 
> This replaces the "sourceDir" as expected, but when it comes to candle to 
> compile , it flags an error as if the variable isn't populated.

You have to define the values for any preprocessor variables you use in 
your source code. How you do that depends on how you run the compiler 
(e.g., -d on the command line or DefineConstants in MSBuild) but both 
are documented in WiX.chm.

-- 
sig://boB
http://joyofsetup.com/


------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to