File:  [mozdev] / yahoocompose / install.js
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Sat Sep 25 04:16:33 2004 UTC (14 years, 3 months ago) by bkennelly
Branches: MAIN
CVS tags: HEAD
Adding the install file for version 0.1

// NOTE:
// this installation script is used only by Mozilla, not Firefox

// User defined constants
  const myProductName = "yahoocompose"; //same as the package name in contents.rdf
  const myProductRegKey = "/mozilla/yahoocompose";
  const myProductRegVersion = "0.1";
  const myJarFileName = "yahoocompose.jar";
  
// Installation Script
    
  var err = initInstall(myProductName, myProductRegKey, myProductRegVersion);
  logComment("initInstall: " + err);
  
  fChrome = getFolder("Chrome");
  setPackageFolder(fChrome);
    
  err = addFile("chrome/" + myJarFileName)             
  logComment("addFile() returned: " + err);
  
  regErr = registerChrome(PACKAGE | DELAYED_CHROME, getFolder(fChrome,myJarFileName), "content/");
  logComment("regChrome returned: " + regErr);

  if (0 == getLastError())
    performInstall();
  else
    cancelInstall(err);

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>