• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Jos Theelen

C.U.T.
4 Badges
Apr 6, 2001
1.926
0
Visit site
  • Diplomacy
  • Europa Universalis III
  • 500k Club
  • Europa Universalis III: Collection
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.
 
your software didn't work for me either and it was installed on the D drive instead of C.

I have no idea what are the good registry keys, since I don't have the retail version and things could be different. The only person that could answer that would be Johan and he is on vacation until after Christmas.

I can suggest a few things, but you might just waste your time, so take it into account before you start doing work:

HKEY LOCAL MACHINE/MICROSOFT/WINDOWS/APP PATHS\eu2.exe
HKEY_LOCAL_MACHINE/Software/Paradox/Europa Universalis 2/path
HKEY_LOCAL_MACHINE/Software/Paradox/Europa Universalis 2/app
 
Originally posted by viper37
your software didn't work for me either and it was installed on the D drive instead of C.

I have no idea what are the good registry keys, since I don't have the retail version and things could be different. The only person that could answer that would be Johan and he is on vacation until after Christmas.

I can suggest a few things, but you might just waste your time, so take it into account before you start doing work:

HKEY LOCAL MACHINE/MICROSOFT/WINDOWS/APP PATHS\eu2.exe
HKEY_LOCAL_MACHINE/Software/Paradox/Europa Universalis 2/path
HKEY_LOCAL_MACHINE/Software/Paradox/Europa Universalis 2/app

Until after Christmas ??? OK, he probably deserves it.

I will build (to be absolutely sure) something that asks the user where his text.csv is and store it in the inifile, if the key's aren't found.
But if I understand you right, then the last 2 keys you mentioned would give the right path in you situation. That means D:/... instead of C:/.... Is that correct ?
 
I've made a typo, the correct key is
HKEY LOCAL MACHINE/SOFTWARE/MICROSOFT/WINDOWS/CURRENT VERSION/APP PATHS/eu2.exe


And all the keys I gave you point to the right folder on my system, D:\Program files\Paradox[...]

Wait until around early january, and send him a Private message when he comes back if what I gave you doesn't work. Johan has something like 8 weeks of accumulated time :)
 
Originally posted by viper37
I've made a typo, the correct key is
HKEY LOCAL MACHINE/SOFTWARE/MICROSOFT/WINDOWS/CURRENT VERSION/APP PATHS/eu2.exe

And all the keys I gave you point to the right folder on my system, D:\Program files\Paradox[...]

Wait until around early january, and send him a Private message when he comes back if what I gave you doesn't work. Johan has something like 8 weeks of accumulated time :)

Thanks for the info. Some of your keys don't exist with me, which probably means that they only exists, when people install EU2 on a different directory as the install path.
I will send Johan a message, after his well-deserved free time.
 
it could be that the retail version is different than the beta version we have.
 
Originally posted by viper37
it could be that the retail version is different than the beta version we have.

Could be. But after hearing from 2 people, that EUReader doesn't run, because it doesn't find the EU-directory, and that both of them installed EU on a different directory, I think I just don't read the correct key in the registry.