Re: is there a common way in Mozilla and Firefox to copy additional files in install time?
Marja <[email protected]> Mon, 31 Jan 2005 12:17:15 -0500
| Newsgroups | gmane.comp.mozilla.devel.xpinstall |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
HJ wrote: > 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. HJ! I wrongly thought "Program" keyword (javascript has keywords in uppercase) was for the "Program files" type of folder but it for the mozilla/dist/bin folder. Now everything makes much more sense :-). Thanks! Marja >> >> 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