Jason LaBumbard wrote: > I have an xpi right now that adds some functionality to mozilla. The > problem is that to do this I also had to edit nsHelperAppDlg.js in the > compnonents directory and nsContentAreaClick.js in the comm.jar file. I > was wondering if there is a way to get my xpi to copy those files over > the old ones?
Not that it's recommended to replace standard bits of Mozilla (use overlays instead where possible), but just install on top of the existing files and they will get replaced. If the files are currently being used the actual replacement might be deferred until after Mozilla shuts down. In this case performInstall() will return 999 to instead restart needed instead of 0/success. If you don't/can't use overlays you'll have to replace the entire comm.jar -Dan Veditz
