Kommandon för att installera ml-player utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med winget
PowerShell
winget install --id MarcoML.ml-player -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id MarcoML.ml-player -e --silentwinget uninstall --id MarcoML.ml-player -e --silentPer installationsfil
64-bitars · EXE (Inno Setup)
Tyst installation
ml-player-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
ml-player-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\ml-player"PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-ml-player.ps1
$url = 'https://github.com/marcomolinaleija/ml-player-releases/releases/download/installer-3.8.6/ml-player-setup.exe'
$sha256 = 'BF25582F559619D55D1B491FADA9463F7F6D96C138C400FDA15508685BB4484C'
$file = Join-Path $env:TEMP 'ml-player-setup.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