Commands for installing Coder 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 Coder.Coder -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Coder.Coder -e --silentwinget uninstall --id Coder.Coder -e --silentBy installer
64-bit · EXE (NSIS) · All users
Silent install
coder_2.38.2_windows_amd64_installer.exe /SCustom folder
coder_2.38.2_windows_amd64_installer.exe /S /D=C:\Apps\coder- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Coder
64-bit · ZIP
No installation needed (portable)
ARM64 · ZIP
No installation needed (portable)
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-coder.ps1
$url = 'https://github.com/coder/coder/releases/download/v2.38.2/coder_2.38.2_windows_amd64_installer.exe'
$sha256 = '090C9C267C2B4BACCBBBAC2FB2E41DF11CA81CA0F79A3E3797C2F09F0DFDB810'
$file = Join-Path $env:TEMP 'coder_2.38.2_windows_amd64_installer.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 '/S' -Wait