All $(var.xxxx) values are done at compile time.  Your example below will 
include one block if the platform is x64 and another block otherwise--all at 
compile time.  Rather than use $(var.Platform), I would recommend using 
$(sys.BUILDARCH).

--
John Merryweather Cooper
Build & Install Engineer - ESA
Jack Henry & Associates, Inc.®
Shawnee Mission, KS  66227
Office:  913-341-3434 x791011
jocoo...@jackhenry.com
www.jackhenry.com 




-----Original Message-----
From: StevenOgilvie [mailto:sogil...@msn.com] 
Sent: Monday, July 29, 2013 3:45 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Need help, how to put a condition on a merge module in 
Product.wxs

your saying this is at compile time?
I have a variables.wxi include file that I include with my product.wxs

<?if $(var.Platform) = x64 ?>
  <?define PlatformProductName = "$(var.ProductName) (64 bit)" ?>
  <?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?>
  <?define PlatformCAQuietExecDLLEntry = "CAQuietExec64"?>
  <?define PlatformQtExecCmdLine = "QtExec64CmdLine"?>
  <?else ?>
  <?define PlatformProductName = "$(var.ProductName)" ?>
  <?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?>
  <?define PlatformCAQuietExecDLLEntry = "CAQuietExec"?>
  <?define PlatformQtExecCmdLine = "QtExecCmdLine"?>
  <?endif ?>



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Need-help-how-to-put-a-condition-on-a-merge-module-in-Product-wxs-tp7587670p7587675.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent caught 
up. So what steps can you take to put your SQL databases under version control? 
Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
NOTICE: This electronic mail message and any files transmitted with it are 
intended
exclusively for the individual or entity to which it is addressed. The message, 
together with any attachment, may contain confidential and/or privileged 
information.
Any unauthorized review, use, printing, saving, copying, disclosure or 
distribution 
is strictly prohibited. If you have received this message in error, please 
immediately advise the sender by reply email and delete all copies.


------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to