Here's the documentation I mentioned that should show up in the next weekly WiX 
build:

Integrating WiX Projects Into Daily Builds

One of the most common reasons for using MSBuild with WiX project files is to 
integrate the build of an installer into an existing daily build process. This 
is often coupled with a need to build WiX projects without having to 
pre-install any WiX tools on the daily build machine. WiX projects and the WiX 
toolset to build them can be added to most daily build processes that support 
MSBuild using a few simple steps.

Step 1: Check in the WiX Toolset

To avoid having to install WiX on build machines you can check all the tools 
necessary to build WiX projects into your source code control system. Here's 
how:

1. Install WiX on a developer machine using the standard WiX installer
2. Create a directory in your source code control system to hold the WiX tools
3. Copy the contents of c:\Program Files\Windows Installer XML v3\bin into the 
directory created in step 2
4. Copy the contents of c:\Program Files\MSBuild\Microsoft\WiX\v3.0 into the 
directory created in step 2
5. Add and check in the files from steps 3 and 4

Step 2: Modify Your .wixproj File

After checking the WiX tools into source code control the .wixproj file must be 
modified to point to the location of the checked in tools. Open the .wixproj 
file in any text editor, such as Visual Studio, and add the following to the 
file anywhere between the <Project> element before the <Import> element:

<PropertyGroup>
        <WixToolPath>$(SourceCodeControlRoot)\wix\3.0.4311.0</WixToolPath>
        <WixTargetsPath>$(WixToolPath)\Wix.targets</WixTargetsPath>
        <WixTasksPath>$(WixToolPath)\wixtasks.dll</WixTasksPath>
</PropertyGroup>

The WixToolPath must be set to point to the location of the WiX tools directory 
created in Step 1. The method used to reference the location will vary 
depending on your build system, but it can either be a relative path to the 
directory (such as ..\..\tools), an MSBuild property that is set via an 
environment variable (such as $(BinariesRoot) in a Team Foundation Server 
build) or a custom property passed in on the command-line or via an environment 
variable.

The WixTargetsPath and WixTasksPath properties direct MSBuild to use the WiX 
build process and WiX tasks from the tools directory.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sajid1105
Sent: Thursday, July 31, 2008 11:18 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Wix and TFS


I have a list of wxs files that packages files from a share folder where Team
build stages its build result. Currently I am having batch file containing
candle and light commands with sharefolder path as a parameter.

I want to integrate it with TFS so that each time I schedule a build it
creates an msi package.
What is the best way to do that in this situation?
I looked at wix.targets but left with no clue of what to do with that.
--
View this message in context: 
http://www.nabble.com/Wix-and-TFS-tp18768809p18768809.html
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to