คำสั่งสำหรับติดตั้ง Modrinth App โดยไม่มีหน้าต่างถามตอบ ถอนการติดตั้ง และตรวจจับจากเครื่องมือกระจายซอฟต์แวร์ เราแสดงคำสั่งเฉพาะเมื่อแน่ใจเท่านั้น คือมาจากแมนิเฟสต์หรือค่าเริ่มต้นที่มีเอกสารของเทคโนโลยีตัวติดตั้งนั้น
คู่มือที่เกี่ยวข้อง: พารามิเตอร์ติดตั้งแบบเงียบ: MSI, NSIS, Inno Setup · ถอนการติดตั้งโปรแกรมผ่านรีจิสทรีหรือ PowerShell
ใช้ winget
PowerShell
winget install --id Modrinth.ModrinthApp -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Modrinth.ModrinthApp -e --silentwinget uninstall --id Modrinth.ModrinthApp -e --silentแยกตามตัวติดตั้ง
64 บิต · EXE (NSIS) · ผู้ใช้ปัจจุบัน
ติดตั้งแบบเงียบ
"Modrinth App_0.23.5_x64-setup.exe" /Sกำหนดโฟลเดอร์เอง
"Modrinth App_0.23.5_x64-setup.exe" /S /D=C:\Apps\modrinth-app- คีย์รีจิสทรีสำหรับถอนการติดตั้ง
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Modrinth App
- โฟลเดอร์ที่ติดตั้ง
- %LocalAppData%\Modrinth App
PowerShell: ดาวน์โหลด ตรวจสอบ ติดตั้ง
ดาวน์โหลดไฟล์ทางการ ตรวจสอบค่า SHA256 แล้วติดตั้งแบบเงียบ
install-modrinth-app.ps1
$url = 'https://launcher-files.modrinth.com/versions/0.23.5/windows/Modrinth%20App_0.23.5_x64-setup.exe'
$sha256 = 'D4E59BF0EE1DA227BA593D4614018B2084417980813DB1EFB4F02478F51299E3'
$file = Join-Path $env:TEMP 'Modrinth App_0.23.5_x64-setup.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 '/S' -Wait