Commands for installing Rust Hash Sum 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 rhashsum.RustHashSum -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id rhashsum.RustHashSum -e --silentwinget uninstall --id rhashsum.RustHashSum -e --silentBy installer
64-bit · EXE (NSIS) · Current user
Silent install
rust-hash-sum_4.7.0_x64-setup.exe /SCustom folder
rust-hash-sum_4.7.0_x64-setup.exe /S /D=C:\Apps\rust-hash-sum- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\rust-hash-sum
- Install folder
- %LocalAppData%/rust-hash-sum
64-bit · MSI · All users
Silent install
msiexec /i rust-hash-sum_4.7.0_x64_en-US.msi /qn /norestartWrite a log
msiexec /i rust-hash-sum_4.7.0_x64_en-US.msi /qn /norestart /l*v "%TEMP%\rust-hash-sum-install.log"Uninstall
msiexec /x {E89D3FEB-1090-4566-8387-D1E3FD19463D} /qn /norestart- MSI product code
- {E89D3FEB-1090-4566-8387-D1E3FD19463D}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{E89D3FEB-1090-4566-8387-D1E3FD19463D}
- UpgradeCode
- {A2F02804-A057-5B43-AC95-AFB9DDC4C36D}
- Install folder
- %ProgramFiles%/rust-hash-sum
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-rust-hash-sum.ps1
$url = 'https://github.com/oop7/rhashsum/releases/download/v4.5.7/rust-hash-sum_4.7.0_x64-setup.exe'
$sha256 = '26F9808C8A20EAEA6D14AF77C47A446078D308CF2279A5E2F7BFA6F2B975ACF2'
$file = Join-Path $env:TEMP 'rust-hash-sum_4.7.0_x64-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 '/S' -Wait install-rust-hash-sum.ps1
$url = 'https://github.com/oop7/rhashsum/releases/download/v4.5.7/rust-hash-sum_4.7.0_x64_en-US.msi'
$sha256 = '081409AEDF6AFD6CE0B280FF4B956100B158190B5B8347C0EF8F8DD952340303'
$file = Join-Path $env:TEMP 'rust-hash-sum_4.7.0_x64_en-US.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait