Thursday, March 05, 2009

Team Building your MSI – How to build a Setup Project via Team Build

David Williams - Building a Setup/Install project using Team Build/TFS

“Team Build is great for building Projects applications such as Windows or Web apps.  However it is not able to build Install packages.  Because of this you have to use the Visual Studio build command line option, and copy the .msi and setup.exe files out of the local build directory.  My builds usually copy the built files from to a stage or production server, However this is difficult to do, as no TB/MSbuild variables correctly reference the local build location.  To build a visual studio setup project, I did the following:

  1. Enable building in the Solution configuration manager.  Select the configuration manger, checked build next to the Install project name. 
  2. Open the ApplicationSetup.proj file in a text editor. Searching for ProjectOutput, SourcePath, I confirmed the path was relative to the project file (..\\obj\\Release\\HelloWorld.exe) rather then literal (C:\HelloWorld\obj\\Release\\HelloWorld.exe).
  3. Modified the Build project, adding the build target type
  4. …”

Some tips and snips for building your Setup Project/MSI via Team Build.

Remember friends don’t let friend use “F5” (or right click/build) as a long term deployment mechanism… ;)

3 comments:

  1. Great, glad you liked this! I Hope it helps.

    ReplyDelete
  2. Hello,

    Thanks for posting this blog about Building a Setup/Install project using Team Build. I have been trying hard to sort this one out and I've searched a lot but this instruction is like the most precise one I could get.

    Thanks, Great post!

    ReplyDelete
  3. Hi, why can't you let friend use "f5"?

    ReplyDelete

NOTE: Anonymous Commenting has been turned off for a while... The comment spammers are just killing me...

ALL comments are moderated. I will review every comment before it will appear on the blog.

Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...

I reserve, and will use, the right to not approve ANY comment for ANY reason. I will not usually, but if it's off topic, spam (or even close to spam-like), inflammatory, mean, etc, etc, well... then...

Please see my comment policy for more information if you are interested.

Thanks,
Greg

PS. I am proactively moderating comments. Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...