I wanted to play around with the latest Ruby on windows, so I installed the MSYS2 toolkit first. After this I ran the RubyInstaller for version 2.4.2 and it was able to find out that MSYS2 is already installed on my system.
I checked in the environment variables, if there is an entry for the same, to my surprise there was no such entry. I also tried to search in the windows registry, but didn't found any clue.
Can someone explain me how RubyInstaller is handling that?
You can check in cmd or powershell for its path as:
or search within all environment variables as sometimes limited entries could be shown over system properties as:
If its not found,then for x86_64 package of MSYS2
Set environment PATH to
C:\msys64\usr\bin