Solved

vc++ 2008 redistributable

Posted on 2015-01-11
6
212 Views
Last Modified: 2015-01-16
I have a win32 console app that I compiled under 'Release' mode in visual studio VC++ 2008.

I followed the MS setup tutorial using the iexpress.exe and try to include the correct version of vcredist_x86.exe to my installation package.

On my machine there are the following versions for this:


 C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\vcredist_x86
07/18/2009  01:13 AM         1,843,544 vcredist_x86.exe
               1 File(s)      1,843,544 bytes

C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\vcredist_x86
02/20/2011  01:14 PM         4,995,416 vcredist_x86.exe
               1 File(s)      4,995,416 bytes

C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\vcredist_x86
07/12/2009  02:12 AM         2,705,744 vcredist_x86.exe
               1 File(s)      2,705,744 bytes

I tried the one in v7.0A, and upon install, it says something for 2010, so I take that it is for VS2010?
I then tried the one in v6.0A, and upon installation, it didn't say anything and run through install very fast (but my main C++ application exe is not installed...)

So, one question, which version of these correspond to VC++ 2008? Or could I go online to download from MS website? I thought using local copy of this redist where I did the development would stand most likely to work on client computers, right? Please help.
0
Comment
Question by:TongZ
  • 4
  • 2
6 Comments
 
LVL 68

Expert Comment

by:Qlemo
ID: 40543373
You certainly know the redist does not contain your application? It won't get installed that way ;-)
0
 

Author Comment

by:TongZ
ID: 40543431
@Olemo:
Yes, I know that. My own application is already the first entry in the iexpress file inclusion list. This same install package actually installed on a window 7 machine, but it didn't install the application on a window 8 machine.

Anyway, i would like to know the differences among those different version of vcredist_x86.exe(s). Help?
0
 
LVL 68

Expert Comment

by:Qlemo
ID: 40543474
The internal version numbers for VS are confusing. You can see an overview at http://www.mztools.com/articles/2011/MZ2011011.aspx, and that tells us VS2008 is 9.0, so none of those vcredist files fit.
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Author Comment

by:TongZ
ID: 40543492
@Olemo:
So, do you think the Microsoft Visual C++ 2008 Redistributable Package (x86) at Microsoft Web site:

http://www.microsoft.com/en-us/download/details.aspx?id=5582

is the one?
0
 

Accepted Solution

by:
TongZ earned 0 total points
ID: 40543711
@Olemo:

After repeated trial and error, I finally got the installer to work. The VC++ runtime libraries are all in the Microsoft Visual C++ 2008 Redistributable Package (x86) at Microsoft Web site:

http://www.microsoft.com/en-us/download/details.aspx?id=5582

The installer includes this vcredist_x86.exe and install it first, then copy my console app into its target folder, then it worked.
0
 

Author Closing Comment

by:TongZ
ID: 40553089
This question is related to the installation package that I have been building, the process of including runtime libraries indeed involved quite a bit of trial-n-error (not intentionally of course). In the end, it is proven that Microsoft's online version of the VC++2008 SP1 redistributable should be used for VC++ 2008 programs. It would be logical to deduce that for VC++2010, one would get Microsoft online version of the VC++2010 SP1 redistributable.

@Olemo also provided supportive information that help steer me towards the online version, I felt he/she should obtain partial  points, but not sure how to do that or if that's possible. Nonetheless, the actual trial-n-error on multiple windows OS using multiple versions of the redist ultimately led to the definitive answer.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now