Ruby 4.0 programını soru sormadan kurmak, kaldırmak ve dağıtım araçlarında algılamak için komutlar. Bir komut yalnızca kesinse gösterilir: manifestteki anahtar ya da kurulum teknolojisinin belgelenmiş varsayılanı.
İlgili rehber: Sessiz kurulum parametreleri: MSI, NSIS, Inno Setup · Kayıt defteri veya PowerShell ile program kaldırma
winget ile
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 --silentKurulum dosyasına göre
64 bit · EXE (Inno Setup) · Yalnızca bu kullanıcı
Sessiz kurulum
rubyinstaller-4.0.9-1-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Farklı klasör
rubyinstaller-4.0.9-1-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\ruby-4-0"- Kaldırma kayıt defteri anahtarı
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\RubyInstaller-4.0-x64-mingw-ucrt_is1
64 bit · EXE (Inno Setup) · Tüm kullanıcılar
Sessiz kurulum
rubyinstaller-4.0.9-1-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Farklı klasör
rubyinstaller-4.0.9-1-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\ruby-4-0"- Kaldırma kayıt defteri anahtarı
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\RubyInstaller-4.0-x64-mingw-ucrt_is1
ARM64 · EXE (Inno Setup) · Yalnızca bu kullanıcı
Sessiz kurulum
rubyinstaller-4.0.9-1-arm.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Farklı klasör
rubyinstaller-4.0.9-1-arm.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\ruby-4-0"- Kaldırma kayıt defteri anahtarı
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\RubyInstaller-4.0-aarch64-mingw-ucrt_is1
ARM64 · EXE (Inno Setup) · Tüm kullanıcılar
Sessiz kurulum
rubyinstaller-4.0.9-1-arm.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Farklı klasör
rubyinstaller-4.0.9-1-arm.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\ruby-4-0"- Kaldırma kayıt defteri anahtarı
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\RubyInstaller-4.0-aarch64-mingw-ucrt_is1
PowerShell: indir, doğrula, kur
Resmî dosyayı indirir, SHA256 değerini doğrular ve sessizce kurar.
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