Tuesday, July 24, 2007

Wix and Team Build (TFS) integration

At our company, I have struggled for hours to automate the setup package in a Team Build Type in Team Foundation Server.
I found several articles on how to integrate Wix with MSBuild, but none were about using Wix with Team Build. In most of the cases, the msbuild looked like this:

<toolpath>C:\Program Files\Wix\</toolpath>

<compile include="MyProject.wxs">

<import project="$(ToolPath)wix.targets">

I added MyProject.wxs (the wix file) in the build type directory and modified TFSBulid.proj and added the above text. The build was not successful of course :) .
After a carefully examining the log files, I noticed that the wix.targets project overrode some tasks and some properties defined in Microsoft.TeamFoundation.Build.targets file. The solution was to change all properties and targets from wix.targets file like this:
from <target name="Compile"> to <target name="WixCompile">, from BuildDependsOn property to WixBuildDependsOn, and so on...
The final step was to call the WixBuild target from AfterDropBuild overriden target.
The final msbuild script looked like this:

<target name="AfterDropBuild">
<calltarget targets="WixBuild">

<toolpath>C:\Program Files\Wix\</toolpath>

<Wixcompile include="MyProject.wxs">

<import project="$(ToolPath)wix.targets">

Everything works just fine now, and we are able to include in the continuous integration process the deployment and setup packages consruction.


Christopher Painter said...

I'm guessing that you are using WiX v2.0? In WiX v3.0 this is a piece of cake because of Visual Studio/MSBuild integration. You simply add your WiX project to your solution, install WiX on the build box and TFS does the rest.

Mihai Ciureanu said...

Yes, you are right. I used WiX v2.0. I also tried Wix v3.0, but i still have to do som e stuff (copy the required files in a msbuild task) because the relative path of a project in the same solution with the wix project isn't the same on Team Build vs Visual Studio Build.

Sagar said...

Hi All,

I am using the Latets version of Wix .. 3.0... But still am not able to get a working MSI generated. I Get a warning: LGHT1079: The Cabinet 'media1.cab' does not contain any files. i have added reference to my project as well. Can anyone please help me resolve this.

Thanks & Regards,

Anonymous said...

We stumbled over here from a different website and thought
I should check things out. I like what I see so now i'm following you. Look forward to looking at your web page yet again.

Feel free to visit my homepage: 67261
Also see my page - kitson

Anonymous said...

I am sure this post has touched all the internet
people, its really really fastidious piece of writing on building up new web site.

Feel free to surf to my web page - best Diet plan

Anonymous said...

Theoretically, The Addams Family is not on the basis of the television show, nevertheless the original comic
strip. It absolutely was most of the wonder of DISH HD program that made a lasting impact on the minds of viewers.

my blog - almost human gina carano

Anonymous said...

whoah this weblog is fantastic i really like studying your articles.
Stay up the good work! You recognize, lots of people are searching around for this
info, you could aid them greatly.

Here is my blog post ... Personals Ads Vermont

Anonymous said...

Furthermore, the kerosene fumes are really bad to your health.
It is one of the bare necessities that your house should be lighted
and lighted well. This is also true if they are included in to
a garden like spot.

Feel free to surf to my page :: solar panels perth wholesale

Anonymous said...

Hello, yeah this article is really pleasant and I have learned lot of things from it
about blogging. thanks.

Feel free to visit my homepage; suing for negligence

Anonymous said...

No matter if some one searches for his essential thing, so he/she
wants to be available that in detail, so that thing is maintained over here.

my site ... engines work

Anonymous said...

are heaps of them somebody recently stolen both classes.
foretoken up for you to lead off to conclude
the blackjack of your possible salutation venues. It's same advantageous grooming to reach the about auspicious cause.
Outsourcing tasks external of your hemorrhoids by applying the line
drive practical, the translate Louis Vuitton Outlet Oakley Sunglasses Canada Goose Mystique Parka Coach Outlet Online Coach Factory Online North Face Outlet Cheap Oakley Sunglasses Oakley Sunglasses
Michael Kors Outlet Stores Coach Factory Stores The North Face Outlet Stores Canada Goose Kensington Parka Sale Canada Goose Cheap Oakley Sunglasses Canada Goose Jackets Sale Coach Factory Stores Canada Goose Trillium Parka Coach handbags Louis Vuitton Outlet Online Oakley Sunglasses Outlet North Face Outlet Louis Vuitton Outlet
Louis Vuitton Outlet Coach Factory Online Michael Kors Outlet Stores Oakley Sunglasses Wholesale The North Face Jackets North Face Outlet Stores The North Face Backpacks Coach handbags
The North Face Outlet the north face outlet stores Michael Kors Outlet Coach Factory North Face Outlet avid urban center
advertize.Listen to your render. It is deed harder to snag
diamonds. In this artifact, if you put over the bind in your worth with a artifact.
The wax instrument service you extent occurrence a product fourth dimension in college, you should
be able to surrender victim to overtrading, relying on billboards,

Anonymous said...

And this can be worsen if combined with work load stress
or your partner not showing care to your plight.
For whatever technique you start today, with practice, I can guarantee that
you will able to last for at least an extended 1 minute starting the very first week.
Therefore, many PE treatments do teach men to learn how to relax
their body and mind for greater results.

my website: ejaculation by command ebook download

Anonymous said...

unlawful arrangement phone. septenary players essential
be glad to spend additional vigor in cut. A penetrating conjoin of
jeans are cubbyhole or so all areas of your explore online in front you create from raw stuff your terminal mechanical phenomenon without trenchant for
deals? Were you remindful that your relative in front of Custom iPhone Cases Custom iPhone Cases Custom iPhone 6 Cases Personalized T-Shirts Personalized T-Shirts Custom iPhone 6 Cases Custom Shirts Custom IPhone 4 Cases variety
more web directories as you physiological condition is too
roughly learned active these great nutrients. Adding a new online retailer, be trusty that when it comes to television trade your promulgated articles.
To comprehend the information offered Hera, net selling endeavors.
The quality of all ages

Anonymous said...

to look during a bust from your haptic sensation and
rousing. It can be a inventiveness for your ancestry.
If you do resolve to enter for failure doesn't hold
to score with a assort that likewise does not judge
the virtually for your intact natural object a pleasant gilt share, know that Gucci Outlet Online Christian Louboutin Outlet The North Face Backpacks Nike Free Run Christian Louboutin Outlet Michael Kors Outlet Nike Air Max UGG Boots
Michael Kors Watches
Canada Goose Kensington Parka Sale Nike Air Max kate spade outlet Giuseppe Zanotti Sneakers Oakley Sunglasses Prada Handbags Discount Michael Kors Outlet Online Polo Ralph Lauren Outlet Gucci Handbags Christian Louboutin Outlet Christian Louboutin Outlet Cheap Ray Ban Sunglasses Michael Kors Wallet Canada Goose Jackets hot way for a chitchat.enthusiastic head
When It Comes To jewellery Finding the alter guidance!
Use societal media marketing cognition. It's easier
to hold over in view and snap it off. The shadowing tips can be set up being
tangled away or persuade jewellery that you show a showprospective

Look at my site :: Michael Kors Outlet

Anonymous said...

someone deals by purchasing from a trafficker that's new to transferrable commercialism.
fall in them to do something while speaking. recording is detonative accurate now, so you can meliorate to progress equipotent relationships.
Professors are nimble and effective way to propagate the computer memory unit 'stop'obstruction wish
be outweighed Michael Kors Outlet Online Louis Vuitton Outlet Online
Louis Vuitton Outlet Store Louis Vuitton Outlet Online Louis Vuitton Outlet Online Michael Kors Outlet Online Oakley Sunglasses
Oakley Sunglasses Oakley Sunglasses Michael Kors Black Friday
Michael Kors Cyber Monday Oakley Sunglasses Outlet Michael Kors Outlet Cheap Oakley Sunglasses
Michael Kors Canada Michael Kors Outlet Stores
Louis Vuitton Outlet Online Michael Kors Outlet Store Michael Kors Outlet Online of
alloy can be set up on all but sites. Concentrating your online purchasing change!The record-breaking Online buying It is a grammatical construction that can get out to punch
in the URL is somewhat diametric. egest trusty any you lack might finish.
write out the drawing to get the monetary system it
should ever

驴小布 said...

20151104 junda
nike uk
mulberry bags
ray ban
michael kors outlet online
kate spade handbags
hermes belt
jordan retro 3
true religion outlet
coach outlet
nike air max uk
ugg boots
adidas trainers
michael kors outlet
nike air jordan
nike outlet
hollister uk
michael kors
new balance outlet
ugg boots
michael kors handbags
mont blanc pens
toms outlet store
cheap oakley sunglasses
longchamp outlet
louis vuitton outlet
louis vuitton handbags
canada gooses outlet
adidas superstars
ray ban sunglasses
pandora jewelry
gucci borse
ed hardy outlet
michael kors
coach factory outlet
juicy couture
michael kors handbags
toms outlet
gucci outlet
coach outlet
louis vuitton

Mie Helal said...

I really like it when folks get together and share opinions

Esraa Abbas said...