← Back to Ruby 3.1 with MSYS2
Silent install command for Ruby 3.1 with MSYS2 3.1.7-1
The exact silent switches the Ruby 3.1 with MSYS2 installer accepts, plus a one-line command you can paste into a script, Intune Win32 app, or Configuration Manager package.
One-line silent install (x64, user scope)
rubyinstaller-devkit-3.1.7-1-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /CURRENTUSER
Run from the directory containing rubyinstaller-devkit-3.1.7-1-x64.exe. Download the installer from the Direct link below first.
| Architecture | Scope | Type | Silent switches | Source |
|---|---|---|---|---|
| x64 | user | EXE Inno Setup | Custom: /CURRENTUSER | Default for Inno Setup |
| x64 | machine | EXE Inno Setup | Custom: /ALLUSERS | Default for Inno Setup |
| x86 | user | EXE Inno Setup | Custom: /CURRENTUSER | Default for Inno Setup |
| x86 | machine | EXE Inno Setup | Custom: /ALLUSERS | Default for Inno Setup |
- Declared by publisher means the switches come straight from the winget manifest the publisher (or community maintainer) submitted to microsoft/winget-pkgs.
- Default for {type} means the manifest doesn't specify silent switches, so the framework's standard switches are shown (e.g.
/Sfor NSIS,/quiet /norestartfor MSI).
Frequently asked questions
What is the silent install command for Ruby 3.1 with MSYS2?
Ruby 3.1 with MSYS2 uses EXE (Inno Setup). After downloading the installer, run: rubyinstaller-devkit-3.1.7-1-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /CURRENTUSER. The silent install switches are /VERYSILENT /SUPPRESSMSGBOXES /NORESTART.
How do I deploy Ruby 3.1 with MSYS2 via Intune or Configuration Manager?
Use winget for the cleanest path: winget install --id RubyInstallerTeam.RubyWithDevKit.3.1 --exact 3.1.7-1 --silent --accept-package-agreements --accept-source-agreements. If winget isn't viable in your environment, package the publisher's installer directly using the silent switches above.
Prefer the winget route? See the full Ruby 3.1 with MSYS2 install page.