views:

731

answers:

3

Does anyone have a good way to build MSI (vdproj) projects using MsBuild or Nant? I know one answer was to install Visual Studio on the build server and just use devenv.exe to build the project, but, I prefer not to install Visual Studio on our build servers.

+1  A: 

We use Wix to automate MSI builds for IronPython and IronRuby.

EDIT: to clarify, this probably means starting over from scratch when building your installer. While Wix has a mechanism to create a configuration directly from a preexisting MSI file, I've never gotten a satisfactory result from using this tool

Curt Hagenlocher
A: 

I haven't tried it, but a quick search turned up this

http://65.55.11.235/en-us/magazine/cc163456.aspx

Edit: Didn't see Curt's response - my link is to a WiX posting.

Chuck
+5  A: 

Short of the method you mentioned above (devenv), there is no way to do this with the current version of MSBuild.

The method the Visual Studio team uses to run their MSI builds is with Windows Installer XML. You can learn more about using WiX to deploy setup packages here.

Please note WiX doesn't support vdproj files so it means you'll be recreating your installer projects.

Edit: Looks like I was beat to the chase when grabbing my references :)

Nicholas
I heard somewhere on SO that there's a migrate tool [but boviously WiX wont natively use the vdproj 'format' or anyhting like that]
Ruben Bartelink