I am in the process of creating an installer to install an IIS website. But i need to give the user the option to install onto a New Site, Existing website or a virtual directory. After using the Get IIS Site list to get the existing sites is there any way to retrieve the TCP Port for the selected existing website?
I have so far tried the Get IIS Site Property but have been unsuccessful ("ServerBindings")

Im currently using IIS6 but would like the installer to run on IIS7 too.
Any help on this would be great.