Chocolatey Fest - Chocolatey's inaugural conference on Windows Automation (WinOps) is coming - Learn more!

Microsoft Visual C++ Redistributable for Visual Studio 2017

14.12.25810

Package test results are passing.

This package was approved as a trusted package on 5/18/2018.

Microsoft Visual C++ Redistributable for Visual Studio 2017 installs run-time components of Visual C++ libraries. These components are required to run C++ applications that are developed using Visual Studio 2017 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 2017 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 2017 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.

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

C:\> choco install vcredist140

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

C:\> choco upgrade vcredist140

Files

Hide
  • README.md Show
    # <img src="https://cdn.rawgit.com/chocolatey/chocolatey-coreteampackages/d8a28da83b3b9bf058e1fbbeed5ce74329b73245/icons/vcredist140.png" width="48" height="48"/> [vcredist140](https://chocolatey.org/packages/vcredist140)
    
    Microsoft Visual C++ Redistributable for Visual Studio 2017 installs run-time components of Visual C++ libraries. These components are required to run C++ applications that are developed using Visual Studio 2017 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 2017 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 2017 consists of files vcruntime140.dll, msvcp140.dll, vcomp140.dll, vcamp140.dll, mfc140.dll and other.
    
    ## Notes
    
    [Supported Operating Systems](https://www.visualstudio.com/en-us/productinfo/vs2017-sysrequirements-vs): 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.
    
    
  • tools\chocolateyInstall.ps1 Show
    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, 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 }
      '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 Show
    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 Show
    $installData32 = @{
      Url = 'https://download.visualstudio.microsoft.com/download/pr/100349138/88b50ce70017bf10f2d56d60fcba6ab1/VC_redist.x86.exe'
      Checksum = 'e7d34f0a9d37d7221adc911bd49b316de68a75f3bfa910e2550849ad13d0573f'
      ChecksumType = 'sha256'
    }
    
    $installData64 = @{
      Url64 = 'https://download.visualstudio.microsoft.com/download/pr/100349091/2cd2dba5748dc95950a5c42c2d2d78e4/VC_redist.x64.exe'
      Checksum64 = '52dcfaf0c7cf62c333e12457339a581ac369e06576f93ded45ac002a1b3621fb'
      ChecksumType64 = 'sha256'
    }
    
    $uninstallData = @{
      SoftwareName = 'Microsoft Visual C++ 2017 Redistributable*'
    }
    
    $otherData = @{
      ThreePartVersion = [version]'14.12.25810'
      FamilyRegistryKey = '14.0'
      PackageName = 'vcredist140'
    }
    

Virus Scan Results

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.

Dependencies

Package Maintainer(s)

Software Author(s)

  • Microsoft

Copyright

http://www.microsoft.com/about/legal/en/us/IntellectualProperty/Copyright/Default.aspx

Tags

Release Notes

Software

Visual Studio 2017 Release Notes

Package

14.11.25325.0: Initial package release for software version 14.11.25325.0.

Version History

Version Downloads Last updated Status
Microsoft Visual C++ Redistributable for Visual Studio 2017 14.11.25325.0 103293 Wednesday, August 30, 2017 approved
Microsoft Visual C++ Redistributable for Visual Studio 2017 14.10.25017.0 62718 Saturday, June 3, 2017 approved
Microsoft Visual C++ Redistributable for Visual Studio 2017 RTM 14.10.25008.0 58528 Tuesday, March 7, 2017 approved
Microsoft Visual C++ Redistributable for Visual Studio 2017 RC (2017-02-07) 14.10.24930.0-rc6 296 Saturday, February 11, 2017 exempted
Microsoft Visual C++ Redistributable for Visual Studio 2017 RC (2017-01-27) 14.10.24911.0-rc5 165 Saturday, February 11, 2017 exempted
Microsoft Visual C++ Redistributable for Visual Studio 2017 RC (2016-11-16) 14.10.24629.0-rc1 152 Saturday, February 11, 2017 exempted
Microsoft Visual C++ Redistributable for Visual Studio "15" Preview 5 14.0.24516.0-preview5 161 Saturday, February 11, 2017 exempted
Microsoft Visual C++ Redistributable for Visual Studio 2015 Update 3 (with hotfix 2016-09-14) 14.0.24215.1 28311 Saturday, February 11, 2017 approved
Microsoft Visual C++ Redistributable for Visual Studio 2015 Update 3 (with hotfix 2016-07-20) 14.0.24212.0 225 Saturday, February 11, 2017 approved
Show More

Discussion for the Microsoft Visual C++ Redistributable for Visual Studio 2017 Package

Ground rules:

  • This discussion is only about Microsoft Visual C++ Redistributable for Visual Studio 2017 and the Microsoft Visual C++ Redistributable for Visual Studio 2017 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 2017, 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
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok