命令的弹性魔豆配置安装Visual C ++可再发行 [英] Command for Elastic Beanstalk configuration to install Visual C++ Redistributable

查看:190
本文介绍了命令的弹性魔豆配置安装Visual C ++可再发行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找,我可以使用一个命令的弹性魔​​豆配置文件来安装Visual C ++可再发行的Visual Studio 2012,我需要为我的Web项目运行。

我试图用 MSI 这是我从EXE建成并投入在S3上,但它返回安装超时:

 下面的实例并没有在允许的命令超时响应时间(他们可能仍然最终完成自己)
 

和我仍然得到错误:

 无法加载文件或程序集Magick.NET-x86.DLL或它的某一个依赖。指定的模块无法找到。
 

Magick.NET为了运行需要的Visual C ++可再发行的Visual Studio 2012。手动安装它是不是一种选择,因为我需要它pre-安装了自动可扩展性。谢谢你。

服务器Windows服务器上运行2012 / IIS8

解决方案

我最近遇到了同样的问题。我最终什么做什么是创建捆绑在一起,从我的S3存储下载可再发行组件,然后在部署期间在服务器上安装部署脚本。这是我做的:

  1. 下载从 http://www.microsoft可再发行。 COM / EN-US /下载/ details.aspx?ID = 30679
  2. 上传的可再发行到您的S3存储和记录URL位置。

  3. 在.NET项目,创建一个名为 .ebextensions 在文件夹 项目(即顶层,在同一级别的APP_DATA, App_Start,内容等文件夹)

  4. 创建一个文件名为myapp.config(不管你喜欢更换的myapp)。其实,我创建了两个配置文件(MyApp的-1.config和MyApp的-2.config),因为无论出于何种原因的部署并没有像在步骤#5中的命令是在同一个文件(我还在学习这个,所以我最有可能搞砸的东西了,但是这个工作对我来说)。

  5. 在配置文件中,将以下(文件到MyApp的-1.config和命令的myapp-2.config):

    文件:
     C:\\ somedirectoy \\ vcredist_x64.exe:
       来源:https://s3.amazonaws.com/yours3location/2012vcredist_x64.exe

    命令:
      instlVC:
          命令:c:\\ somedirectory \\ vcredist_x64.exe / Q / norestart更新日志文件

现在,当您从Visual Studio 2012部署到弹性魔豆,亚马逊部署过程会下载从S3的vcredist_x64.exe,然后运行在安静模式下安装(无提示等)。

希望这有助于我欢迎这一做法的任何改进或建议。

I am searching for a command that I can use in Elastic Beanstalk configuration file to install Visual C++ Redistributable for Visual Studio 2012 which I need for my web project to run.

I tried installing using msi which I built from the exe and put on S3 but it returned timeout:

The following instances have not responded in the allowed command timeout time (they might still finish eventually on their own)

And I still get the error:

Could not load file or assembly 'Magick.NET-x86.DLL' or one of its dependencies. The specified module could not be found.

Magick.NET needs the Visual C++ Redistributable for Visual Studio 2012 in order to run. Installing it manually is not an option as I need it pre-installed for auto scalability. Thanks.

Servers run on Windows Server 2012 / IIS8

解决方案

I recently encountered the same problem. What I ended up doing was creating scripts that are bundled with the deployment that download the redistributable from my S3 store and then install on the server during deployment. Here is what I did:

  1. Download the redistributable from http://www.microsoft.com/en-us/download/details.aspx?id=30679
  2. Upload the redistributable to your S3 store and note the URL location.

  3. In the .NET project, create a folder named .ebextensions at the top level of the project (i.e., at the same level as the App_data, App_Start, Content, etc. folders)

  4. Create a file named myapp.config (replace myapp with whatever you like). I actually created two config files (myapp-1.config and myapp-2.config) because for whatever reason the deployer didn't like the commands in Step #5 to be in the same file (I'm still learning this so I most likely screwed something up, but this worked for me).

  5. In the config file, place the following (files into myapp-1.config and commands into myapp-2.config):

    files:
     "c:\\somedirectoy\\vcredist_x64.exe":
       source: https://s3.amazonaws.com/yours3location/2012vcredist_x64.exe

    commands:
      instlVC:
          command: c:\\somedirectory\\vcredist_x64.exe /q /norestart

Now, when you deploy to the Elastic Beanstalk from Visual Studio 2012, the amazon deployment process will download the vcredist_x64.exe from S3 and then run the installer in quiet mode (no prompts, etc.).

Hopefully this helps and I welcome any improvements or suggestions on this approach.

这篇关于命令的弹性魔豆配置安装Visual C ++可再发行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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