Adding MimeMap via WIX failed

前端 未结 3 2012
离开以前
离开以前 2021-01-19 06:52

I\'ve been given a bug to fix an installer issue. Unfortunately, I know nothing about WIX, so I am not exactly where to start.

The WXS file is adding the necessary

相关标签:
3条回答
  • 2021-01-19 07:20

    same problem here, trying a custom action. I also tried putting the inside the node but that didn't work either.

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

    0 讨论(0)
  • 2021-01-19 07:27

    I'm doing almost the same thing and it's working; the only difference I can see is I'm setting it under the WebVirtualDir instead of 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>
    
    0 讨论(0)
  • 2021-01-19 07:39

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

    0 讨论(0)
提交回复
热议问题