This project has moved and is read-only. For the latest updates, please go here.

how the portbindingmaster work?

Topics: Getting Started/Beginner
Apr 16, 2013 at 9:01 PM
a real beginner question, for the portbindingmaster template work, i understand to create the excel and such, but after producing the msi and distribute it to my admins, how do them choose which environment to deploy, something like a dropdown list automatically provided by the msi? thanks
Apr 17, 2013 at 2:48 AM
Hi Adam,

Please read following to understand how the portbindingmaster works.

In terms of choosing environment to deploy, yes, you are to select specific environment settings file during deployment. By this time, environment settings files would have been generated by installer. What happens under the hood is.. The tool imports SettingsFileGenerator.xml(which is the excel file you have specified) and exports settings.xml for each environment like following.


and you are to choose one whichever you like. But please beware this is not the binding file but a series of property and value mapping specific to the enviornment. Now, the values will replace tokens(property name) in portbindingmaster file and eventually produce environment specific portbinding file then it gets deployed.

It is easier doing than saying if you follow sample practice in following.

Apr 17, 2013 at 4:02 PM
thanks, is it possible to script a few screens in the installwizard.xml for a drop down list of enviorment mapping? i.e. test/uat/prod corresponding to exported_local.xml etc...
Apr 29, 2013 at 6:29 AM
Yes, you can have a page in the wizard display a set of radio buttons that correspond to each environment and set the correct XML path. Here's an example of showing radio buttons:
    <PromptText>Please select Debug or Release:</PromptText>