mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 16:46:26 +00:00
30 lines
829 B
Plaintext
30 lines
829 B
Plaintext
var srDest = $SpaceRequired$;
|
|
|
|
var err = initInstall("Chatzilla v0.5", "Chatzilla", "$Version$");
|
|
logComment("initInstall: " + err);
|
|
|
|
var fProgram = getFolder("Program");
|
|
|
|
if (verifyDiskSpace(fProgram, srDest))
|
|
{
|
|
addFile("Chatzilla service",
|
|
"viewer/Components/chatzilla-service.js",
|
|
getFolder(fProgram,"Components"),
|
|
"");
|
|
|
|
var fChat = getFolder(fProgram,"chrome/packages/chatzilla");
|
|
addDirectory("",
|
|
"viewer/chrome/packages/chatzilla", // jar source folder
|
|
fChat, // target folder
|
|
""); // target subdir
|
|
|
|
registerChrome(PACKAGE | DELAYED_CHROME, fChat);
|
|
|
|
if (err==SUCCESS)
|
|
performInstall();
|
|
else
|
|
cancelInstall(err);
|
|
}
|
|
else
|
|
cancelInstall(INSUFFICIENT_DISK_SPACE);
|