Matin Lotfaliee
Matin Lotfaliee

Reputation: 1625

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

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?

Upvotes: 1

Views: 589

Answers (1)

Matin Lotfaliee
Matin Lotfaliee

Reputation: 1625

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.

Upvotes: 1

Related Questions