From: Curt Hibbs Date: 2004-07-02T23:13:16+09:00 Subject: Registry Entries [was [ANN] Ruby Installer for Windows 1.8.2-14 Release Candidate] Lothar Scholz wrote: > > Is it possible to use a schema like python for adding information to > the registry about installed ruby versions. Every tool writer (like > me) needs this to detect the core library etc and also installer > programs for libraries should use it to install there stuff in the > right ruby directory. > > Python installs under: > > "HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\{major}.{minor}" > > at least two things: > > "InstallPath", and "Help\Main Python Documentation" > > The later one would be the pragmatic programmer *.chm file. > It would be a great help if we could do the same. > What's your oppinion about this ? This is fine with me. When there are multiple versions installed, there also needs to be a pointer to the default installation (the one that is on the path). wxRuby currently uses this to decide where to install itself. Is there anyone out there (other than wxRuby) that is using the current registry schema? How's this look (as an example relative to "HKEY_LOCAL_MACHINE\SOFTWARE"): Ruby\RubyCore\default = "182-14" Ruby\RubyCore\182-14\InstallPath = "c:\ruby" Ruby\RubyCore\182-14\InstallDate = "June 30, 2004" Ruby\RubyCore\182-14\Version = "1.8.2" Ruby\RubyCore\182-14\Help\Main Ruby Documentation = "c:\ruby\ProgrammingRuby.chm" Curt