MSYS2 Installer silent install and uninstall

Software Distribution and Building Platform for Windows

EXE x64arm64 Updated 19 Oct 2026
Vendor
The MSYS2 Developers
Category
Developer Tools
Installer
Custom EXE installer
Architecture
x64, arm64
Checked version
20260611
winget ID
MSYS2.MSYS2
License
BSD-3-Clause
Download
Official download

Silent install

msys2-x86_64-20260611.exe install --confirm-command --root "C:\msys64" AllUsers=true
  1. Download the installer from the direct download link.
  2. Open an elevated Command Prompt: right-click Command Prompt and select Run as administrator.
  3. Change to the folder with the installer, for example cd C:\Temp.
  4. Run the command above. Adjust the file name if you downloaded a different version.

Or install with winget

winget install --id MSYS2.MSYS2 --exact --silent --scope machine --accept-package-agreements --accept-source-agreements

Silent uninstall

winget
winget uninstall --id MSYS2.MSYS2 --exact --silent --accept-source-agreements

Run the command from an elevated Command Prompt.

About the Custom EXE installer installer

The vendor uses its own installer, so only the switches listed above are documented. Test them before mass deployment.

Deploy MSYS2 Installer with Microsoft Intune

Package the installer as a Win32 app (.intunewin) and use these settings:

Install commandmsys2-x86_64-20260611.exe install --confirm-command --root "C:\msys64" AllUsers=true
Uninstall command Use the uninstaller from the install folder; winget is not available to the SYSTEM account by default.
Install behaviorSystem

More developer tools apps