Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automating MSI Build Process

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.

like image 809
Page Avatar asked Aug 24 '08 02:08

Page


2 Answers

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 :)

like image 103
Nicholas Avatar answered Sep 20 '22 04:09

Nicholas


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

like image 25
Curt Hagenlocher Avatar answered Sep 21 '22 04:09

Curt Hagenlocher