0

我正在尝试通过 WiX 向我们的 IIS 6.0 网站添加 .plan 扩展。我在用着

<iis:WebApplicationExtension CheckPath="no" Script="yes" Executable="[FRAMEWORKROOT]v4.0.30319\aspnet_isapi.dll" Verbs="GET,HEAD,POST,DEBUG" Extension="plan"/>

尽管这正在替换所有现有的应用程序扩展,但这不是我们想要的行为。有没有办法简单地添加.plan?如果可能,我们希望避免使用通配符,因为我们不确定它将如何影响网站的其他部分。我认为我们的 2003 服务器上也不提供 APPCMD。

任何建议将不胜感激 :)

4

1 回答 1

0

Unfortunately we didn't find a way to do this cleanly using the iis:WebApplicationExtension in WiX.

We found this post http://blogs.msdn.com/b/david.wang/archive/2004/12/02/273681.aspx that provides a VBScript for adding ScriptMaps. We edited the script to only execute the HandleListOps function (with the relevant params) so that we didn't get any issues with WScript. We then call this from a CustomAction in WiX, with the vbs file added as a Binary file.

We're aware that running vbscript custom actions from within an installer isn't ideal, but luckily we're not distributing the application externally and is only going to be used on an internal website, so the target server environment is reasonably well known.

于 2013-10-21T00:09:09.473 回答