WiX 3.7 IIS安装程序

编程入门 行业动态 更新时间:2024-10-22 12:21:34
本文介绍了WiX 3.7 IIS安装程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

运行我们的安装程序时,我们已将其配置为在IIS中设置3个网站,在升级之前按预期工作,即使默认网站(或在同一端口上侦听的任何网站)仍然存在。

When running our installer, we have it configured to setup 3 websites in IIS, before the upgrade this worked as expected, even if the default website (or any site listening on the same port) was still present.

如果收听端口80的网站已经启动,WiX将从我们的安装程序创建网站,而不是启动它(这是我期望的)。但是,由于升级到3.7,我发现安装程序不创建网站,如果在IIS中配置了任何其他正在侦听同一端口的网站。

If the website listening to Port 80 was already started, WiX would create the website from our installer, and just not start it (which is what I'd expect). Since upgrade to 3.7, however, what I've found is that the installer does not create the website if there is any other site configured in IIS that's listening to the same port.

WiX设置中是否缺少某些东西需要添加以强制WiX从我们的安装程序添加网站,或者这只是通过WiX创建网站的已知问题?

Is there something missing in the WiX setup that I need to add to force WiX to add the website from our installer, or is this just a known issue with creating websites via WiX?

编辑

进一步调查,看来该网站是由该端口检查的而不是名字。如果我在端口80上有默认网站,则我在安装程序中的网站下的任何应用程序都在默认网站下配置。

Looking into this further, it appears that the website is checked by the port, rather than by name. If I have "Default Website" on port 80, any applications that are under the website I have in the installer are configured under the Default Website.

推荐答案

感谢Rob,我设法通过将 ConfigureIfExists 标志设置为true来修复此问题,该标志创建了我原先预期的网站。

Thanks Rob, I managed to fix the issue by setting the ConfigureIfExists flag to true, which created the site as I'd expected it to originally.

更多推荐

WiX 3.7 IIS安装程序

本文发布于:2023-11-12 04:18:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1580495.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:安装程序   WiX   IIS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!