在 WIX 中,我可以使用iis:WebFilter元素安装 ISAPI 过滤器:
<Component Id='C.Filter1' Guid="6781xxxx-xxxx-4893-xxxx-aaaabbbbdddd">
<!-- CreateFolder - included to avoid problem with missing KeyPath -->
<CreateFolder/>
<iis:WebFilter Id="WebFilter1"
LoadOrder="first"
Name="My Custom ISAPI Filter"
Path="[INSTALLDIR]\Filter.dll"
WebSite='SelectedWebSite'
/>
</Component>
当我运行生成的 MSI 时,它会在给定的网站中安装给定的 ISAPI 过滤器。
如何在卸载 MSI 时删除 或取消配置该过滤器?