6

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.

user229044
  • 232,980
  • 40
  • 330
  • 338
Anthony
  • 2,801
  • 3
  • 30
  • 49

4 Answers4

4

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!

Davide Piras
  • 43,984
  • 10
  • 98
  • 147
2

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

James Johnson
  • 45,496
  • 8
  • 73
  • 110
2

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.

Tevo D
  • 3,351
  • 21
  • 28
1

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

Redistributing By Using Merge Modules

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

Adding merge modules to your project is fairly straight forward.

To add a merge module to a deployment project

  1. Select the deployment project in Solution Explorer.
  2. On the Project menu, point to Add, and then click Merge Module.
  3. In the resulting Add Modules dialog box, browse to the location of the merge module that you want to add.
Scott Saad
  • 17,962
  • 11
  • 63
  • 84
  • Forgive the silly question, but how can I find out which merge modules I need to add? The dependencies are not correctly identified in VS2013 Installer Projects. Cheers! – Colin May 16 '15 at 13:01
  • @Colin. I'm not sure if there's an exact way of doing this but would recommend to first know what dll dependencies your application/library has. Once you've identified those you can see (by searching) if there is a merge module for that dependency. Generally the merge modules exist for redistributable packages like the VC++ runtime, etc. – Scott Saad May 17 '15 at 14:46