Solved

vc++ 2008 redistributable

Posted on 2015-01-11
6
218 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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
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…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

914 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

16 Experts available now in Live!

Get 1:1 Help Now