Kommandon för att installera Ruby 4.0 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 RubyInstallerTeam.Ruby.4.0 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id RubyInstallerTeam.Ruby.4.0 -e --silentwinget uninstall --id RubyInstallerTeam.Ruby.4.0 -e --silentPer installationsfil
64-bitars · EXE (Inno Setup) · Aktuell användare
Tyst installation
rubyinstaller-4.0.9-1-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
rubyinstaller-4.0.9-1-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\ruby-4-0"- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\RubyInstaller-4.0-x64-mingw-ucrt_is1
64-bitars · EXE (Inno Setup) · Alla användare
Tyst installation
rubyinstaller-4.0.9-1-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
rubyinstaller-4.0.9-1-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\ruby-4-0"- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\RubyInstaller-4.0-x64-mingw-ucrt_is1
ARM64 · EXE (Inno Setup) · Aktuell användare
Tyst installation
rubyinstaller-4.0.9-1-arm.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
rubyinstaller-4.0.9-1-arm.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\ruby-4-0"- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\RubyInstaller-4.0-aarch64-mingw-ucrt_is1
ARM64 · EXE (Inno Setup) · Alla användare
Tyst installation
rubyinstaller-4.0.9-1-arm.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
rubyinstaller-4.0.9-1-arm.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\ruby-4-0"- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\RubyInstaller-4.0-aarch64-mingw-ucrt_is1
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-ruby-4-0.ps1
$url = 'https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-4.0.9-1/rubyinstaller-4.0.9-1-x64.exe'
$sha256 = '7E079519349B06C445D6993542AE0B6E186CE1D9F3A24029E4AAB004DBA3BEE2'
$file = Join-Path $env:TEMP 'rubyinstaller-4.0.9-1-x64.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-ruby-4-0.ps1
$url = 'https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-4.0.9-1/rubyinstaller-4.0.9-1-x64.exe'
$sha256 = '7E079519349B06C445D6993542AE0B6E186CE1D9F3A24029E4AAB004DBA3BEE2'
$file = Join-Path $env:TEMP 'rubyinstaller-4.0.9-1-x64.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-ruby-4-0.ps1
$url = 'https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-4.0.9-1/rubyinstaller-4.0.9-1-arm.exe'
$sha256 = '88FC8027F1A11D96CE7CAB71E5F44BCC57ECE9947DDF2F08EB6A30D316C838D1'
$file = Join-Path $env:TEMP 'rubyinstaller-4.0.9-1-arm.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-ruby-4-0.ps1
$url = 'https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-4.0.9-1/rubyinstaller-4.0.9-1-arm.exe'
$sha256 = '88FC8027F1A11D96CE7CAB71E5F44BCC57ECE9947DDF2F08EB6A30D316C838D1'
$file = Join-Path $env:TEMP 'rubyinstaller-4.0.9-1-arm.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait