2000-06-24 02:57:34 +04:00
|
|
|
// main
|
|
|
|
var srDest;
|
|
|
|
var err;
|
|
|
|
var fProgram;
|
|
|
|
|
|
|
|
// ----LOCALIZATION NOTE: translate only these ------
|
|
|
|
var prettyName = "English-GB Language Pack";
|
|
|
|
var regName = "locales/mozilla/en-GB";
|
2000-09-20 23:35:24 +04:00
|
|
|
var chromeName = "en-GB.jar";
|
2000-06-24 02:57:34 +04:00
|
|
|
// --- END CHANGABLE STUFF ---
|
|
|
|
|
2000-12-15 02:33:37 +03:00
|
|
|
$Ren8dot3List$
|
|
|
|
|
2000-06-24 02:57:34 +04:00
|
|
|
srDest = $SpaceRequired$:bin;
|
|
|
|
err = initInstall(prettyName, regName, "$Version$");
|
|
|
|
logComment("initInstall: " + err);
|
|
|
|
|
|
|
|
fProgram = getFolder("Program");
|
|
|
|
logComment("fProgram: " + fProgram);
|
|
|
|
|
2000-07-24 13:09:29 +04:00
|
|
|
if(verifyDiskSpace(fProgram, srDest))
|
2000-06-24 02:57:34 +04:00
|
|
|
{
|
|
|
|
setPackageFolder(fProgram);
|
2000-12-15 02:33:37 +03:00
|
|
|
|
|
|
|
$Ren8dot3Call$
|
|
|
|
|
2000-06-24 02:57:34 +04:00
|
|
|
err = addDirectory("",
|
|
|
|
"$Version$",
|
|
|
|
"bin", // dir name in jar to extract
|
|
|
|
fProgram, // Where to put this file (Returned from GetFolder)
|
|
|
|
"", // subdir name to create relative to fProgram
|
|
|
|
true); // Force Flag
|
|
|
|
logComment("addDirectory() returned: " + err);
|
|
|
|
|
|
|
|
// register chrome
|
|
|
|
var cf = getFolder("Chrome");
|
|
|
|
registerChrome(LOCALE | DELAYED_CHROME, getFolder(cf, chromeName));
|
|
|
|
|
|
|
|
// check return value
|
|
|
|
if(err == SUCCESS)
|
|
|
|
{
|
|
|
|
err = performInstall();
|
|
|
|
logComment("performInstall() returned: " + err);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
cancelInstall(err);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
cancelInstall(INSUFFICIENT_DISK_SPACE);
|
|
|
|
|
|
|
|
// end main
|