使用 wix 创建安装程序以安装在特定网站(不在默认网站中)时出现问题

发布于 2024-07-17 10:05:16 字数 512 浏览 4 评论 0原文

我正在使用 wix 创建一个 .msi 以安装在“测试网站”中。 但它总是安装在“默认网站”中。 .wxs 看起来像:

<iis:WebSite Id='WebSiteId' Description="Test Web Site" Directory="Test_dir" >
  <iis:WebAddress Id="TcpAddress" Port="80" />      
</iis:WebSite>

<iis:WebVirtualDir Id="VirtualDir" Alias="TestService" Directory="Test_dir" WebSite="WebSiteId" >
   <iis:WebApplication Id="TestWebApp" Name="TestService" />                
</iis:WebVirtualDir>

有谁知道如何安装到“测试网站”(而不是“默认网站”)?

I am creating an .msi using wix to install in "Test Web Site". But it always installs in "Default web site". The .wxs looks like:

<iis:WebSite Id='WebSiteId' Description="Test Web Site" Directory="Test_dir" >
  <iis:WebAddress Id="TcpAddress" Port="80" />      
</iis:WebSite>

<iis:WebVirtualDir Id="VirtualDir" Alias="TestService" Directory="Test_dir" WebSite="WebSiteId" >
   <iis:WebApplication Id="TestWebApp" Name="TestService" />                
</iis:WebVirtualDir>

Does anyone know how to install into "Test Web Site" (NOT in "Default Web Site")?

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

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

发布评论

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

评论(1

倾城°AllureLove 2024-07-24 10:05:16

我找到了我提到的问题的解决方案。

<iis:WebSite Id='WebSiteId' Description="Test Web Site" Directory="Test_dir" SiteId="*" > 
  <iis:WebAddress Id="TcpAddress" Port="80" />
</iis:WebSite> 

当属性 SiteId 设置为 * 时,将使用 Description 属性完成网站查找; 元素。

I found the solution for the problem I mentioned.

<iis:WebSite Id='WebSiteId' Description="Test Web Site" Directory="Test_dir" SiteId="*" > 
  <iis:WebAddress Id="TcpAddress" Port="80" />
</iis:WebSite> 

When the attribute SiteId is set to *, then the website lookup is done using the Description attribute of the <iis:WebSite> element.

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