How to include Visual C ++ 2010 in my setup?

When my application starts, it requires that the Microsoft Visual C ++ 2010 redistributable package (x86) be added. How to enable it in the configuration of my application?

I am using the Visual Studio 2010 Setup Wizard to create it.

+6
source share
4 answers

I would include the VC ++ 2010 merge module in the installation project. Redistribution information through the merge module can be found in this MSDN article. A general exemption is available from the parent article .

+2
source

Prerequisites Dialog Box

This dialog box indicates which components are required, how they are installed, and what order of packages is installed.

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

everything is explained here, follow the suggested steps, then add the VC ++ 2010 runtime as a prerequisite. Done!

+4
source

Take a look at the following articles. They explain how to include the necessary resources in the installation project.

+2
source

If you are using a deployment project, I would recommend using Merge Modules .

Distribution Using Merge Modules

Visual Studio installs several merge modules for each Visual C ++ that can be redistributed with your application. They can be found in the Program Files \ Common Files \ Merge Modules folder. Each of these merge modules can be used to deploy Visual C ++ libraries for the target system.

Adding merge modules to your project is pretty straight forward .

To add a merge module to a deployment project

  • Select a deployment project in Solution Explorer.
  • From the Project menu, select Add, and then Merge Module.
  • In the "Add Modules" dialog box that appears, navigate to the location you want to add.
+1
source

Source: https://habr.com/ru/post/902127/


All Articles