Commands for installing Session 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 Session.Session -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Session.Session -e --silentwinget uninstall --id Session.Session -e --silentBy installer
64-bit · EXE (NSIS) · Current user
Silent install
session-desktop-win-x64-1.18.3.exe /SCustom folder
session-desktop-win-x64-1.18.3.exe /S /D=C:\Apps\session- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\f1339da8-b3f2-5116-b780-aafa611bc7f7
64-bit · EXE (NSIS) · All users
Silent install
session-desktop-win-x64-1.18.3.exe /SCustom folder
session-desktop-win-x64-1.18.3.exe /S /D=C:\Apps\session- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\f1339da8-b3f2-5116-b780-aafa611bc7f7
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-session.ps1
$url = 'https://github.com/session-foundation/session-desktop/releases/download/v1.18.3/session-desktop-win-x64-1.18.3.exe'
$sha256 = '479F2A990A8E53F24D1CDB7B9055EA89AD0C94BE4D62BEF7710CE196444DC8D9'
$file = Join-Path $env:TEMP 'session-desktop-win-x64-1.18.3.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 install-session.ps1
$url = 'https://github.com/session-foundation/session-desktop/releases/download/v1.18.3/session-desktop-win-x64-1.18.3.exe'
$sha256 = '479F2A990A8E53F24D1CDB7B9055EA89AD0C94BE4D62BEF7710CE196444DC8D9'
$file = Join-Path $env:TEMP 'session-desktop-win-x64-1.18.3.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