I’m trying to read the windows registry to figure out what scripting environments are installed and where the stand alone interpreter executables are available.
When I did python, for example, I searched for
HKEY_LOCAL_MACHINE/SOFTWARE/Python/PythonCore/InstallPath
This gives me the install path for the python executable for the environment, this allows me to find if I have python 2.7, 3, etc and where those exes are.
I’m looking for something similar for Lua for windows.
I must use the registry for this search.
Lua does not have an install path. Lua does not have an installation. Lua is not like Python, with an installer that puts everything in one specific place and sets up registry and
PATHentries and such.The standalone interpreter does not have a mechanism to query its location. If you’re interested in learning the Lua version, you can always check the
_VERSIONvariable field. But other than that, no, there is no mechanism for doing what you want.