WiX 3.7 IIS安装程序 [英] WiX 3.7 IIS Setup

查看:111
本文介绍了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安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆