使用 Wix 安装 Web 应用程序出现 1603 错误
经过一些研究,我了解到 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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.