Hello everyone,
I am trying to register an xpcom component with nsIComponentRegistrar.
Everything works fine. The information of this new component is properly
added to the "compreg.dat" file in the "Mozilla Firefox \ component"
directory.

However, I find out that there seem to be a default profile for each user
(e.g. Documents and Settings\USER_NAME\Application
Data\Mozilla\Firefox\Profiles\SOME_ID.default) and another "compreg.dat"
file can be found there. Whenever the first compreg.dat file changes after a
component is registered, the second does not, and as an effect, Firefox does
not see this new component. But if I manually delete this second file, next
copy my component to the  "Mozilla Firefox \ component" directory, then
finally restart Forefox, this compreg.dat file is automatically regenerated
with my component info inside. Now Firefox can see my component.

The questions are:
1. What is the connection between those two compreg.dat files? How each of
them is generated? (in some XP systems I can even see that there is no
compreg.dat file in the "Mozilla Firefox \ component"  directory).
2. What should be done while registering an xpcom component using
nsIComponentRegistrar (or just programatically) to 'refresh' the content of
the compreg.dat file in the user profile folder so that Firefox can see it?

I would appreciate very much any help and comments.

Best regards.
V.H.



_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to