Title: Message
Hi,
Yes this did work for me. The steps are as follows
 
1) Shutdown any running instances of Firefox
2) Copy your dll into the components folder (C:\Program Files\Mozilla Firefox\components)
3) "Touch" e.g. open and save the file .autoreg - You will find this in the same folder as firefox.exe (C:\Program Files\Mozilla Firefox)
4) Restart Firefox.
 
Once you've done this you should be able to use your dll (depending on what it does).
 
According to Doug Turner in that link I sent you there are a number of other ways of doing this;
 
A) touch a file .autoreg next to the executable.
B) run regxpcom with the right commands.
C) install the component via xpinstall.
D) run some priveleged js (as your code above attempts to do)
I tried using regxpcom to do this but like you this didn't work for me. I haven't tried using xpinstall.
 
If you mange to figure out another way of doing this I'd appreciate you sending it on to me ;-)
Thanks,
 Damien
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Srinivasa Raghavan
Sent: 19 April 2005 17:05
To: Damien O'Brien
Cc: [email protected]
Subject: Re: xpcom-startup notification

Hi Damien,

Thanks for the information.

Did you got this to work ? If so, please tell me the steps you did to install this .

I am facing problem on this way too .

Is there any other way to install the component (through XPInstall ?).

Raghavan

Damien O'Brien wrote:
Hi Srinivasa,
I was having exactly the same problem as you i.e. I'd written an XPCOM dll that worked with Mozilla but couldn't get it to work with Firefox.
Anyway I think I've found the solution. All you need to do is "touch" (open, save and close) the file called .autoreg in the C:\Program Files\Mozilla Firefox folder (i.e. the folder where the firefox.exe file is). After you do this restart firefox and your dll is registered.
Unfortunately I have no idea how this works :)
Do you (or anyone else out there) know exactly what is happening here i.e. what gets updated and where so that firefox now loads my dll. I noticed that a compreg.dat file _is_not_ being created so where is the registration info being stored? is it in the MS registry somewhere?
 
I would like to know this as I need to do a lot more work on my dll and debugging, etc. will be easier if I understand what's going on.
 
BTW - I discovered this .autoreg file touching thing from this posting by Doug Turner.
 
Thanks,
 Damien
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Srinivasa Raghavan
Sent: 19 April 2005 06:11
To: [email protected]
Subject: xpcom-startup notification

Hi all,

I have registered XPCOM component with Mozilla Firefox.

I have also registered for xpcom-startup notification with CategoryManager, but didn't get the notification while Firefox starts up.

I have already posted the similar question earlier,  but not successful with the answers i got .

The same component works well with Mozilla 1.7.3.

Please tell me how to get the startup-notification ?

Thanks & Regards
Raghavan

--
"Buy what you want. Sell what you don't want. Use this portal, www.finepick.com, for FREE. Simple!"


--
"Buy what you want. Sell what you don't want. Use this portal, www.finepick.com, for FREE. Simple!"

Reply via email to