How to avoid Visual C++ Redistributable LARGE file installing?

北城以北 提交于 2021-02-10 16:26:35

问题


I want to deploy a C++/CLI application on Windows 7 32bit clients. I have built it using Visual Studio 2017 and I noticed my project needs Visual C++ 2017 Redistributable.

My executable file is less than 1 megabytes and the MSVCR dependency is 13 megabytes, which is really huge for this app.

Is there any way I can reduce this amount of size?


回答1:


I found a possible solution but I don't know if it is fine or not.

I can compile my C++/CLI code with Visual Studio 2010 toolkit. So I would need C++ Redistributable 2010 for it.

And instead of installing the whole package I can copy msvcr80.dll and msvcp80.dll next to my executable file, which are less than 1 megabyte size together.



来源:https://stackoverflow.com/questions/45108166/how-to-avoid-visual-c-redistributable-large-file-installing

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