[Project_owners] install.js

Eric Jung grimholtz at yahoo.com
Mon Jun 20 10:33:53 EDT 2005


Michael, thanks for the reply but I didn't understand what you wrote:
"No Install. need here?"

Help,
Eric


--- Michael Vincent van Rantwijk <mv_van_rantwijk at SPAMFREEyahoo.com>
wrote:

> Michael Vincent van Rantwijk wrote:
> 
> > Eric Jung wrote:
> > 
> >> Hi,
> >> I'm trying to get my install.js to copy the file
> >> defaults/passwordmaker.xml, which is inside the XPI, to the
> profile
> >> directory (thanks to Phillip Chee for the help so far). Nothing
> >> happens... is there anyway I can get a log of the install
> procedure
> >> to see if there was an error? Here's the code I'm using...
> >>
> >> // Add JAR file
> >> var profileDir = Install.getFolder('Profile', 'chrome')
> > 
> > 
> > He, shouldn't 'Profile' be 'Current User' ?
> > 
> >> var err = Install.addFile(null, 'chrome/' + jarName, profileDir,
> >> null);
> >> // Add passwordmaker.xml
> >> if(err == SUCCESS) {
> >>   err = addFile("PasswordMaker Defaults", "0.6.1",
> 
> No Install. need here?
> 
> >> "defaults/passwordmaker.xml", profileDir, "passwordmaker.xml",
> true);
> >>   // on unixy platforms, global defaults directory is not
> writable!
> >> Ignore this error but notify user.
> >>  if(err == ACCESS_DENIED || err == READ_ONLY) {
> >>    Install.alert("Could not write passwordmaker.xml to " +
> profileDir
> >> + ", probably due to a lack of permissions.\nYou should re-run
> the
> >> installation with an account\nthat has permissions or copy the
> file
> >> there manually.");
> >>    err = SUCCESS;
> >>  }
> >> }
> >>
> >> Thank you,
> >> Eric Jung
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the Project_owners mailing list