The RubyInstaller project provides a self-contained Windows-based installer that includes a Ruby-language execution environment and a baseline set of required RubyGems and extensions. This article will serve as an informative guide and give you a clear understanding of how to perform a silent installation of RubyInstaller for Windows from the command line using the EXE installer.
How to Install RubyInstaller for Windows Silently
RubyInstaller for Windows (32-bit) Silent Install (Versions 2.4.1 & Newer)
- Navigate to: https://rubyinstaller.org/downloads/
- Select the 32-bit version of your choice
- Download the EXE to a folder created at (C:\Downloads)
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Navigate to the C:\Downloads folder
- Enter the following command:
rubyinstaller-w.x.y-z-x86.exe /VERYSILENT /NORESTART
- Press Enter
After a few moments you will find RubyInstaller entries in the Start Menu, Installation Directory, and Programs and Features in the Control Panel.
Software Title: | Ruby |
Vendor: | RubyInstaller Team |
Version: | 2.4.1 & Newer |
Architecture: | x86 |
Installer Type: | EXE |
Silent Install Switch: | rubyinstaller-w.x.y-z-x86.exe /VERYSILENT /NORESTART |
Silent Uninstall Switch: | "%SystemDrive%\Rubyxx\unins000.exe" /VERYSILENT /NORESTART |
Download Link: | https://rubyinstaller.org/downloads/ |
RubyInstaller for Windows (64-bit) Silent Install (Versions 2.4.1 & Newer)
- Navigate to: https://rubyinstaller.org/downloads/
- Select the 64-bit version of your choice
- Download the EXE to a folder created at (C:\Downloads)
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Navigate to the C:\Downloads folder
- Enter the following command:
rubyinstaller-w.x.y-z-x64.exe /VERYSILENT /NORESTART
- Press Enter
After a few moments you will find RubyInstaller entries in the Start Menu, Installation Directory, and Programs and Features in the Control Panel.
Software Title: | Ruby |
Vendor: | RubyInstaller Team |
Version: | 2.4.1 & Newer |
Architecture: | x64 |
Installer Type: | EXE |
Silent Install Switch: | rubyinstaller-w.x.y-z-x64.exe /VERYSILENT /NORESTART |
Silent Uninstall Switch: | "%SystemDrive%\Rubyxx-x64\unins000.exe" /VERYSILENT /NORESTART |
Download Link: | https://rubyinstaller.org/downloads/ |
RubyInstaller for Windows (32-bit) Silent Install (Versions 2.3.3 & Older)
- Navigate to: https://rubyinstaller.org/downloads/archives/
- Select the 32-bit version of your choice
- Download the EXE to a folder created at (C:\Downloads)
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Navigate to the C:\Downloads folder
- Enter the following command:
rubyinstaller-x.y.z.exe /VERYSILENT /NORESTART /TASKS="assocfiles,modpath"
- Press Enter
After a few moments you will find RubyInstaller entries in the Start Menu, Installation Directory, and Programs and Features in the Control Panel.
Software Title: | Ruby |
Vendor: | RubyInstaller Team |
Version: | 2.3.3 & Older |
Architecture: | x86 |
Installer Type: | EXE |
Silent Install Switch: | rubyinstaller-x.y.z.exe /VERYSILENT /NORESTART /TASKS="assocfiles,modpath" |
Silent Uninstall Switch: | "%SystemDrive%\Rubyxx\unins000.exe" /VERYSILENT /NORESTART |
Download Link: | https://rubyinstaller.org/downloads/archives/ |
RubyInstaller for Windows (64-bit) Silent Install (Versions 2.3.3 & Older)
- Navigate to: https://rubyinstaller.org/downloads/archives/
- Select the 64-bit version of your choice
- Download the EXE to a folder created at (C:\Downloads)
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Navigate to the C:\Downloads folder
- Enter the following command:
rubyinstaller-x.y.z-x64.exe /VERYSILENT /NORESTART /TASKS="assocfiles,modpath"
- Press Enter
After a few moments you will find RubyInstaller entries in the Start Menu, Installation Directory, and Programs and Features in the Control Panel.
Software Title: | Ruby |
Vendor: | RubyInstaller Team |
Version: | 2.3.3 & Older |
Architecture: | x64 |
Installer Type: | EXE |
Silent Install Switch: | rubyinstaller-x.y.z-x64.exe /VERYSILENT /NORESTART /TASKS="assocfiles,modpath" |
Silent Uninstall Switch: | "%SystemDrive%\Rubyxx-x64\unins000.exe" /VERYSILENT /NORESTART |
Download Link: | https://rubyinstaller.org/downloads/archives/ |
The information above provides a quick overview of the software title, vendor, silent install, and silent uninstall switches. The download links provided take you directly to the vendors website. Continue reading if you are interested in additional details and configurations.
Additional Configurations
Create an Installation Log File
RubyInstaller offers the option to generate a log file during installation to assist with troubleshooting should any problems arise. You can use the following command to create a verbose log file with details about the installation.
RubyInstaller for Windows (32-bit) Silent Install with Logging
rubyinstaller-w.x.y-z-x86.exe /VERYSILENT /NORESTART /LOG="%WINDIR%\Temp\Rubyx86-Install.log" |
RubyInstaller for Windows (64-bit) Silent Install with Logging
rubyinstaller-w.x.y-z-x64.exe /VERYSILENT /NORESTART /LOG="%WINDIR%\Temp\Rubyx64-Install.log" |
Change Default Installation Directory
You can also change the default installation directory by using the following command line parameters. In this example, I’m installing Ruby to “%ProgramFiles%\Ruby”
RubyInstaller for Windows (32-bit)
rubyinstaller-w.x.y-z-x86.exe /DIR="%ProgramFiles%\Ruby" /VERYSILENT /NORESTART |
RubyInstaller for Windows (64-bit)
rubyinstaller-w.x.y-z-x64.exe /DIR="%ProgramFiles%\Ruby" /VERYSILENT /NORESTART |
How to Uninstall RubyInstaller for Windows Silently
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Enter one of the following commands:
RubyInstaller for Windows (32-bit) Silent Uninstall (EXE)
"%SystemDrive%\Rubyxx\unins000.exe" /VERYSILENT /NORESTART |
RubyInstaller for Windows (64-bit) Silent Uninstall (EXE)
"%SystemDrive%\Rubyxx-x64\unins000.exe" /VERYSILENT /NORESTART |
Always make sure to test everything in a development environment prior to implementing anything into production. The information in this article is provided “As Is” without warranty of any kind.