Archive: Thunderbird Registry


Thunderbird Registry
Hello everyone:

I'm trying to create an installer for an xpi thunderbird package. I was wondering if anyone knows where can I get the location of the user's thunderbird application data, my plugin has to be installed inside that location and thunderbird always create a ramdon folder name for each user.

I've been trying to find that location looking through the registry, but no luck.

Any ideas?

Thanks.


Hi there!

There is a file called profiles.ini in the path
%appdata%\Thunderbird. I'm sure you'll find more information in there.

Cheers

Bruno

http://kb.mozillazine.org/Profiles.ini_file


Thanks for your reply! how can I read the data out of the ini file?

thanks.


ReadINIStr


Thanks that helped the only problem I have now is that my variable
$0 contains: profiles/8sf99f.default

and When I do this:

SetOutPath "$APPDATA\ThunderBird\$0"

The '/' gets wipped out, and my installation directory looks like this: profiles8sf99f.default

Any idea on how to parse out the '/' out of my variable?

thanks.


you should probably replace the slash with a backslash.. though StrCpy would be enough to get just the part after Profile/