Ordres per instal·lar Netpbm Windows Imaging Component Codec sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb 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 --silentPer instal·lador
64 bits · EXE (WiX Burn) · Tots els usuaris · en-US
Instal·lació silenciosa
NetpbmWicCodecSetup-0.4.0-x64.exe /quiet /norestartARM64 · EXE (WiX Burn) · Tots els usuaris · en-US
Instal·lació silenciosa
NetpbmWicCodecSetup-0.4.0-ARM64.exe /quiet /norestart32 bits · EXE (WiX Burn) · Tots els usuaris · en-US
Instal·lació silenciosa
NetpbmWicCodecSetup-0.4.0-x86.exe /quiet /norestartPowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
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