Microsoft Visual C++ 2015 UWP Runtime Packageを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
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 --silentインストーラー別
64ビット · ZIP
サイレントインストール
Add-AppxPackage -Path DesktopAppInstaller_Dependencies.zipアンインストール
Get-AppxPackage -Name Microsoft.VCLibs.140.00 | Remove-AppxPackageARM64 · ZIP
サイレントインストール
Add-AppxPackage -Path DesktopAppInstaller_Dependencies.zipアンインストール
Get-AppxPackage -Name Microsoft.VCLibs.140.00 | Remove-AppxPackage32ビット · ZIP
サイレントインストール
Add-AppxPackage -Path DesktopAppInstaller_Dependencies.zipアンインストール
Get-AppxPackage -Name Microsoft.VCLibs.140.00 | Remove-AppxPackagePowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
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