简体   繁体   English

作为网站而非虚拟目录安装

[英]Install as a Website not a Virtual Directory

I'm testing migration of websites to a Windows 2012 IIS 8.5. 我正在测试网站到Windows 2012 IIS 8.5的迁移。 machine and when I create a Web Setup Project in VS2010 I can't find a way to get it to install on IIS 8.5 as a website. 机器,当我在VS2010中创建Web安装项目时,我找不到方法将其作为网站安装在IIS 8.5上。 It always installs as a Virtual Directory underneath the defaultwebsite. 它始终作为虚拟目录安装在默认网站下。

Is there something I'm missing? 有什么我想念的吗? Everywhere I've read seems to say a web setup project installs things as a virtual directory. 我读过的所有地方似乎都说一个Web安装项目会将内容安装为虚拟目录。 Is there no option anywhere to install as a website? 没有任何地方可以安装为网站吗?

It's so simple I could kick myself... 很简单,我可以踢自己...

Simply setup the website definition in IIS, then when you run the installer, in the section Select Installation Address, select the website in the top field, then blank out the virtual directory field. 只需在IIS中设置网站定义,然后在运行安装程序时,在“选择安装地址”部分中,在顶部字段中选择网站,然后清空虚拟目录字段。

This causes the installer to install without creating a virtual directory! 这将导致安装程序安装时不创建虚拟目录!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM