Příkazy pro instalaci programu K-Lite Codec Pack Basic bez dotazů, jeho odinstalaci a detekci v nástrojích pro nasazení. Příkaz je uveden jen tehdy, když je přesně známý: z manifestu nebo ze zdokumentovaných parametrů technologie instalátoru.
Související návod: Parametry tiché instalace: MSI, NSIS, Inno Setup · Odinstalace programu přes registr nebo PowerShell
Přes 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 --silentPodle instalátoru
64bit · EXE (Inno Setup) · Všichni uživatelé
Tichá instalace
K-Lite_Codec_Pack_2010_Basic.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Vlastní složka
K-Lite_Codec_Pack_2010_Basic.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\k-lite-codec-pack-basic"32bit · EXE (Inno Setup) · Všichni uživatelé
Tichá instalace
K-Lite_Codec_Pack_2010_Basic.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Vlastní složka
K-Lite_Codec_Pack_2010_Basic.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\k-lite-codec-pack-basic"PowerShell: stáhnout, ověřit, nainstalovat
Stáhne oficiální soubor, ověří SHA256 a program nainstaluje v tichém režimu.
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