Les commandes pour installer K-Lite Codec Pack Basic sans aucune question, le désinstaller et le détecter depuis un outil de déploiement. Une commande n’apparaît que si elle est certaine : issue du manifeste ou valeur par défaut documentée de la technologie d’installation.
Guide associé: Installation silencieuse : MSI, NSIS, Inno Setup · Désinstaller un programme via le registre ou PowerShell
Avec 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 --silentPar installateur
64 bits · EXE (Inno Setup) · Tous les utilisateurs
Installation silencieuse
K-Lite_Codec_Pack_2010_Basic.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Dossier personnalisé
K-Lite_Codec_Pack_2010_Basic.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\k-lite-codec-pack-basic"32 bits · EXE (Inno Setup) · Tous les utilisateurs
Installation silencieuse
K-Lite_Codec_Pack_2010_Basic.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Dossier personnalisé
K-Lite_Codec_Pack_2010_Basic.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\k-lite-codec-pack-basic"PowerShell : télécharger, vérifier, installer
Télécharge le fichier officiel, vérifie son empreinte SHA256 et l’installe en mode silencieux.
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