![]() ![]() ![]() HKEY_CURRENT_USER\SOFTWARE\Valve\Steam\SteamPath - contains the path to steam If that method doesn't work due to lack of registry keys, the foolproof way is: If python is running as a 32 bit process and steam/starbound are 64 bit, RegOpenKeyEx will return error 2 on newer versions of windows because of registry virtualization, and you'll need to re-call with KEY_WOW64_64KEY or'd with samDesired (or if python is running as a 64 bit process and steam/starbound are 32bit, you have to use KEY_WOW64_32KEY instead, but I don't consider this likely) HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 211820\InstallLocation - contains the path to Starbound this key can be set even if the previous key isn't set. HKEY_CURRENT_USER\SOFTWARE\Valve\Steam\Apps\211820\Installed - contains the byte 1 if you installed Starbound through steam if the game was copied/restored from a backup this key is not set, sometimes this key just isn't there for no reason, not really reliable, but if it exists the next key should always be valid Click to expand.I'd suggest using the registry to detect other install/library locations since, for example, I have steam itself installed in program files(x86) but my games library is on a second harddrive as e:\steamlibrary so this method would never work for me
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |