Commands for installing Microsoft Visual C++ 2015 UWP Runtime Package without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id Microsoft.VCLibs.14 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.VCLibs.14 -e --silentwinget uninstall --id Microsoft.VCLibs.14 -e --silentBy installer
64-bit · ZIP
Silent install
Add-AppxPackage -Path DesktopAppInstaller_Dependencies.zipUninstall
Get-AppxPackage -Name Microsoft.VCLibs.140.00 | Remove-AppxPackageARM64 · ZIP
Silent install
Add-AppxPackage -Path DesktopAppInstaller_Dependencies.zipUninstall
Get-AppxPackage -Name Microsoft.VCLibs.140.00 | Remove-AppxPackage32-bit · ZIP
Silent install
Add-AppxPackage -Path DesktopAppInstaller_Dependencies.zipUninstall
Get-AppxPackage -Name Microsoft.VCLibs.140.00 | Remove-AppxPackagePowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-microsoft-visual-c-plus-plus-2015-uwp-runtime-package.ps1
$url = 'https://github.com/microsoft/winget-cli/releases/download/v1.12.350/DesktopAppInstaller_Dependencies.zip'
$sha256 = '906CAD3B2BE067D816B20EA4EB1DF541F8A23AC4A4AA9FED70CE675CD918E6A6'
$file = Join-Path $env:TEMP 'DesktopAppInstaller_Dependencies.zip'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file install-microsoft-visual-c-plus-plus-2015-uwp-runtime-package.ps1
$url = 'https://github.com/microsoft/winget-cli/releases/download/v1.12.350/DesktopAppInstaller_Dependencies.zip'
$sha256 = '906CAD3B2BE067D816B20EA4EB1DF541F8A23AC4A4AA9FED70CE675CD918E6A6'
$file = Join-Path $env:TEMP 'DesktopAppInstaller_Dependencies.zip'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file install-microsoft-visual-c-plus-plus-2015-uwp-runtime-package.ps1
$url = 'https://github.com/microsoft/winget-cli/releases/download/v1.12.350/DesktopAppInstaller_Dependencies.zip'
$sha256 = '906CAD3B2BE067D816B20EA4EB1DF541F8A23AC4A4AA9FED70CE675CD918E6A6'
$file = Join-Path $env:TEMP 'DesktopAppInstaller_Dependencies.zip'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file