通过WIX添加MimeMap失败 [英] Adding MimeMap via WIX failed

查看:107
本文介绍了通过WIX添加MimeMap失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经得到一个错误,可以解决安装程序问题.不幸的是,我对WIX一无所知,所以我也不是从哪里开始.

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.

WXS文件正在添加必要的MimeMap,但是当QA在具有IIS6的Windows 2003上安装我们的应用程序时,未设置MIME类型.

The WXS file is adding the necessary MimeMap, but when QA installed our app on Windows 2003 with IIS6, the MIME type was not set.

我不确定从哪里开始.我们正在使用Wix 3.0.这是XML:

I am 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>

对为什么未映射此MIME类型有任何想法吗?

Any idea to why this MIME type was not mapped?

推荐答案

我正在做几乎相同的事情,并且正在工作;我能看到的唯一区别是我将其设置在WebVirtualDir而不是WebSite元素下:

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>

这篇关于通过WIX添加MimeMap失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆