Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I include Visual C++ 2010 redistribuable in my setup?

When my application runs, it requires that Microsoft Visual C++ 2010 Redistributable Package (x86) is installed. How do I include it in my app setup?

I use the setup wizard of Visual Studio 2010 to create it.

like image 400
Anthony Avatar asked Nov 22 '11 16:11

Anthony


People also ask

Where does Visual C++ redistributable get installed?

In Visual Studio 2022, the redistributable files are in the %VCINSTALLDIR%Redist\MSVC\v143 folder. In the latest version of Visual Studio 2019, you'll find the redistributable files in the %VCINSTALLDIR%Redist\MSVC\v142 folder.

How do I install Microsoft Visual C++ redistributable packages?

The Redistributable is available in the my.visualstudio.com Downloads section as Visual C++ Redistributable for Visual Studio 2019 - Version 16.7. Use the Search box to find this version. To download the files, select the platform and language you need, and then choose the Download button.

How do I know if redistributable is installed?

To check if Visual C++ redistributables are installed, open Add and Remove Programs and look for the Microsoft Visual C++ Redistributable. If installed, you see "Microsoft Visual C++ 2015-2019 Redistributable (x64) - 14.22.


2 Answers

Prerequisites Dialog Box

This dialog box specifies which prerequisite components are installed, how they are installed, and which order the packages are installed.

To access this dialog box, select a project node in Solution Explorer, and then, on the Project menu, click Properties. When the Project Designer appears, click the Publish tab. On the Publish page, click Prerequisites. For Setup projects, on the Project menu, click Properties. When the Property Pages dialog box appears, click Prerequisites.

it's all explained here, follow the suggested steps then add VC++ 2010 runtime as prerequisite. Done!

like image 65
Davide Piras Avatar answered Sep 29 '22 01:09

Davide Piras


I would include the VC++ 2010 merge module into the setup project. Information on redistribution via merge module can be found in this MSDN article. General resitribution is available from the parent article.

like image 30
Tevo D Avatar answered Sep 29 '22 01:09

Tevo D