I have tried the recipe described here:
http://www.wintellect.com/CS/blogs/jrobbins/archive/2011/02/23/web-application-installer-in-wix.aspx
But somehow it either doesn't work, or I have messed things up.
My IIS 6 setup:
Default Web Site (listening to port 81)
test (listening to port 82)
Next, nested under the <product> element I have a
<iis:WebSite Id="TheWebSite"
Description="[WEBSITE_NAME]">
<!-- This element has to be here or WiX does not compile. It's
ignored in this case. -->
<iis:WebAddress Id="AllUnassigned" Port="80"/>
</iis:WebSite>
Somewhere I have a component containing:
<iis:WebVirtualDir Id="VDir"
Alias="My webdir"
Directory="WebSub"
WebSite="TheWebSite">
<!-- Turn the Virtual Directory into a web application. -->
<iis:WebApplication Id="MyWebApp"
Name="MyWebApp"
WebAppPool="MyWebPool"
/>
</iis:WebVirtualDir>
In my log file, I have several entries like this:
PROPERTY CHANGE: Adding WEBSITE_NAME property. Its value is 'Default Web Site'.
However, the virtual directory ends up underneath the "test" web site.
If I change the "Default Web Site" to listen to port 80... Then it
seems to work. John's comment "It's ignored in this case" does not
seem to hold water. But he is right about not being able to compile
without it.
All clues are appreciated.
Version 3.6.1321.0.
--
Rune
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users