Commands for installing Cortex Code 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 Snowflake.CortexCode -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Snowflake.CortexCode -e --silentwinget uninstall --id Snowflake.CortexCode -e --silentBy installer
64-bit · EXE (Inno Setup) · Current user · en-US
Silent install
Cortex-Code-win32-x64-user-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
Cortex-Code-win32-x64-user-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\cortex-code"- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{77966DA7-3314-49B4-B147-4B20E8FA4EB7}_is1
- Install folder
- %LocalAppData%\Programs\Cortex Code
- DisplayVersion
- 1.21.8
ARM64 · EXE (Inno Setup) · Current user · en-US
Silent install
Cortex-Code-win32-arm64-user-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
Cortex-Code-win32-arm64-user-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\cortex-code"- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{33B3E169-CBDA-4D8D-B14B-99215663BC93}_is1
- Install folder
- %LocalAppData%\Programs\Cortex Code
- DisplayVersion
- 1.21.8
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-cortex-code.ps1
$url = 'https://sfc-repo.snowflakecomputing.com/coco-desktop/downloads/1.21.8/Cortex-Code-win32-x64-user-setup.exe'
$sha256 = 'E4C0917145ED55F443D8C908A2A9D6DF41E34BCAF08880A18E2A0F4012AE2FC0'
$file = Join-Path $env:TEMP 'Cortex-Code-win32-x64-user-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 install-cortex-code.ps1
$url = 'https://sfc-repo.snowflakecomputing.com/coco-desktop/downloads/1.21.8/Cortex-Code-win32-arm64-user-setup.exe'
$sha256 = '6A67BA12A6E6CEB3466AC3B21D8393C247CDD6CC93AA7F5E0D5048DA675CAAF1'
$file = Join-Path $env:TEMP 'Cortex-Code-win32-arm64-user-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