Kommandon för att installera Polyphone 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 DavyTriponney.Polyphone -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id DavyTriponney.Polyphone -e --silentwinget uninstall --id DavyTriponney.Polyphone -e --silentPer installationsfil
64-bitars · EXE (Inno Setup)
Tyst installation
Polyphone_v2.5.1-win64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
Polyphone_v2.5.1-win64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\polyphone"PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-polyphone.ps1
$url = 'https://www.polyphone.io/download/0/v126/Polyphone_v2.5.1-win64.exe'
$sha256 = '7412C77115BB6E986A165073E993BD3766FC8A28B22DAA2518ABE3DF598DCB7E'
$file = Join-Path $env:TEMP 'Polyphone_v2.5.1-win64.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