How to install VS2013 redistributable along with your app

谁说胖子不能爱 提交于 2019-12-25 06:06:13

问题


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?


回答1:


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

  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).

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.

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.



来源:https://stackoverflow.com/questions/24745438/how-to-install-vs2013-redistributable-along-with-your-app

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