Re: is there a common way in Mozilla and Firefox to copy additional files in install time?

HJ <[email protected]> Mon, 31 Jan 2005 08:36:10 -0700
Newsgroups gmane.comp.mozilla.devel.xpinstall
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Marja wrote:
> In Firefox I understand that the additional files that are not 
> Preferences (e.g. some example files) can go to Defaults folder when 
> installing a package.
> 
> So I started using Defaults instead of Chrome folder and run into problems.
> 
> Firefox install.rdf understands the Defaults structure from the .xpi 
> file (at least in documentation), but in Mozilla install.js I cannot 
> find how I should refer to that folder with getFolder(). DefRt does not 
> seem to work.
> 
> Please help!
> 
> Marja

Here are a few examples:

const G_PROGRAM        = "program";
const G_PROGRAM_DIR    = getFolder(G_PROGRAM);
const G_DEFPREF_DIR    = getFolder(G_PROGRAM, "defaults/pref");
const G_DEFPROFILE_DIR = getFolder(G_PROGRAM, "defaults/profile");

Have fun now,
/HJ