簡體   English   中英

在WIX中,如何在服務器級別安裝WebFilter?

[英]In WIX, how to install WebFilter at the server level?

我知道如何將WebFilter安裝到特定的WebSite(或虛擬服務器)中。

如何將WebFilter安裝到WebService或頂級服務器中?

為此,完全不指定@WebSite屬性。

<!-- this is installed when the Server-wide install is selected for the filter -->
<Component Id='C.Filter1' Guid="YOURGUID-0556-4893-88bc-2b8ec5f3aa08">
  <Condition>WEBSITE_DESCRIPTION = "Server"</Condition>
  <!-- CreateFolder - included to avoid problem with missing KeyPath -->
  <CreateFolder/>
  <iis:WebFilter Id="IsapiFilter1"
                 LoadOrder="first"
                 Name="My ISAPI Rewriting Filter"
                 Path="[INSTALLDIR]\ISAPI.dll"
                 />
</Component>


<!-- this is installed when a particular site is selected for the filter -->
<Component Id='C.Filter2' Guid="YOURGUID-0556-4893-88bc-2b8ec5f3aa06">
  <Condition>NOT WEBSITE_DESCRIPTION = "Server"</Condition>
  <!-- CreateFolder - included to avoid problem with missing KeyPath -->
  <CreateFolder/>
  <iis:WebFilter Id="IsapiFilter2"
                 LoadOrder="first"
                 Name="My ISAPI Rewriting Filter"
                 Path="[INSTALLDIR]\ISAPI.dll"
                 WebSite='SelectedWebSite'
                 />
</Component>


<!-- snip -->

<iis:WebSite Id="SelectedWebSite" Description="[WEBSITE_DESCRIPTION]">
  <iis:WebAddress Id="AllUnassigned" Port="[WEBSITE_PORT]" IP="[WEBSITE_IP]" Header="[WEBSITE_HOSTNAME]" />
</iis:WebSite>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM