Why in Wix is iis:WebAddress Port needed if you can and do set the port for the ‘website’ in IIS?
I have tried and making them different. The install does not fail, but uses the port for the website. Seems odd?
Code snippet
<Component Id="DataAccessorService_VirtualDir" Guid="*">
<CreateFolder />
<iis:WebVirtualDir Id="DataAccessorService_VirtualDir"
Alias="DataAccessorService"
Directory="DataAccessorServiceDir"
WebSite="XCBServiceWebsite">
<iis:WebApplication Id="DataAccessorService_VirtualDir"
Name="DataAccessorService" Isolation="medium" />
<iis:WebDirProperties Id="DataAccessorService_WebDirProperties"
DefaultDocuments="DataAccessor.svc" />
</iis:WebVirtualDir>
</Component>
…
<iis:WebSite Id="XCBServiceWebsite" Description="BankDotNet">
<iis:WebAddress Id="AllUnassigned" Port="85" />
</iis:WebSite>
Thanks.
For WiX v2.0 and WiX v3.0 the WebAddress is how the web site in IIS is detected. The IP:Port:Header tuple is the only thing that must be unique in IIS6 that is why it was used for detection. In that tuple, the Port was the only thing that is not optional.
In WiX v3.5+ I think the WiX IIS custom action was enhanced to handle finding web sites using the Description and SiteId.