Kommandon för att installera Rustty utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med 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 --silentPer installationsfil
64-bitars · MSI · Alla användare · en-US
Tyst installation
msiexec /i Rustty_2.25.0_x64.msi /qn /norestartSkriv en logg
msiexec /i Rustty_2.25.0_x64.msi /qn /norestart /l*v "%TEMP%\rustty-install.log"Avinstallation
msiexec /x {3254566C-5CB4-446C-9D33-9F0914164807} /qn /norestart- MSI-produktkod
- {3254566C-5CB4-446C-9D33-9F0914164807}
- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{3254566C-5CB4-446C-9D33-9F0914164807}
- UpgradeCode
- {3B253B6F-30AE-53D8-984C-60148C2CAC85}
- Installationsmapp
- %ProgramFiles%/Rustty
- DisplayVersion
- 2.25.0
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-rustty.ps1
$url = 'https://github.com/Aleixenandros/Rustty/releases/download/v2.25.0/Rustty_2.25.0_x64.msi'
$sha256 = 'ACD019B191787E639B5F3DF814F92BB2ADCF525948A68D41EB86A320B24E82C3'
$file = Join-Path $env:TEMP 'Rustty_2.25.0_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