Kommandon för att installera Subtitle Edit 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 Nikse.SubtitleEdit -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Nikse.SubtitleEdit -e --silentwinget uninstall --id Nikse.SubtitleEdit -e --silentPer installationsfil
64-bitars · EXE (Inno Setup) · Alla användare · en-US
Tyst installation
SubtitleEdit-Windows-x64-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
SubtitleEdit-Windows-x64-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\subtitle-edit"- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B5E6D1E0-A9F3-4B2C-8E7D-1F5C3A9B0E4D}_is1
- Installationsmapp
- %ProgramFiles%\Subtitle Edit
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-subtitle-edit.ps1
$url = 'https://github.com/SubtitleEdit/subtitleedit/releases/download/v5.4.0/SubtitleEdit-Windows-x64-Setup.exe'
$sha256 = 'D7F83A1B618BB881E2F3B5B5AB7E8638B9B98007B2B5E40099BFCB7BB607FA8F'
$file = Join-Path $env:TEMP 'SubtitleEdit-Windows-x64-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