oneclick / rubyinstaller2

MSYS2 based RubyInstaller for Windows
https://rubyinstaller.org
BSD 3-Clause "New" or "Revised" License
654 stars 249 forks source link

32 and 64 bit installations using the same registry section #242

Closed hurricup closed 1 year ago

hurricup commented 3 years ago

What problems are you experiencing?

Only one registry entry may present when 32 and 64 bit rubies are installed

Steps to reproduce

  1. Install ruby 2.7 64 bit.
  2. Ensure data is correct at HKEY_CURRENT_USER\SOFTWARE\RubyInstaller\MRI\2.7.4
  3. Install same ruby version 32 bit
  4. Ensure that data was overwritten with 32-bit installation information.
mohits commented 3 years ago

Hi @hurricup - do you imagine that the problem is when we try to uninstall the package, or something else? In general, I have found that Ruby works fine as long as the Ruby you want to use is ahead in the PATH on WIndows, but I'm not sure if the registry entries have any specific role. I don't use the 32-bit Ruby on my side, but I'm quite sure that your observation must be correct.

hurricup commented 3 years ago

In my personal case we use registry to enumerate rubies installed on our CI machine. But still this feels not right, make this registy entry kinda meaningless. But yes, I'm not aware if this affects anything else.

mohits commented 3 years ago

Thanks for the reply. Hopefully, someone else has an opinion on whether that could be changed.

As for multiple Rubies, on Windows, I use pik which stores a file in the user profile folder for the Rubies that you have identified to it. In case you're not familiar with pik, I have a related post here: https://notepad.onghu.com/2021/ruby3-windows-pik-multiple-installations/