开发者

WIX: How can I uninstall an ISAPI filter using WIX?

In WIX, I can install an ISAPI filter using the iis:WebFilter element:

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

When I run the resulting MSI, it installs the given ISAPI filter in the given website.

How开发者_如何学JAVA can I remove or unconfigure that filter on uninstall of the MSI?


My mistake. I had inadvertently set SKIPCONFIGUREIIS on uninstall, and so the filter was not uninstalled.

When I fixed the condition, it worked as expected.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜