Commands for installing Sublime Text 4 (Dev) without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id SublimeHQ.SublimeText.4.Dev -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id SublimeHQ.SublimeText.4.Dev -e --silentwinget uninstall --id SublimeHQ.SublimeText.4.Dev -e --silentBy installer
64-bit · EXE (Inno Setup) · All users · en-US
Silent install
sublime_text_build_4214_x64_setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
sublime_text_build_4214_x64_setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\sublime-text-4-dev"- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Sublime Text_is1
- Install folder
- %ProgramFiles%\Sublime Text
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-sublime-text-4-dev.ps1
$url = 'https://download.sublimetext.com/sublime_text_build_4214_x64_setup.exe'
$sha256 = 'D49428C47A3371CC322EA7B81B2EE43B9BEE2CDA674853EBE532EA43BF2F6359'
$file = Join-Path $env:TEMP 'sublime_text_build_4214_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