Search code examples
javaregistry

Java: Find installation path from the registry


Im going to create a launcher for a mod (for C&C Generals: Zero Hour), and i am implementing an updater within the launcher. The problem is, how to find the installation path of that game? just by looking at the registry?


Solution

  • I would suggest offering the default installation folder and checking that the game is actually there, if not tell the user to set himself the path.

    Anyway, maybe this page can help you:

    How to Access Windows Registry in Java?