Commands for installing Rustty 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 rustty.Rustty -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id rustty.Rustty -e --silentwinget uninstall --id rustty.Rustty -e --silentBy installer
64-bit · MSI · All users · en-US
Silent install
msiexec /i Rustty_2.29.1_x64.msi /qn /norestartWrite a log
msiexec /i Rustty_2.29.1_x64.msi /qn /norestart /l*v "%TEMP%\rustty-install.log"Uninstall
msiexec /x {D5251E3B-CD7D-4501-8D1E-8DA4E6E95263} /qn /norestart- MSI product code
- {D5251E3B-CD7D-4501-8D1E-8DA4E6E95263}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{D5251E3B-CD7D-4501-8D1E-8DA4E6E95263}
- UpgradeCode
- {3B253B6F-30AE-53D8-984C-60148C2CAC85}
- Install folder
- %ProgramFiles%/Rustty
- DisplayVersion
- 2.29.1
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-rustty.ps1
$url = 'https://github.com/Aleixenandros/Rustty/releases/download/v2.29.1/Rustty_2.29.1_x64.msi'
$sha256 = '54A9D111D92511DFC77BF153CB52A62A3CFADF7CA1CDC7194FE4F3A304DC55A9'
$file = Join-Path $env:TEMP 'Rustty_2.29.1_x64.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