开发者

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

开发者 https://www.devze.com 2022-12-29 01:11 出处:网络
In WIX, I can install an ISAPI filter using the iis:WebFilter element: <Component Id=\'C.Filter1\' Guid=\"6781xxxx-xxxx-4893-xxxx-aaaabbbbdddd\">

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

精彩评论

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

关注公众号