Commando’s om K-Lite Codec Pack Basic zonder vragen te installeren, weer te verwijderen en te detecteren in uitroltools. Een commando staat er alleen als het vaststaat: uit het manifest of als gedocumenteerde standaard van de installertechniek.
Gerelateerde handleiding: Stille installatie-parameters: MSI, NSIS, Inno Setup · Programma verwijderen via register of PowerShell
Met winget
PowerShell
winget install --id CodecGuide.K-LiteCodecPack.Basic -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id CodecGuide.K-LiteCodecPack.Basic -e --silentwinget uninstall --id CodecGuide.K-LiteCodecPack.Basic -e --silentPer installer
64-bits · EXE (Inno Setup) · Alle gebruikers
Stille installatie
K-Lite_Codec_Pack_2010_Basic.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Andere map
K-Lite_Codec_Pack_2010_Basic.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\k-lite-codec-pack-basic"32-bits · EXE (Inno Setup) · Alle gebruikers
Stille installatie
K-Lite_Codec_Pack_2010_Basic.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Andere map
K-Lite_Codec_Pack_2010_Basic.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\k-lite-codec-pack-basic"PowerShell: downloaden, controleren, installeren
Downloadt het officiële bestand, controleert de SHA256-hash en installeert stil.
install-k-lite-codec-pack-basic.ps1
$url = 'https://files2.codecguide.com/K-Lite_Codec_Pack_2010_Basic.exe'
$sha256 = '9DF9F48A175EDE3D8EDF069CEFB1E53462A92C1E0BEC786C3649B119E928A9FC'
$file = Join-Path $env:TEMP 'K-Lite_Codec_Pack_2010_Basic.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-k-lite-codec-pack-basic.ps1
$url = 'https://files2.codecguide.com/K-Lite_Codec_Pack_2010_Basic.exe'
$sha256 = '9DF9F48A175EDE3D8EDF069CEFB1E53462A92C1E0BEC786C3649B119E928A9FC'
$file = Join-Path $env:TEMP 'K-Lite_Codec_Pack_2010_Basic.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait