Kommandon för att installera Microsoft Visual C++ 2015 UWP Runtime Package utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med 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 --silentPer installationsfil
64-bitars · ZIP
Tyst installation
Add-AppxPackage -Path DesktopAppInstaller_Dependencies.zipAvinstallation
Get-AppxPackage -Name Microsoft.VCLibs.140.00 | Remove-AppxPackageARM64 · ZIP
Tyst installation
Add-AppxPackage -Path DesktopAppInstaller_Dependencies.zipAvinstallation
Get-AppxPackage -Name Microsoft.VCLibs.140.00 | Remove-AppxPackage32-bitars · ZIP
Tyst installation
Add-AppxPackage -Path DesktopAppInstaller_Dependencies.zipAvinstallation
Get-AppxPackage -Name Microsoft.VCLibs.140.00 | Remove-AppxPackagePowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
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