title: In WiX how can I select an IIS website by name?
body: <p>What I would like to do is show the installer user a list of the websites on their server and allow them to choose one (using the method described here: <a href="http://www.cmcrossroads.com/content/view/13160/120/" rel="nofollow noreferrer">http://www.cmcrossroads.com/content/view/13160/120/</a>, which now seems broken see <a href="https://stackoverflow.com/questions/1373600/how-do-i-populate-a-combobox-at-install-time-in-wix">here</a> for the core code). The installer would then create a virtual directory in the chosen website.</p>
  
  <p>However, my searching seems to have revealed that the only way to specify a website in WiX is by IP, Port, and Header. Asking for these is not very user friendly, so I'm left with the idea of writing a second custom action to get those details from a website name.</p>
  
  <p>Is there a better way?</p>
  
  <p>BTW This needs to work in both IIS6 and IIS7 in case that affects the answer.</p>