Rtools ကို မေးခွန်းမမေးဘဲ ထည့်သွင်းရန်၊ ပြန်ဖယ်ရှားရန်နှင့် deployment ကိရိယာများမှ ထောက်လှမ်းရန် command များ ဖြစ်ပါသည်။ command တစ်ခုကို သေချာမှသာ ပြပါသည် — manifest မှ သို့မဟုတ် installer နည်းပညာ၏ မှတ်တမ်းတင်ထားသော မူလတန်ဖိုးမှ ဖြစ်ပါသည်။
ဆက်စပ် လမ်းညွှန်: အသံတိတ်ထည့်သွင်းခြင်း switch များ - MSI၊ NSIS၊ Inno Setup · Registry သို့မဟုတ် PowerShell ဖြင့် ပရိုဂရမ် ဖယ်ရှားနည်း
winget ဖြင့်
winget install --id RProject.Rtools -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id RProject.Rtools -e --silentwinget uninstall --id RProject.Rtools -e --silentInstaller အလိုက်
64-bit · EXE (Inno Setup) · အသုံးပြုသူအားလုံး
rtools45-6768-6492.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-rtools45-6768-6492.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\rtools"- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Rtools45_is1
ARM64 · EXE (Inno Setup) · အသုံးပြုသူအားလုံး
rtools45-aarch64-6768-6492.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-rtools45-aarch64-6768-6492.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\rtools"- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Rtools45-aarch64_is1
PowerShell - ဒေါင်းလုဒ်၊ စစ်ဆေး၊ ထည့်သွင်း
တရားဝင်ဖိုင်ကို ဒေါင်းလုဒ်လုပ်ပြီး SHA256 ကို စစ်ဆေးကာ အသံတိတ် ထည့်သွင်းပါသည်။
$url = 'https://cloud.r-project.org/bin/windows/Rtools/rtools45/files/rtools45-6768-6492.exe'
$sha256 = '614C7378150A012E70B16EDCFE5236DCEAD47F491F1F54203EA8D451C7743A75'
$file = Join-Path $env:TEMP 'rtools45-6768-6492.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 $url = 'https://cloud.r-project.org/bin/windows/Rtools/rtools45/files/rtools45-aarch64-6768-6492.exe'
$sha256 = '34A797766B3A76D07EE3B3BCB2D50B7F3FD1D4F8FAC1B25E6E11BFD183A9CCA7'
$file = Join-Path $env:TEMP 'rtools45-aarch64-6768-6492.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