How to create/Where to get Wix Bootstrapper for Multiple Instances

David Cumps picture David Cumps · Jan 31, 2009 · Viewed 8.1k times · Source

I'm currently learning how to create msi installers using WiX and it seems I've hit a wall.

All is well when I create an MSI containing everything needed for a single environment.

I have features, and components, and can install my MSI.

Now I'm at the stage where I want to convert this in a SQL Server-style installer, where you have multiple instances support.

At the start I want to user to get a screen which allows him to create a new instance, or manage already existing instances. (to update/remove them)

I've spend 2 full days looking everywhere for a solution, without much luck.

I've found the following resources with some info on it, but either they're limited in the number of instances, or don't describe how to such a bootstrapper which gives a user the option described above.

Has anyone achieved this already using WiX? Or can anyone point me towards some working examples on how this is achieved?

I know Installshield 2009 can do this, but since this is just a hobby, I don't have the money to buy that. Also I'd like to do it in WiX, since the upcoming Visual Studio 2010 will improve support for it.

Answer

Rob Mensching picture Rob Mensching · Apr 30, 2009

Creating multiple instances is pretty easy with WiX v3. You just use the InstanceTransform and Instance elements to create everything. Now, the bootstrapper problem requires something outside of the WiX toolset since we don't have burn, yet. I'm not sure we'll get this functionality in WiX v3.5 (with burn) but it is on our list for burn post v3.5.