slickgoonie
6th February 2008 19:04 UTC
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.
bholliger
6th February 2008 19:21 UTC
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
slickgoonie
6th February 2008 19:32 UTC
Thanks for your reply! how can I read the data out of the ini file?
thanks.
Joel
6th February 2008 19:34 UTC
ReadINIStr
slickgoonie
6th February 2008 20:30 UTC
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.
Yathosho
6th February 2008 22:45 UTC
you should probably replace the slash with a backslash.. though StrCpy would be enough to get just the part after Profile/