Richard,
That was exactly the problem. Thank you for your help.
Shayla
-------------- Original message --------------
From: <[EMAIL PROTECTED]>
Shayla,
An example from our own build process is as follows:
Candle <SourceScript> -dMajorRev=1 -dMinorRev=2 -dPatchRev=3 dBuildRev=4
Within the script, we use (for example)
<Package Id="????????-????-????-????-????????????" Description="Description"
Comments="Product V$(var.MajorRev).$(var.MinorRev).$(var.PatchRev) (build
$(var.BuildRev))" Manufacturer="Manufacturer" InstallerVersion="200"
Compressed="yes"/>
Im not sure if you are actually including the ( and ) characters in the
command line. If so, thats where youre going wrong since they would then need
to be referenced as $(var.(assemblyVersion)) etc.
I should probably also mention that we are using WiX v2, because we are
currently shipping the product and the official word is that WiX v3 should not
be used for externally shipping installations at this time. If you are using
WiX V3 you may find the syntax has changed.
Hope this helps,
Regards,
Richard
P.S. you can also find an example of preprocessor variable usage in the WiX
tutorial see http://www.tramontana.co.hu/wix/lesson9.php
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, March 16, 2007 11:17 AM
To: Foster, Richard - PAL
Subject: RE: [WiX-users] pass variable during compile time
Thank you for your reply. I added -d(assemblyVersion)=(1.0.42.0) to the candle
command line but how do I access the varible inside the wix project? I have
tries $(var.assemblyVersion). But this doesn't seem to work. I have tried
searching everywhere for an example, but I have had no luck.
TIA,
Shayla
* C O N F I D E N T I A L I T Y N O T I C E *
-----------------------------------------------------------
The content of this e-mail is intended solely for the use of the individual or
entity to whom it is addressed. If you have received this communication in
error, be aware that forwarding it, copying it, or in any way disclosing its
content to any other person, is strictly prohibited. Peek Traffic Corporation
is neither liable for the contents, nor for the proper, complete and timely
transmission of (the information contained in) this communication. If you have
received this communication in error, please notify the author by replying to
this e-mail immediately and delete the material from any computer.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users