Netpbm Windows Imaging Component Codecを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id TeamCharLS.NetpbmWicCodec -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id TeamCharLS.NetpbmWicCodec -e --silentwinget uninstall --id TeamCharLS.NetpbmWicCodec -e --silentインストーラー別
64ビット · EXE(WiX Burn) · すべてのユーザー · en-US
サイレントインストール
NetpbmWicCodecSetup-0.4.0-x64.exe /quiet /norestartARM64 · EXE(WiX Burn) · すべてのユーザー · en-US
サイレントインストール
NetpbmWicCodecSetup-0.4.0-ARM64.exe /quiet /norestart32ビット · EXE(WiX Burn) · すべてのユーザー · en-US
サイレントインストール
NetpbmWicCodecSetup-0.4.0-x86.exe /quiet /norestartPowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-netpbm-windows-imaging-component-codec.ps1
$url = 'https://github.com/team-charls/netpbm-wic-codec/releases/download/v0.4.0/NetpbmWicCodecSetup-0.4.0-x64.exe'
$sha256 = 'ABC481466B95309462BAE8A01216E20DB16D2A3E05CA7E4FD089810EC95BA787'
$file = Join-Path $env:TEMP 'NetpbmWicCodecSetup-0.4.0-x64.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/quiet /norestart' -Wait install-netpbm-windows-imaging-component-codec.ps1
$url = 'https://github.com/team-charls/netpbm-wic-codec/releases/download/v0.4.0/NetpbmWicCodecSetup-0.4.0-ARM64.exe'
$sha256 = 'BDF5D5792BDD507EA0E923076995CBA2E16A79E45D1F34C9CEED4F598343DD65'
$file = Join-Path $env:TEMP 'NetpbmWicCodecSetup-0.4.0-ARM64.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/quiet /norestart' -Wait install-netpbm-windows-imaging-component-codec.ps1
$url = 'https://github.com/team-charls/netpbm-wic-codec/releases/download/v0.4.0/NetpbmWicCodecSetup-0.4.0-x86.exe'
$sha256 = '1D5125C957F69466DEDD2B35EBDD74054ED5380176EC2C2AE9A29531EF0A9D1A'
$file = Join-Path $env:TEMP 'NetpbmWicCodecSetup-0.4.0-x86.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/quiet /norestart' -Wait