使用 Wix 安装 Web 应用程序出现 1603 错误

发布于 2024-10-03 02:07:50 字数 1071 浏览 0 评论 0原文

经过一些研究,我了解到 1603 错误意味着无法找到该站点。就我而言,我正在寻找 DefaultWebSite。现在,自从上次我弄乱这个安装程序以来,我可能已经在我的 IIS7 安装上删除并重新创建了一个名为“默认”的站点。如何恢复默认网站或获取 Wix 认为是默认网站的内容,以便我可以在其中安装虚拟目录?

这是有问题的片段的副本:

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
     xmlns:iis="http://schemas.microsoft.com/wix/IIsExtension">
  <Fragment>
    <DirectoryRef Id="WEBDIRECTORY">
      <Component Id="SiteInstallationComponent" Guid="MYGUID">
        <CreateFolder />
        <iis:WebVirtualDir Id="ProductVirtualDirectory" Alias="[PRODUCTVERSION]" Directory="WEBDIRECTORY" WebSite="DefaultWebSite">
        </iis:WebVirtualDir>
      </Component>
    </DirectoryRef>

    <iis:WebSite Id='DefaultWebSite' Description='Default Web Site' Directory='WEBDIRECTORY'>
      <iis:WebAddress Id="AllUnassigned" Port="80" />
    </iis:WebSite>
    <iis:WebAppPool Id="Default" Name="DefaultAppPool" />

  </Fragment>
</Wix>

我非常不知道如何解决这个问题。

After doing some research, I learned that a 1603 error means that the site cannot be found. In my case, I'm looking for the DefaultWebSite. Now I've probably deleted and recreated a site called "Default" on my IIS7 installation since the last time I've messed with this installer. How do I get the default website back or get something in there that Wix understands to be the default Website so that I can install virtual directories to it?

Here is a copy of the fragment in question:

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
     xmlns:iis="http://schemas.microsoft.com/wix/IIsExtension">
  <Fragment>
    <DirectoryRef Id="WEBDIRECTORY">
      <Component Id="SiteInstallationComponent" Guid="MYGUID">
        <CreateFolder />
        <iis:WebVirtualDir Id="ProductVirtualDirectory" Alias="[PRODUCTVERSION]" Directory="WEBDIRECTORY" WebSite="DefaultWebSite">
        </iis:WebVirtualDir>
      </Component>
    </DirectoryRef>

    <iis:WebSite Id='DefaultWebSite' Description='Default Web Site' Directory='WEBDIRECTORY'>
      <iis:WebAddress Id="AllUnassigned" Port="80" />
    </iis:WebSite>
    <iis:WebAppPool Id="Default" Name="DefaultAppPool" />

  </Fragment>
</Wix>

I'm very lost as to how to fix this.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

深居我梦 2024-10-10 02:07:50

1603 只是一个常见的 Windows 安装程序错误,意味着安装失败。您需要生成详细日志并查看它以获取其他信息。

1603 is just a general generic windows installer error that means the install failed. You need to generate a verbose log and look through it for additional information.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文