Wingetlywingetly
← Back to Ruby 2.7 with MSYS2

Silent install command for Ruby 2.7 with MSYS2 2.7.6-1

The exact silent switches the Ruby 2.7 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, machine scope)
rubyinstaller-devkit-2.7.6-1-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART

Run from the directory containing rubyinstaller-devkit-2.7.6-1-x64.exe. Download the installer from the Direct link below first. Run an elevated terminal (Run as Administrator) for machine-scope installs.

ArchitectureScopeTypeSilent switchesSource
x64machineEXE
Inno Setup
Default for Inno Setup
x86machineEXE
Inno Setup
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. /S for NSIS, /quiet /norestart for MSI).

Frequently asked questions

What is the silent install command for Ruby 2.7 with MSYS2?
Ruby 2.7 with MSYS2 uses EXE (Inno Setup). After downloading the installer, run: rubyinstaller-devkit-2.7.6-1-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART. The silent install switches are /VERYSILENT /SUPPRESSMSGBOXES /NORESTART.
How do I deploy Ruby 2.7 with MSYS2 via Intune or Configuration Manager?
Use winget for the cleanest path: winget install --id RubyInstallerTeam.RubyWithDevKit.2.7 --exact 2.7.6-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 2.7 with MSYS2 install page.