According to the docs, this should work (I haven't tried it) <?define MYVAR=1?> <?include Include.wxi ?> <?undef MYVAR?> <?define MYVAR=2?> <?include Include.wxi ?>
John Wintellect http://www.wintellect.com +1-877-968-5528 -----Original Message----- From: Amber Scouras [mailto:amber.scou...@thetradedesk.com] Sent: Thursday, April 14, 2011 1:36 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Redefining Preprocessor Variables When building, if I attempt to redefine a preprocessor variable, like so: <?define MYVAR=1?> <?include Include.wxi ?> <?define MYVAR=2?> <?include Include.wxi ?> I get the following error: The variable 'MYVAR' with value '2' was previously declared with value '1'. Is there any way to redefine a preprocessor symbol? I effectively want to pass parameters to my include file. I don't suppose there's some other (undocumented) way to do that? Thanks! Amber Scouras // Senior Software Engineer // The Trade Desk follow us @ twitter<http://twitter.com/TheTradeDeskinc> // facebook<http://www.facebook.com/TheTradeDesk> // linkedin<http://www.linkedin.com/company/892001> // www.thetradedesk.com<http://www.thetradedesk.com/> This email could contain material that is subject to copyright or trade protection, confidential and/or privileged and, in all cases, provided for the sole use of the intended recipient. Any reliance or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users