Commands for installing ShareX 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 ShareX.ShareX -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ShareX.ShareX -e --silentwinget uninstall --id ShareX.ShareX -e --silentBy installer
64-bit · EXE (Inno Setup) · Current user
Silent install
ShareX-22.5.0-setup-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
ShareX-22.5.0-setup-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\sharex"- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\82E6AC09-0FEF-4390-AD9F-0DD3F5561EFC_is1
64-bit · EXE (Inno Setup) · All users
Silent install
ShareX-22.5.0-setup-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
ShareX-22.5.0-setup-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\sharex"- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\82E6AC09-0FEF-4390-AD9F-0DD3F5561EFC_is1
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-sharex.ps1
$url = 'https://github.com/ShareX/ShareX/releases/download/v22.5.0/ShareX-22.5.0-setup-x64.exe'
$sha256 = '0AC699FDE6D29C53EC135864509A7B802FA2E9004484F34165095E5A744D4C0F'
$file = Join-Path $env:TEMP 'ShareX-22.5.0-setup-x64.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-sharex.ps1
$url = 'https://github.com/ShareX/ShareX/releases/download/v22.5.0/ShareX-22.5.0-setup-x64.exe'
$sha256 = '0AC699FDE6D29C53EC135864509A7B802FA2E9004484F34165095E5A744D4C0F'
$file = Join-Path $env:TEMP 'ShareX-22.5.0-setup-x64.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