Can a WiX variable be passed into candle from the command line? "Candle /?" shows options but none seem to cover doing this.
I need to compile both 32- and 64-bit merge modules from the same source, driven by the same makefile. Because of build complications (huge project) the makefile cannot run twice; it must make both 32- and 64-bit modules in one pass. E.g. the makefile will be something like this: make_my_msm: candle -arch x86 mymsm.wxs -out x86\my.msm candle -arch x64 mymsm.wxs -out x64\my.msm light etc. The -arch directive switches Package/Platform but some components must be flagged as 32- or 64-bit, and x86 or x64 binaries must be pulled in as needed. So SourceFile= and Win64= arguments need to be parameterized: E.g. SourceFile="$(var.SOURCE_BIN)\my.dll" Win64="$(var.IsWin64)" I need to pass IsWin64 and SOURCE_BIN with different values to each of the candle statements in make_my_msm. Is that possible somehow? Or can the WXS source include references to the value set for -arch? Obviously I could do two separate builds, each using different environment variables with $(env.... but that's going to be very hard to fit into our process. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users