In proj file:
<MSBuild Projects="$(SolutionRoot)\Setup\ Setup.wixproj" Properties
="Configuration=Release;OutputPath=bin\Release;
ProductVersion=$(ShortBuildNumber) "/>

In wixproj file:
<PropertyGroup> 
        <DefineConstants>ProductVersion=$(ProductVersion);</DefineConstants>
</PropertyGroup>

Then in wxs file:
  <Product Id="*"
           Version="$(var.ProductVersion)">

-----Original Message-----
From: Kerber, Cameron [mailto:cameron.ker...@philips.com] 
Sent: Thursday, March 18, 2010 5:44 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] TFS Build and WiX

Ok,

So I have a preprocessor variable that I want to pass from my TFS Build
process to my wix project.  I don't know how to do this.  I've been scouring
the web and trying multiple things but can't get it to work.

I have a preprocessor variable called BuildPath used throughout my main wxs
file.  Anyways I've been trying to set/pass through TFS Build.

<MSBuild
Projects="$(branchSolutionRoot)\src\DeploymentServices\InstallPackage\Apache
Project.wixproj"
        Properties="Configuration=Release;"
        Targets="Build"
    />

This is what I currently have and works without any variables used in the
wxs file.  I've tried adding

Properties="Configuration=Release;BuildPath=C:\"  but that doesn't work.
Any ideas???

________________________________
The information contained in this message may be confidential and legally
protected under applicable law. The message is intended solely for the
addressee(s). If you are not the intended recipient, you are hereby notified
that any use, forwarding, dissemination, or reproduction of this message is
strictly prohibited and may be unlawful. If you are not the intended
recipient, please contact the sender by return e-mail and destroy all copies
of the original message.
----------------------------------------------------------------------------
--
Download Intel&#174; 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


------------------------------------------------------------------------------
Download Intel&#174; 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

Reply via email to