Adding MimeMap via WIX failed

I was given an error to fix the problem with the installer. Unfortunately, I don't know anything about WIX, so I'm not sure where to start.

The necessary MimeMap is added to the WXS file, but when QA installed our application on Windows 2003 with IIS6, the MIME type was not installed.

I'm not sure where to start. We are using Wix 3.0. Here is the XML:

<iis:WebSite Id="DefaultWebSite" Description="Default Web Site"> <iis:WebAddress Id="AllUnassigned" Port="80" /> <iis:MimeMap Id="registerXapMimeType" Extension=".xap" Type="application/x-silverlight-app"/> </iis:WebSite> 

Any idea why this MIME type was not mapped?

+4
source share
3 answers

I do almost the same thing, and it works; the only difference I see is setting it under WebVirtualDir instead of the WebSite element:

 <Component Id="IIS6VirtualDirComponent" KeyPath="yes" Guid="blah"> <iis:WebVirtualDir Id="IIS6VirtualDir" Directory="INSTALLLOCATION" Alias="[TARGETVDIR]" WebSite="IIS6WebSite" DirProperties="IIS6WebDirProperties"> <iis:WebApplication Id="IIS6WebApplication" Name="[TARGETVDIR]" WebAppPool="IIS6WebAppPool"> ... </iis:WebApplication> <iis:MimeMap Id="IIS6MimeMapXAP" Extension=".xap" Type="application/x-silverlight-app" /> </iis:WebVirtualDir> </Component> 
+7
source

same problem here, try your own action. I also tried putting inside a node, but that didn't work either.

for more details: Is there a way to get ALL MIME types instead of crashing a huge case statement?

+1
source

Brian, I fixed this by moving the MimeMap registration to WebVirtualDir, as Si suggested. Go figure ...

+1
source

All Articles