Variables can also be set in the Candle Arguments with a -d such as this:
Candle.exe "projectfile.wxs" -out "projectname.wixobj" -dIsWin64="no"
Then, from within the xml, you reference the variable with the $(var. )
syntax such as this line:
<Component Id="C__MYCOMPONENT" Guid="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Win64="$(var.IsWin64)">
Or, yet another example
<?if "$(var.IsWin64)" = "yes"?>
<Condition Message="You cannot have the 64 bit version of this software
in order to install on this Operating System. Installation will now
abort."><![CDATA[VersionNT64]]></Condition>
<?else?>
<Condition Message="You must have the 64 bit version of this software in
order to install on this 64 bit Operating System. Installation will now
abort."><![CDATA[Not VersionNT64]]></Condition>
<?endif?>
-Trevor
_____
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Anthony Wieser
Sent: Tuesday, May 22, 2007 1:35 AM
To: Wik Carl-Johan; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Variables
Sorry, somehow managed to respond in the wrong thread:
Variables can be set like this, from my previous example:
<?define SampDir="C:\projects\business\artgallery\sample_src\"?>
<?define SampDiskId="1"?>
<?define SampParentDir=INSTALLLOCATION?>
Anthony Wieser
Wieser Software Ltd
----- Original Message -----
From: Wik Carl-Johan <mailto:[EMAIL PROTECTED]>
To: wix-users@lists.sourceforge.net
Sent: Tuesday, May 22, 2007 7:47 AM
Subject: [WiX-users] Variables
Hi!
I have found things like this, in example:
$(var.SampParentDir)
But I haven't been successful in finding information about it. Can anyone
point me in the direction where to read up about this or explain it please.
How do I "declare it", init it ..
Regards
_____
-------------------------------------------------------------------------
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
-------------------------------------------------------------------------
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