How best to install MVC 3 on a server?

后端 未结 4 907
借酒劲吻你
借酒劲吻你 2020-12-29 04:28

Now that MVC 3 Tools Update has been released, that\'s all I see on the Web Platform Installer -- I no longer see MVC 3? Is this because the Tools Update is essentially MVC

相关标签:
4条回答
  • 2020-12-29 04:31

    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.

    0 讨论(0)
  • 2020-12-29 04:32

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

    Just copy the MVC DLLs along with your projects.

    0 讨论(0)
  • 2020-12-29 04:49

    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"
    
    0 讨论(0)
  • 2020-12-29 04:56

    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:

    Menu

    Window

    Also useful for deploying SQL CE.

    0 讨论(0)
提交回复
热议问题