Commands for installing Slack 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 SlackTechnologies.Slack -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id SlackTechnologies.Slack -e --silentwinget uninstall --id SlackTechnologies.Slack -e --silentBy installer
64-bit · EXE · Current user
Silent install
SlackSetup.exe --silent- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\slack
64-bit · MSIX
Silent install
Add-AppxPackage -Path Slack.msixUninstall
Get-AppxPackage -Name com.tinyspeck.slackdesktop | Remove-AppxPackageARM64 · MSIX
Silent install
Add-AppxPackage -Path Slack.msixUninstall
Get-AppxPackage -Name com.tinyspeck.slackdesktop | Remove-AppxPackagePowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-slack.ps1
$url = 'https://downloads.slack-edge.com/desktop-releases/windows/x64/4.53.292/SlackSetup.exe'
$sha256 = '6FE54526BB9548CA2946E9F17F1DE0B277C698F1E27745C4415B725D269F2749'
$file = Join-Path $env:TEMP 'SlackSetup.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 '--silent' -Wait install-slack.ps1
$url = 'https://downloads.slack-edge.com/desktop-releases/windows/x64/4.53.292/Slack.msix'
$sha256 = '2117423CDC840D9E842AAA85E253366892D817332E7B4A7249DF6AF693D11EE6'
$file = Join-Path $env:TEMP 'Slack.msix'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file install-slack.ps1
$url = 'https://downloads.slack-edge.com/desktop-releases/windows/arm64/4.53.292/Slack.msix'
$sha256 = 'BBBD094FBAD150FB93A4132281F41D7674581BF7A03AB3ED25FBDFD1E217EF12'
$file = Join-Path $env:TEMP 'Slack.msix'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file