I didn't even know TDH3 was a thing. What's the difference between 2 and 3?
Also, I had an idea: have you considered using the Registry to figure out where ED is installed?
For instance, I have ED installed via Steam, so I have this entry in my registry:
Code:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 359320]
"DisplayIcon"="G:\\Steam\\steam\\games\\a9a0ab456790afb831c7246e1be5aa69642a19c8.ico"
"DisplayName"="Elite Dangerous"
"HelpLink"="http://support.steampowered.com/"
"InstallLocation"="G:\\Steam\\steamapps\\common\\Elite Dangerous"
"Publisher"="Frontier Developments"
"UninstallString"="\"G:\\Steam\\steam.exe\" steam://uninstall/359320"
"URLInfoAbout"="http://www.elitedangerous.com/"
"NoRepair"=dword:00000001
"NoModify"=dword:00000001
I imagine that everyone that purchased ED through Steam has that same key, only with the InstallLocation pointing to wherever ED is on their computer.
I have no idea what the registry would look like for someone that got ED some other way, but I don't imagine it would be hard to find out.