How best to install MVC 3 on a server?

对着背影说爱祢 提交于 2019-11-30 04:20:38

You can use the installer from WebPI on the server just fine. It will detect if you don't have Visual Studio installed and will only install the runtime.

You could also try unzipping the installer file and only copying the runtime MSIs but I think that's overkill.

I know this doesn't help you Decker, but it may help others:

The easiest way to get MVC on the server is by using the "Add Deployable Dependancies..." menu:

Also useful for deploying SQL CE.

You could also use Web Platform Installer from the command line:

webpicmd /install /Products:MVC3Runtime /log:webpi.log /accepteula /SuppressReboot

If your servers don't have internet access, you can use the offline flag from a machine which does have access to download a copy of the required install files.

So your flow would be as follows:

Prepare Cached Version of Installers

webpicmd /Offline /Products:MVC3Runtime /log:webpi.log /Path:"%~dp0wbpiCache"

Install from cache (copy folder structure to target machine)

webpicmd /install /Products:MVC3Runtime /log:webpi.log /accepteula /SuppressReboot /XML:"%~dp0wbpiCache"

You don't need to install MVC3 on a server.

Just copy the MVC DLLs along with your projects.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!