Autocreate hosts and host instances

Topics: General Questions
Jun 28, 2010 at 2:51 PM

Hi,

is it possible to create hosts and host instances automatically when deploying an MSI package? Currently we are using a self-written tool that has to be run beforehand, but incorporating this into the MSI would be great. If hosts are not available the import of the bindings - naturally - fails.

thanks, Eljakim

Coordinator
Jun 28, 2010 at 11:28 PM
Edited Jun 28, 2010 at 11:28 PM

It is not a built-in feature, but you could use the <Exec> task in a custom target in your .btdfproj named CustomDeployTarget to call out to your self-written tool.  You'd have to be able to support the case where the hosts already exist.  Otherwise, in your MSI you could do a custom action like we were discussing last week.

Thanks,
Tom

Jun 29, 2010 at 7:21 AM

I think I'll do that. I could imagin a nice tool that reads the bindingfiles to check for hosts, read additional infos from a certain settings file and creates the hosts on demand - a nice tool for codeplex. But alas, no time!

thx