Re: copy over files with xpi???

Daniel Veditz <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xpinstall
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.