I am working on a program, EUReader, that can read the saved game files of both versions. For that I need to know in which directory EU is installed, so I can find both text.csv files for the country tags.
The best way (I think) is to look in the registry, where EU1 and/or EU2 are installed. So I searched and found the following keys:
EU1: HKEY_LOCAL_MACHINE/Software/Paradox Entertainment/Europa Univeralis/path
EU2: HKEY_LOCAL_MACHINE/Software/Paradox/Europa Universalis 2/install path
This seems to work fine, but one user complained that the program couldn't find the keys. The reason is probably that he installed EU1 in a different directory.
So my question is: is there a registry-key where I can find the names of the directories in all cases ? Or can I never be 100% sure about that ?
Thanks for the answer.
The best way (I think) is to look in the registry, where EU1 and/or EU2 are installed. So I searched and found the following keys:
EU1: HKEY_LOCAL_MACHINE/Software/Paradox Entertainment/Europa Univeralis/path
EU2: HKEY_LOCAL_MACHINE/Software/Paradox/Europa Universalis 2/install path
This seems to work fine, but one user complained that the program couldn't find the keys. The reason is probably that he installed EU1 in a different directory.
So my question is: is there a registry-key where I can find the names of the directories in all cases ? Or can I never be 100% sure about that ?
Thanks for the answer.