mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 06:05:44 +00:00
28bb69ed0b
patch by ajschult, r=bsmedberg a=bsmedberg
26 lines
803 B
Plaintext
26 lines
803 B
Plaintext
var err = initInstall("Website Reporter", "Reporter", "$Version$");
|
|
logComment("initInstall: " + err);
|
|
|
|
var fProgram = getFolder("Program");
|
|
logComment("fProgram: " + fProgram);
|
|
var srDest = $SpaceRequired$;
|
|
|
|
if (verifyDiskSpace(fProgram, srDest))
|
|
{
|
|
err = addDirectory("", "$Version$", "bin", fProgram, "", true);
|
|
logComment("addDirectory: " + err);
|
|
|
|
var jarFolder = getFolder("Chrome", "reporter.jar");
|
|
registerChrome(PACKAGE | DELAYED_CHROME, jarFolder, "content/reporter/");
|
|
registerChrome(SKIN | DELAYED_CHROME, jarFolder, "skin/classic/reporter/");
|
|
registerChrome(LOCALE | DELAYED_CHROME, jarFolder, "locale/en-US/reporter/");
|
|
|
|
err = getLastError();
|
|
if (err==SUCCESS)
|
|
performInstall();
|
|
else
|
|
cancelInstall(err);
|
|
}
|
|
else
|
|
cancelInstall(INSUFFICIENT_DISK_SPACE);
|