Downloads:

20,869,212

Downloads of v 14.34.31931:

519,071

Last Update:

09 Nov 2022

Package Maintainer(s):

Software Author(s):

  • Microsoft

Tags:

microsoft visual c++ redistributable 140 2015 2017 2019 admin

Microsoft Visual C++ Redistributable for Visual Studio 2015-2022

  • 1
  • 2
  • 3

14.34.31931 | Updated: 09 Nov 2022

Downloads:

20,869,212

Downloads of v 14.34.31931:

519,071

Maintainer(s):

Software Author(s):

  • Microsoft

  • 1
  • 2
  • 3
Microsoft Visual C++ Redistributable for Visual Studio 2015-2022 14.34.31931

  • 1
  • 2
  • 3

All Checks are Passing

3 Passing Tests


Validation Testing Passed


Verification Testing Passed

Details

Scan Testing Successful:

No detections found in any package files

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

To install Microsoft Visual C++ Redistributable for Visual Studio 2015-2022, run the following command from the command line or from PowerShell:

>

To upgrade Microsoft Visual C++ Redistributable for Visual Studio 2015-2022, run the following command from the command line or from PowerShell:

>

To uninstall Microsoft Visual C++ Redistributable for Visual Studio 2015-2022, run the following command from the command line or from PowerShell:

>

Deployment Method:

📝 NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Enter Your Internal Repository Url

(this should look similar to https://community.chocolatey.org/api/v2/)


2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2/. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Copy Your Script

choco upgrade vcredist140 -y --source="'INTERNAL REPO URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade vcredist140 -y --source="'INTERNAL REPO URL'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Install vcredist140
  win_chocolatey:
    name: vcredist140
    version: '14.34.31931'
    source: INTERNAL REPO URL
    state: present

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'vcredist140' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '14.34.31931'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


cChocoPackageInstaller vcredist140
{
    Name     = "vcredist140"
    Version  = "14.34.31931"
    Source   = "INTERNAL REPO URL"
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'vcredist140':
  ensure   => '14.34.31931',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved as a trusted package on 09 Nov 2022.

Description

Microsoft Visual C++ Redistributable for Visual Studio 2015-2022 installs run-time components of Visual C++ libraries. These components are required to run C++ applications that are developed using Visual Studio 2015-2022 and link dynamically to Visual C++ libraries. The packages can be used to run such applications on a computer even if it does not have Visual Studio 2015-2022 installed. These packages also install run-time components of C Runtime (CRT), Standard C++, MFC, C++ AMP, and OpenMP libraries.

The Visual C++ Redistributable for Visual Studio 2015-2022 consists of files vcruntime140.dll, msvcp140.dll, vcomp140.dll, vcamp140.dll, mfc140.dll and other.

Notes

  • Supported Operating Systems: Windows 10, Windows 8.1 / Server 2012 R2 (with KB2919355), Windows 8 / Windows Server 2012, Windows 7 SP1 (with KB3033929) / Server 2008 R2 SP1, Windows Vista SP2 / Server 2008 SP2, Windows XP SP3 / Windows Server 2003 SP2
  • On some systems, if KB2999226 is installed as a dependency of this package, the computer may need to be restarted before the installation of this package will succeed.
  • If the package is out of date please check Version History for the latest submitted version. If you have a question, please ask it in Chocolatey Community Package Discussions or raise an issue on the Chocolatey Community Packages Repository if you have problems with the package. Disqus comments will generally not be responded to.

tools\chocolateyInstall.ps1
Set-StrictMode -Version 2
$ErrorActionPreference = 'Stop'

. (Join-Path -Path (Split-Path -Path $MyInvocation.MyCommand.Definition -Parent) -ChildPath 'data.ps1')
$packageName = $otherData.PackageName
$installerType = 'exe'
$silentArgs = '/quiet /norestart'
$validExitCodes = @(0, 1638, 3010)
$force = $Env:chocolateyPackageParameters -like '*Force*'

Write-Verbose 'Checking Service Pack requirements'
$os = Get-WmiObject -Class Win32_OperatingSystem
$version = [Version]$os.Version
if ($version -ge [Version]'6.1' -and $version -lt [Version]'6.2' -and $os.ServicePackMajorVersion -lt 1)
{
  # On Windows 7 / Server 2008 R2, Service Pack 1 is required.
  throw 'This package requires Service Pack 1 to be installed first. The "KB976932" package may be used to install it.'
}
elseif ($version -ge [Version]'6.0' -and $version -lt [Version]'6.1' -and $os.ServicePackMajorVersion -lt 2)
{
  # On Windows Vista / Server 2008, Service Pack 2 is required.
  throw 'This package requires Service Pack 2 to be installed first.'
}
elseif ($version -ge [Version]'5.2' -and $version -lt [Version]'6.0' -and $os.ServicePackMajorVersion -lt 2)
{
  # On Windows Server 2003 / XP x64, Service Pack 2 is required.
  throw 'This package requires Service Pack 2 to be installed first.'
}
elseif ($version -ge [Version]'5.1' -and $version -lt [Version]'5.2' -and $os.ServicePackMajorVersion -lt 3)
{
  # On Windows XP, Service Pack 3 is required.
  throw 'This package requires Service Pack 3 to be installed first.'
}

$runtimes = @{
  'x64' = @{ RegistryPresent = $false; RegistryVersion = $null; DllVersion = $null; InstallData = $installData64; Applicable = ((Get-OSArchitectureWidth) -eq 64) -and ($env:chocolateyForceX86 -ne 'true') }
  'x86' = @{ RegistryPresent = $false; RegistryVersion = $null; DllVersion = $null; InstallData = $installData32; Applicable = $true }
}

switch ([string](Get-OSArchitectureWidth))
{
  '32' { $registryRoots = @{ x86 = 'HKLM:\SOFTWARE'; x64 = $null } }
  '64' { $registryRoots = @{ x86 = 'HKLM:\SOFTWARE\WOW6432Node'; x64 = 'HKLM:\SOFTWARE' } }
  default { throw "Unsupported bitness: $_" }
}

Write-Verbose 'Analyzing servicing information in the registry'
foreach ($archAndRegRoot in $registryRoots.GetEnumerator())
{
  $arch = $archAndRegRoot.Key
  $regRoot = $archAndRegRoot.Value
  # https://docs.microsoft.com/en-us/cpp/ide/redistributing-visual-cpp-files
  $regData = Get-ItemProperty -Path "$regRoot\Microsoft\DevDiv\vc\Servicing\$($otherData.FamilyRegistryKey)\RuntimeMinimum" -Name 'Version' -ErrorAction SilentlyContinue
  if ($regData -ne $null)
  {
    $versionString = $regData.Version
    try
    {
      $parsedVersion = [version]$versionString
      Write-Verbose "Version of installed runtime for architecture $arch in the registry: $versionString"
      $normalizedVersion = [version]($parsedVersion.ToString(3)) # future-proofing in case Microsoft starts putting more than 3 parts here
      $runtimes[$arch].RegistryVersion = $normalizedVersion
    }
    catch
    {
      Write-Warning "The servicing information in the registry is in an unknown format. Please report this to package maintainers. Data from the registry: Version = [$versionString]"
    }
  }
}

$packageRuntimeVersion = $otherData.ThreePartVersion
Write-Verbose "Version number of runtime installed by this package: $packageRuntimeVersion"
foreach ($archAndRuntime in $runtimes.GetEnumerator())
{
  $arch = $archAndRuntime.Key
  $runtime = $archAndRuntime.Value

  $shouldInstall = $runtime.RegistryVersion -eq $null -or $runtime.RegistryVersion -lt $packageRuntimeVersion
  Write-Verbose "Runtime for architecture $arch applicable: $($runtime.Applicable); version in registry: [$($runtime.RegistryVersion)]; should install: $shouldInstall"
  if ($runtime.Applicable)
  {
    if (-not $shouldInstall)
    {
      if ($force)
      {
        Write-Warning "Forcing installation of runtime for architecture $arch version $packageRuntimeVersion even though this or later version appears present, because 'Force' was specified in package parameters."
      }
      else
      {
        if ($runtime.RegistryVersion -gt $packageRuntimeVersion)
        {
          Write-Warning "Skipping installation of runtime for architecture $arch version $packageRuntimeVersion because a newer version ($($runtime.RegistryVersion)) is already installed."
        }
        else
        {
          Write-Host "Runtime for architecture $arch version $packageRuntimeVersion is already installed."
        }

        continue
      }
    }

    Write-Verbose "Installing runtime for architecture $arch"
    $installData = $runtime.InstallData
    Set-StrictMode -Off
    Install-ChocolateyPackage -PackageName "${packageName}-$arch" `
                              -FileType $installerType `
                              -SilentArgs $silentArgs `
                              -ValidExitCodes $validExitCodes `
                              @installData
    Set-StrictMode -Version 2
  }
}
tools\chocolateyUninstall.ps1
Set-StrictMode -Version 2
$ErrorActionPreference = 'Stop'

. (Join-Path -Path (Split-Path -Path $MyInvocation.MyCommand.Definition -Parent) -ChildPath 'data.ps1')
$packageName = $otherData.PackageName
$installerType = 'exe'
$silentArgs = '/uninstall /quiet'
$validExitCodes = @(0, 3010)  # http://msdn.microsoft.com/en-us/library/aa368542(VS.85).aspx

Set-StrictMode -Off
[array] $uninstallKeys = Get-UninstallRegistryKey @uninstallData
Set-StrictMode -Version 2
[array] $filteredUninstallKeys = $uninstallKeys | Where-Object { $_ -ne $null -and ($_.PSObject.Properties['SystemComponent'] -eq $null -or $_.SystemComponent -eq 0) }
foreach ($uninstallKey in $filteredUninstallKeys)
{
  if ($uninstallKey -eq $null)
  {
    # this might happen on PS 2.0
    continue
  }

  if ($uninstallKey.PSObject.Properties['UninstallString'] -ne $null)
  {
    $uninstallString = $uninstallKey.UninstallString
    Write-Verbose "Found uninstall key, UninstallString = $uninstallString"
    if ($uninstallString -match '^"?(.*?)(".*)?$')
    {
      $uninstallerPath = $matches[1]
      Set-StrictMode -Off
      Uninstall-ChocolateyPackage -PackageName $packageName `
                                  -FileType $installerType `
                                  -SilentArgs $silentArgs `
                                  -File $uninstallerPath `
                                  -ValidExitCodes $validExitCodes
      Set-StrictMode -Version 2
    }
    else
    {
      Write-Warning "The uninstall information in the registry is in an unknown format. Please report this to package maintainers. Data from the registry: [$uninstallString]"
    }
  }
  else
  {
    Write-Warning "The uninstall information in the registry does not contain the path to the uninstaller application. Please report this to package maintainers. Registry key path: [$($uninstallKey.PSPath)]"
  }
}
tools\data.ps1
$installData32 = @{
  Url = 'https://download.visualstudio.microsoft.com/download/pr/6a4c74cd-8ee0-4757-9620-a11a5b48b1a7/CE4843A946EE3732EB2BFC098DB5741DC5495C7BEA204E11D379336DCC68E875/VC_redist.x86.exe'
  Checksum = 'ce4843a946ee3732eb2bfc098db5741dc5495c7bea204e11d379336dcc68e875'
  ChecksumType = 'sha256'
}

$installData64 = @{
  Url64 = 'https://download.visualstudio.microsoft.com/download/pr/bcb0cef1-f8cb-4311-8a5c-650a5b694eab/2257B3FBE3C7559DE8B31170155A433FAF5B83829E67C589D5674FF086B868B9/VC_redist.x64.exe'
  Checksum64 = '2257b3fbe3c7559de8b31170155a433faf5b83829e67c589d5674ff086b868b9'
  ChecksumType64 = 'sha256'
}

$uninstallData = @{
  SoftwareName = 'Microsoft Visual C++ 2015-2022 Redistributable*'
}

$otherData = @{
  ThreePartVersion = [version]'14.34.31931'
  FamilyRegistryKey = '14.0'
  PackageName = 'vcredist140'
}

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Add to Builder Version Downloads Last Updated Status
Microsoft Visual C++ Redistributable for Visual Studio 2015-2022 14.32.31332 2797029 Monday, June 27, 2022 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2015-2022 14.32.31326 1018334 Wednesday, May 11, 2022 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2015-2022 14.31.31103.20220402 796890 Saturday, April 2, 2022 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2015-2022 14.31.31103 1017866 Wednesday, February 16, 2022 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2015-2022 14.30.30708 674235 Friday, January 14, 2022 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2015-2022 14.30.30704 1150656 Monday, November 8, 2021 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2015-2022 14.30.30704-prerelease 1354 Friday, October 22, 2021 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2015-2019 14.29.30139.20220402 54 Saturday, April 2, 2022 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2015-2019 14.29.30139 138 Wednesday, January 12, 2022 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2015-2019 14.29.30135 648475 Tuesday, October 5, 2021 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2015-2019 14.29.30133 929451 Tuesday, August 10, 2021 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2015-2019 14.29.30040 331813 Tuesday, July 20, 2021 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2015-2019 14.29.30037 951960 Tuesday, May 25, 2021 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2015-2019 14.28.29914 683358 Tuesday, April 13, 2021 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2015-2019 14.28.29913 481872 Tuesday, March 16, 2021 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2015-2019 14.28.29910 240488 Wednesday, March 3, 2021 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2015-2019 14.28.29325.2 1513309 Wednesday, November 11, 2020 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2015-2019 14.27.29112 657888 Tuesday, September 29, 2020 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2015-2019 14.26.28720.3 1590131 Tuesday, May 19, 2020 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2015-2019 14.25.28508.3 511217 Thursday, April 9, 2020 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2015-2019 14.24.28127.4 1385524 Wednesday, December 4, 2019 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2015-2019 14.23.27820 643491 Monday, September 23, 2019 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2015-2019 14.22.27821 313846 Wednesday, July 24, 2019 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2015-2019 14.21.27702.2 292174 Wednesday, May 22, 2019 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2015-2019 14.20.27508.1 185636 Sunday, April 14, 2019 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2015-2017 14.16.27033.20220402 47 Saturday, April 2, 2022 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2015-2017 14.16.27033 789 Friday, October 22, 2021 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2017 14.16.27027.20190414 398 Sunday, April 14, 2019 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2017 14.16.27027.1 270386 Friday, February 15, 2019 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2017 14.16.27024.1 147597 Thursday, January 10, 2019 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2017 14.16.27012.6 137350 Thursday, November 29, 2018 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2017 14.15.26706 236791 Thursday, October 18, 2018 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2017 14.12.25810 389635 Thursday, January 18, 2018 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2017 14.11.25325.0 104860 Wednesday, August 30, 2017 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2017 14.10.25017.0 63199 Saturday, June 3, 2017 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2017 RTM 14.10.25008.0 61906 Tuesday, March 7, 2017 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2017 RC (2017-02-07) 14.10.24930.0-rc6 642 Saturday, February 11, 2017 Exempted
Microsoft Visual C++ Redistributable for Visual Studio 2017 RC (2017-01-27) 14.10.24911.0-rc5 499 Saturday, February 11, 2017 Exempted
Microsoft Visual C++ Redistributable for Visual Studio 2017 RC (2016-11-16) 14.10.24629.0-rc1 470 Saturday, February 11, 2017 Exempted
Microsoft Visual C++ Redistributable for Visual Studio "15" Preview 5 14.0.24516.0-preview5 516 Saturday, February 11, 2017 Exempted
Microsoft Visual C++ Redistributable for Visual Studio 2015 Update 3 (with hotfix 2016-09-14) 14.0.24215.1 106931 Saturday, February 11, 2017 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2015 Update 3 (with hotfix 2016-07-20) 14.0.24212.0 675 Saturday, February 11, 2017 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2015 Update 2 14.0.23918.0 804 Saturday, February 11, 2017 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2015 Update 1 14.0.23506.0 881 Saturday, February 11, 2017 Approved
Microsoft Visual C++ Redistributable for Visual Studio 2015 RTM 14.0.23026.0 7550 Saturday, February 11, 2017 Approved

Discussion for the Microsoft Visual C++ Redistributable for Visual Studio 2015-2022 Package

Ground Rules:

  • This discussion is only about Microsoft Visual C++ Redistributable for Visual Studio 2015-2022 and the Microsoft Visual C++ Redistributable for Visual Studio 2015-2022 package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Microsoft Visual C++ Redistributable for Visual Studio 2015-2022, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus