【问题标题】:How to create an IIS7 Virtual Directory Under Another Website (Not the Default Website) Using WiX如何使用 WiX 在另一个网站(不是默认网站)下创建 IIS7 虚拟目录
【发布时间】:2014-04-22 11:58:16
【问题描述】:

我真的很难使用 WiX 在 IIS7 中的现有网站中创建虚拟目录。

为了说明,我因此拥有的是:

1) IIS 默认网站,以及 2) 另一个网站,它是许多业务应用程序的容器,我们可以称之为“ContainerWebsite”。

因此,我迫切希望使用 WiX 创建以下内容:

a) 在“ContainerWebsite”下为其中一个业务应用程序(我们称之为“BusinessApp1”)创建一个虚拟目录。因此,IIS 中的最终结构将类似于“ContainerWebiste\BusinessApp1”

如果上面的虚拟目录成功的话,我打算为剩下的业务应用创建类似的虚拟目录。

b) 为安装到“ContainerWebsite”的每个业务应用程序创建一个专用的 IIS 应用程序池。

我将非常感谢您为实现这一目标提供的任何帮助。

谢谢。

【问题讨论】:

  • 到目前为止你有没有尝试过?您遇到过任何错误吗?

标签: iis wix virtual-directory


【解决方案1】:

请参阅http://blog.torresdal.net/2008/10/24/#WebSiteStandardAction,其中涉及创建自定义操作以列出现有网站并从下拉列表中选择一个。我想您可以跳过下拉菜单并指定要使用的特定网站,然后在您的 iis:WebVirtualDir 部分中引用它,如下所示:

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

<iis:WebVirtualDir Id="VirtualDir" Alias="[TARGETVDIR]" Directory="INSTALLLOCATION" WebSite="SelectedWebSite">
  <iis:WebApplication Id="SimpleWebAppApp" Name="[TARGETVDIR]" WebAppPool="SWAAppPool" />
  <iis:WebDirProperties Id="WebVirtualDirProperties" Execute="yes" Script="yes" Read="yes" WindowsAuthentication="no" AnonymousAccess="yes" IIsControlledPassword="yes" />
</iis:WebVirtualDir>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-01-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-11-02
    • 2014-03-26
    • 1970-01-01
    相关资源
    最近更新 更多