如何与您的应用一起安装VS2013可再发行组件 [英] How to install VS2013 redistributable along with your app

查看:181
本文介绍了如何与您的应用一起安装VS2013可再发行组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用VS2013构建应用程序,但需要在目标计算机上安装可再发行的VC才能打开应用程序.如何在我的应用程序旁边安装这些软件?

I build app using VS2013 but it needs VC redistributable installed on target machine to open app. How can I install these along side my app?

推荐答案

对于使用Visual Studio 2013构建的Win32桌面应用程序,您可以选择

For Win32 desktop applications built with Visual Studio 2013, you can choose one of three options as covered on MSDN:

  1. 让您的安装程序为32位应用程序 VCRedist_x86.exe ="http://go.microsoft.com/?linkid=9832146" rel ="nofollow"> VCRedist_x64.exe (适用于64位本机应用程序),或者如果需要,两者都适用.
  2. 如果您使用基于MSI的安装程序,请使用Visual Studio 2013随附的MSM合并模块
  3. 您只需将所需的RETAIL(即非DEBUG)DLL复制到安装程序(即本地应用程序)的应用程序文件夹中即可.
  1. Have your installer invoke the VCRedist_x86.exe for 32-bit apps, VCRedist_x64.exe for 64-bit native apps, or both if needed.
  2. If you use an MSI-based installer, use the MSM merge modules provided with Visual Studio 2013
  3. You can just copy the needed RETAIL (i.e. non-DEBUG) DLLs into your application folder as part of your installer (i.e. application local).

在为中央操作系统范围的版本处理安全服务的意义上,前两个选项更好.最后一个选项不需要MSI或管理员权限,但是这意味着为C运行时部署任何安全服务更新是您的问题.

The first two options are better in the sense that security servicing is handled for the central OS-wide version. The last option doesn't require MSI or admin rights, but means deploying any security servicing updates for the C Runtime is your problem.

对于Windows Store应用程序,Windows Phone应用程序和Xbox One应用程序,您不需要自己部署CRT.这是平台部署服务的一部分.

For Windows Store apps, Windows phone apps, and Xbox One apps you do not deploy the CRT yourself. It's part of the platform deployment service to do this.

这篇关于如何与您的应用一起安装VS2013可再发行组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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