Polecenia do instalacji programu Rust (GNU LLVM) bez pytań, do jego usuwania i do wykrywania w narzędziach wdrożeniowych. Polecenie jest podane tylko wtedy, gdy jest pewne: pochodzi z manifestu albo z udokumentowanych ustawień domyślnych technologii instalatora.
Powiązany poradnik: Parametry cichej instalacji: MSI, NSIS, Inno Setup · Odinstalowanie programu przez rejestr lub PowerShell
Przez winget
PowerShell
winget install --id Rustlang.Rust.GNU.LLVM -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Rustlang.Rust.GNU.LLVM -e --silentwinget uninstall --id Rustlang.Rust.GNU.LLVM -e --silentWedług instalatora
64-bit · MSI
Cicha instalacja
msiexec /i rust-1.100.0-x86_64-pc-windows-gnullvm.msi /qn /norestartZapis dziennika
msiexec /i rust-1.100.0-x86_64-pc-windows-gnullvm.msi /qn /norestart /l*v "%TEMP%\rust-gnu-llvm-install.log"Odinstalowanie
msiexec /x {198D4D0A-EA9F-419C-91FD-A3E5BCD2744B} /qn /norestart- Kod produktu MSI
- {198D4D0A-EA9F-419C-91FD-A3E5BCD2744B}
- Klucz odinstalowania w rejestrze
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{198D4D0A-EA9F-419C-91FD-A3E5BCD2744B}
- UpgradeCode
- {BA2B2E96-F3E2-4DE9-8809-38C31382CC96}
- Folder instalacji
- %ProgramFiles%\Rust
ARM64 · MSI
Cicha instalacja
msiexec /i rust-1.100.0-aarch64-pc-windows-gnullvm.msi /qn /norestartZapis dziennika
msiexec /i rust-1.100.0-aarch64-pc-windows-gnullvm.msi /qn /norestart /l*v "%TEMP%\rust-gnu-llvm-install.log"Odinstalowanie
msiexec /x {62CE9EE4-4FB6-4A26-9BB6-ABCC419ACF2C} /qn /norestart- Kod produktu MSI
- {62CE9EE4-4FB6-4A26-9BB6-ABCC419ACF2C}
- Klucz odinstalowania w rejestrze
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{62CE9EE4-4FB6-4A26-9BB6-ABCC419ACF2C}
- UpgradeCode
- {DB29CBDE-CDDF-4EC9-9C68-B6F00038EEDD}
- Folder instalacji
- %ProgramFiles(x86)%\Rust
PowerShell: pobierz, zweryfikuj, zainstaluj
Pobiera oficjalny plik, sprawdza jego SHA256 i instaluje go po cichu.
install-rust-gnu-llvm.ps1
$url = 'https://static.rust-lang.org/dist/rust-1.100.0-x86_64-pc-windows-gnullvm.msi'
$sha256 = '03B374ABC0AAB8585C6F601CF6F2F38952388FEBD12DDB2D532DD2E4BEA2CBD3'
$file = Join-Path $env:TEMP 'rust-1.100.0-x86_64-pc-windows-gnullvm.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-gnu-llvm.ps1
$url = 'https://static.rust-lang.org/dist/rust-1.100.0-aarch64-pc-windows-gnullvm.msi'
$sha256 = '356F0829D6B7C14FE17D130AC8F551929BE3B7B1D354FFC3035CB7CA21C73769'
$file = Join-Path $env:TEMP 'rust-1.100.0-aarch64-pc-windows-gnullvm.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