pjs/xpinstall/packager/unix/mail.jst

41 строка
1.2 KiB
Plaintext
Исходник Обычный вид История

var srDest = $SpaceRequired$;
var err = initInstall("Mozilla Mail", "Seamonkey", "$Version$");
logComment("initInstall: " + err);
1999-10-19 01:44:15 +04:00
var communicatorFolder = getFolder("Program");
logComment("communicatorFolder: " + communicatorFolder);
1999-10-19 01:44:15 +04:00
if (verifyDiskSpace(communicatorFolder, srDest))
{
err = addDirectory("Program",
"$Version$",
"bin", // jar source folder
communicatorFolder, // target folder
"", // target subdir
true ); // force flag
1999-10-19 01:44:15 +04:00
logComment("addDirectory() returned: " + err);
1999-10-19 01:44:15 +04:00
registerChrome(CONTENT | DELAYED_CHROME,
getFolder("Chrome","messenger.jar"),
"content/messenger/");
registerChrome(CONTENT | DELAYED_CHROME,
getFolder("Chrome","messenger.jar"),
"content/messenger-region/");
if (err==SUCCESS)
{
err = performInstall();
logComment("performInstall() returned: " + err);
}
else
{
cancelInstall(err);
logComment("cancelInstall() due to error: " + err);
}
}
else
cancelInstall(INSUFFICIENT_DISK_SPACE);