Ordres per instal·lar MediathekView 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
winget install --id MediathekViewTeam.MediathekView -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id MediathekViewTeam.MediathekView -e --silentwinget uninstall --id MediathekViewTeam.MediathekView -e --silentPer instal·lador
64 bits · EXE · Tots els usuaris
MediathekView-14.5.0-win.exe -qPowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
$url = 'https://download.mediathekview.de/stabil/MediathekView-14.5.0-win.exe'
$sha256 = '3D2B3AB8F34BC5BFFEAD604D2F561B891DED54D742C26A72F93EFAD027088933'
$file = Join-Path $env:TEMP 'MediathekView-14.5.0-win.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 '-q' -Wait