Kommandon för att installera Session utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med 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 --silentPer installationsfil
64-bitars · EXE (NSIS) · Aktuell användare
Tyst installation
session-desktop-win-x64-1.18.3.exe /SEgen mapp
session-desktop-win-x64-1.18.3.exe /S /D=C:\Apps\session- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\f1339da8-b3f2-5116-b780-aafa611bc7f7
64-bitars · EXE (NSIS) · Alla användare
Tyst installation
session-desktop-win-x64-1.18.3.exe /SEgen mapp
session-desktop-win-x64-1.18.3.exe /S /D=C:\Apps\session- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\f1339da8-b3f2-5116-b780-aafa611bc7f7
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
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