How Does Launcher Detect Installed Engines?

I have reinstalled a launcher version but it cannot detect my installed engine locations.

How does the launcher normally detect installed engines? Is there a config file?

I can’t even install a asset pack to the engine as it is not detected. At one point the launcher did detect a project and tagged the version as ‘Other’.