Befehle, um Rust (MSVC) ohne Rückfragen zu installieren, wieder zu entfernen und in Verteilungswerkzeugen zu erkennen. Ein Befehl erscheint nur, wenn er feststeht: aus dem Manifest oder als dokumentierter Standard der jeweiligen Installer-Technik.
Passende Anleitung: Silent-Install-Parameter: MSI, NSIS, Inno Setup · Programm über Registry oder PowerShell deinstallieren
Mit winget
PowerShell
winget install --id Rustlang.Rust.MSVC -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Rustlang.Rust.MSVC -e --silentwinget uninstall --id Rustlang.Rust.MSVC -e --silentNach Installer
64-Bit · MSI · Alle Benutzer
Stille Installation
msiexec /i rust-1.99.1-x86_64-pc-windows-msvc.msi /qn /norestartProtokoll schreiben
msiexec /i rust-1.99.1-x86_64-pc-windows-msvc.msi /qn /norestart /l*v "%TEMP%\rust-msvc-install.log"Deinstallation
msiexec /x {148B6454-CC8F-45E7-B84A-7C22CCB69B86} /qn /norestart- MSI-Produktcode
- {148B6454-CC8F-45E7-B84A-7C22CCB69B86}
- Deinstallationsschlüssel in der Registry
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{148B6454-CC8F-45E7-B84A-7C22CCB69B86}
- UpgradeCode
- {123039F9-68E3-44F1-AC9F-C78ADD4D0723}
- Installationsordner
- %ProgramFiles%/Rust
ARM64 · MSI · Alle Benutzer
Stille Installation
msiexec /i rust-1.99.1-aarch64-pc-windows-msvc.msi /qn /norestartProtokoll schreiben
msiexec /i rust-1.99.1-aarch64-pc-windows-msvc.msi /qn /norestart /l*v "%TEMP%\rust-msvc-install.log"Deinstallation
msiexec /x {D3A45B42-1B17-44DA-8C75-EDECD80879BF} /qn /norestart- MSI-Produktcode
- {D3A45B42-1B17-44DA-8C75-EDECD80879BF}
- Deinstallationsschlüssel in der Registry
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{D3A45B42-1B17-44DA-8C75-EDECD80879BF}
- UpgradeCode
- {5805719C-45E9-4CF6-9CE7-1E8B57F3C243}
- Installationsordner
- %ProgramFiles(x86)%/Rust
32-Bit · MSI · Alle Benutzer
Stille Installation
msiexec /i rust-1.99.1-i686-pc-windows-msvc.msi /qn /norestartProtokoll schreiben
msiexec /i rust-1.99.1-i686-pc-windows-msvc.msi /qn /norestart /l*v "%TEMP%\rust-msvc-install.log"Deinstallation
msiexec /x {37BA825D-41BC-4FB5-97E6-016D2F1BC19A} /qn /norestart- MSI-Produktcode
- {37BA825D-41BC-4FB5-97E6-016D2F1BC19A}
- Deinstallationsschlüssel in der Registry
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{37BA825D-41BC-4FB5-97E6-016D2F1BC19A}
- UpgradeCode
- {5805719C-45E9-4CF6-9CE7-1E8B57F3C243}
- Installationsordner
- %ProgramFiles(x86)%/Rust
PowerShell: herunterladen, prüfen, installieren
Lädt die offizielle Datei herunter, prüft den SHA256-Hash und installiert still.
install-rust-msvc.ps1
$url = 'https://static.rust-lang.org/dist/rust-1.99.1-x86_64-pc-windows-msvc.msi'
$sha256 = '11D5B1D217277B0C9CD1688B8682F046CF0D6778C58D8894309104F0FE860F23'
$file = Join-Path $env:TEMP 'rust-1.99.1-x86_64-pc-windows-msvc.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 install-rust-msvc.ps1
$url = 'https://static.rust-lang.org/dist/rust-1.99.1-aarch64-pc-windows-msvc.msi'
$sha256 = '9E1ABBFF9227FD4CD3849792D00946B799FB75E67067E7C8DD9FD21AB805B28C'
$file = Join-Path $env:TEMP 'rust-1.99.1-aarch64-pc-windows-msvc.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 install-rust-msvc.ps1
$url = 'https://static.rust-lang.org/dist/rust-1.99.1-i686-pc-windows-msvc.msi'
$sha256 = 'A0810F1743C4D8CA46DD9607245B048AAC4B785F3D916669AA8FFDD30D51609F'
$file = Join-Path $env:TEMP 'rust-1.99.1-i686-pc-windows-msvc.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