我很努力地使用wix 3.6.3303.1/4.0.12.0将基于com的isapi dll全局安装到iis 7.5中。如何使用wix安装全局isapi过滤器? (IIS 7.5)
我有以下WiX的配置(full config here):用IIS7.5在Windows 7 32位运行时
<Fragment>
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
<Component Id="IsapiDll" Guid="ADD-GUID-HERE">
<File Id="isapidll" Name="isapi.dll" Source="isapi.dll" />
</Component>
<Component Id="IisFilter" Guid="ADD-GUID-HERE">
<CreateFolder />
<iis:WebFilter Id="IisFilter" Name="MyIsapi" Path="[INSTALLFOLDER]isapi.dll" LoadOrder="last" Description="MyIsapi" />
</Component>
</ComponentGroup>
</Fragment>
我收到以下错误在我的MSI日志:
WriteIIS7ConfigChanges: Error 0x8007000e: Failed while finding IAppHostElement filter/@name=(null)
WriteIIS7ConfigChanges: Error 0x8007000e: Failed to delete filter
WriteIIS7ConfigChanges: Error 0x8000ffff: Unexpected IIS Config action specified for global filter
WriteIIS7ConfigChanges: Error 0x8000ffff: Failed to configure IIS filter global.
WriteIIS7ConfigChanges: Error 0x8000ffff: WriteIIS7ConfigChanges Failed.
我害怕问题是wix本身的错误。 CreateGlobalFilter()在将pwzFilterName赋值给DeleteCollectionElement()之前,它已被赋值。这稍后会导致Iis7FindAppHostElementString()被调用,其值为空wzAttributeValue值,该值看起来是错误的原因。
当然,我可能是在白费力气,快乐生活在正确的方向指向...
更新: 我现在已经打了网站级别安装并具有与除工作网站的属性和元素。 Config here
编辑:将路径属性更改为正确的格式。
感谢罗布,我会提出一个错误,并看看调试如果/当我有机会。 –