Microsoft Visual C++ 2008 Redistributable

Version: 9
Views: 6.8k  |  Created: 04/14/2011

Average Rating: 0
Visual C++ 2008 Redistributable has 1 inventory records, 1 Questions, 1 Blogs and 0 links. Please help add to this by sharing more!

Deployment Tips (3)

Most Common Setup Type
Not Determined
Average Package Difficulty Rating
Rated 0 / 5 (Not Rated) based on 0 ratings
Most Commonly Reported Deployment Method
Not Determined

Deployment Tip Summary

vcredist_x86.exe /q vcredist_x64.exe /q
or cancel
6
Note
Microsoft Visual C++ 2008 Redist 9.0.21022 Install to C:\ROOT

This MSI will natively extract its files to the C:\ROOT to perform the installation and not remove the files after. This is because the TARGETDIR variable was not set in the original MSI.

As best practice is to not repackage an MSI, I chose to fix this in the install command by setting TARGETDIR. Note that the directory will not be created just by specifying it in the command line. It must exist prior to use. You must also extract the vcredist_x86.exe to get to the vc_red.msi.

I set variables for all of the particulars of the install (msi/mst name, log file directory, package name, etc) in my CMD's. You can see them below as %VARIABLE%.

:: Package Variables
SET PACKAGE=%Filename:.cmd=%
SET SOURCE=%~dp0Source
SET LOGFILENAME=%PACKAGE%.LOG
SET LOGFILEDIR=%SYSTEMDRIVE%\LOGS\MS_Visual_C++_2008_Redist_9021022

:: Variable for working directory for the install files
set WRKDIR=%LOGFILEDIR%\WRKDIR

:: Creating working directory for the install files
IF NOT EXIST %WRKDIR% MD %WRKDIR%

:: Command to install the MSI
%SYSTEMROOT%\System32\msiexec.exe /i "%SOURCE%\%MSINAME%" TRANSFORMS="%SOURCE%\%MSTNAME%" TARGETDIR="%WRKDIR%" /liwear "%LOGFILEDIR%\%PACKAGE%_MSI.LOG" /qn

:: Deleting working directory for the install files
IF EXIST "%WRKDIR%" RD "%WRKDIR%" /S /Q
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
Please log in to comment
3
Command Line
As of KB2467174, released in April 2011, Microsoft appears to be requiring an additional switch. If you just use msiexec /i vc_red.msi /qn, you'll get an error:

"To install this product please run setup.exe"

The way I got around it was to use:

msiexec /i vc_red.msi USING_EXUIH=1 /qn
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
Please log in to comment
2
Command Line
Download the redistributable from here

Use WinRAR or similar to open the EXE and extract the vc_red.msi and vc_red.cab files.

You can then use standard MSI commands to install, etc. For example; "msiexec /i vc_red.msi /qb"
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
Please log in to comment

Inventory Records (1)

View inventory records anonymously contributed by opt-in users of the K1000 Systems Management Appliance.

Versions

Visual C++ 2008 Redistributable

Version

9

Questions & Answers (1)

Questions & Answers related to Microsoft Visual C++ 2008 Redistributable

Blogs (1)

Blog posts related to Microsoft Visual C++ 2008 Redistributable

blog

Reviews (0)

Reviews related to Microsoft Visual C++ 2008 Redistributable