зеркало из https://github.com/mozilla/pjs.git
49 строки
1.6 KiB
Plaintext
49 строки
1.6 KiB
Plaintext
var srDest = $SpaceRequired$;
|
|
var err;
|
|
var fProgram;
|
|
|
|
// --- LOCALIZATION NOTE: translate only these ---
|
|
var prettyName = "English-US Language Pack";
|
|
var regName = "locales/mozilla/en-US";
|
|
var chromeName = "en-US.jar";
|
|
// --- END LOCALIZABLE RESOURCES ---
|
|
|
|
err = initInstall(prettyName, regName, "$Version$");
|
|
logComment("initInstall: " + err);
|
|
|
|
fProgram = getFolder("Program");
|
|
logComment("fProgram: " + fProgram);
|
|
|
|
if (verifyDiskSpace(fProgram, srDest))
|
|
{
|
|
err = addDirectory("",
|
|
"$Version$",
|
|
"bin",
|
|
fProgram,
|
|
"",
|
|
true);
|
|
logComment("addDirectory() returned: " + err);
|
|
|
|
// register chrome
|
|
var cf = getFolder("Chrome");
|
|
registerChrome(LOCALE | DELAYED_CHROME, getFolder(cf, chromeName), "locale/en-US/global/");
|
|
registerChrome(LOCALE | DELAYED_CHROME, getFolder(cf, chromeName), "locale/en-US/communicator/");
|
|
registerChrome(LOCALE | DELAYED_CHROME, getFolder(cf, chromeName), "locale/en-US/messenger/");
|
|
registerChrome(LOCALE | DELAYED_CHROME, getFolder(cf, chromeName), "locale/en-US/editor/");
|
|
registerChrome(LOCALE | DELAYED_CHROME, getFolder(cf, chromeName), "locale/en-US/navigator/");
|
|
registerChrome(LOCALE | DELAYED_CHROME, getFolder(cf, chromeName), "locale/en-US/necko/");
|
|
|
|
if (err == SUCCESS)
|
|
{
|
|
err = performInstall();
|
|
logComment("performInstall() returned: " + err);
|
|
}
|
|
else
|
|
{
|
|
cancelInstall(err);
|
|
logComment("cancelInstall due to error: " + err);
|
|
}
|
|
}
|
|
else
|
|
cancelInstall(INSUFFICIENT_DISK_SPACE);
|