Ukazi za namestitev programa Rust (GNU) brez vprašanj, za njegovo odstranitev in za zaznavanje v orodjih za uvajanje. Ukaz je prikazan le, kadar je zanesljiv: iz manifesta ali iz dokumentiranih privzetih stikal tehnologije namestitvene datoteke.
Povezan vodnik: Stikala za tiho namestitev: MSI, NSIS, Inno Setup · Odstranitev programa prek registra ali PowerShella
Z wingetom
PowerShell
winget install --id Rustlang.Rust.GNU -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Rustlang.Rust.GNU -e --silentwinget uninstall --id Rustlang.Rust.GNU -e --silentPo namestitvenih datotekah
64-bitno · MSI · Vsi uporabniki
Tiha namestitev
msiexec /i rust-1.100.0-x86_64-pc-windows-gnu.msi /qn /norestartZapiši dnevnik
msiexec /i rust-1.100.0-x86_64-pc-windows-gnu.msi /qn /norestart /l*v "%TEMP%\rust-gnu-install.log"Odstranitev
msiexec /x {82A947BB-BAD1-4361-8D07-3ACA1499AB60} /qn /norestart- Koda izdelka MSI
- {82A947BB-BAD1-4361-8D07-3ACA1499AB60}
- Ključ za odstranitev v registru
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{82A947BB-BAD1-4361-8D07-3ACA1499AB60}
- UpgradeCode
- {B440B077-F8D1-4730-8E1D-D6D37702B4CE}
- Namestitvena mapa
- %ProgramFiles%\Rust
PowerShell: prenesi, preveri, namesti
Prenese uradno datoteko, preveri SHA256 in jo tiho namesti.
install-rust-gnu.ps1
$url = 'https://static.rust-lang.org/dist/rust-1.100.0-x86_64-pc-windows-gnu.msi'
$sha256 = 'D78056D2B6E82418583D4849E689C780EB393FC73CF09E98EAF205E2CD778B17'
$file = Join-Path $env:TEMP 'rust-1.100.0-x86_64-pc-windows-gnu.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