Commands for installing Codespace 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 TristanEdwards.Codespace -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id TristanEdwards.Codespace -e --silentwinget uninstall --id TristanEdwards.Codespace -e --silentBy installer
64-bit · EXE (NSIS) · Current user
Silent install
Codespace-Setup-1.6.1.exe /SCustom folder
Codespace-Setup-1.6.1.exe /S /D=C:\Apps\codespace- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\0c108a88-c98a-575f-b77e-4d8844291bbf
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-codespace.ps1
$url = 'https://codespace.app/updates/Codespace-Setup-1.6.1.exe'
$sha256 = 'C478762538DD24D56034416BD4F58F545B97197C761B219E6B94899250842C2D'
$file = Join-Path $env:TEMP 'Codespace-Setup-1.6.1.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