2001-06-03 05:02:14 +04:00
|
|
|
function upgradeCleanup()
|
|
|
|
{
|
|
|
|
// Obsolete files from Netscape 6.0 and Netscape 6.01 that
|
|
|
|
// need to be cleaned up.
|
|
|
|
deleteThisFile("Components", "libsigned.so");
|
|
|
|
}
|
|
|
|
|
2000-08-25 04:45:41 +04:00
|
|
|
var srDest = $SpaceRequired$;
|
|
|
|
|
2005-04-11 21:06:40 +04:00
|
|
|
var err = initInstall("$AppDisplayName$ Mail", "Mail", "$Version$");
|
2000-05-24 18:08:46 +04:00
|
|
|
logComment("initInstall: " + err);
|
1999-10-19 01:44:15 +04:00
|
|
|
|
2000-05-24 18:08:46 +04:00
|
|
|
var communicatorFolder = getFolder("Program");
|
1999-12-11 02:44:37 +03:00
|
|
|
logComment("communicatorFolder: " + communicatorFolder);
|
1999-10-19 01:44:15 +04:00
|
|
|
|
2000-08-25 04:45:41 +04:00
|
|
|
if (verifyDiskSpace(communicatorFolder, srDest))
|
|
|
|
{
|
2001-06-03 05:02:14 +04:00
|
|
|
// Call upgradeCleanup() before addDirectory() in case we accidentaly
|
|
|
|
// delete files that we happen to be also installing. This way, if we do,
|
|
|
|
// it will just get reinstalled. This is for safety measure.
|
|
|
|
upgradeCleanup();
|
2000-08-25 04:45:41 +04:00
|
|
|
err = addDirectory("Program",
|
|
|
|
"$Version$",
|
|
|
|
"bin", // jar source folder
|
|
|
|
communicatorFolder, // target folder
|
|
|
|
"", // target subdir
|
|
|
|
true ); // force flag
|
1999-10-19 01:44:15 +04:00
|
|
|
|
2000-08-25 04:45:41 +04:00
|
|
|
logComment("addDirectory() returned: " + err);
|
1999-10-19 01:44:15 +04:00
|
|
|
|
2000-08-25 04:45:41 +04:00
|
|
|
registerChrome(CONTENT | DELAYED_CHROME,
|
2000-09-20 23:35:24 +04:00
|
|
|
getFolder("Chrome","messenger.jar"),
|
|
|
|
"content/messenger/");
|
2000-05-24 18:08:46 +04:00
|
|
|
|
2001-02-23 11:34:10 +03:00
|
|
|
registerChrome(CONTENT | DELAYED_CHROME,
|
|
|
|
getFolder("Chrome","messenger.jar"),
|
|
|
|
"content/messenger-region/");
|
|
|
|
|
2001-11-15 04:29:33 +03:00
|
|
|
registerChrome(CONTENT | DELAYED_CHROME,
|
|
|
|
getFolder("Chrome","messenger.jar"),
|
|
|
|
"content/messenger-smime/");
|
|
|
|
|
2002-12-06 04:32:37 +03:00
|
|
|
registerChrome(CONTENT | DELAYED_CHROME,
|
|
|
|
getFolder("Chrome","messenger.jar"),
|
|
|
|
"content/messenger-mdn/");
|
|
|
|
|
|
|
|
registerChrome(CONTENT | DELAYED_CHROME,
|
|
|
|
getFolder("Chrome","messenger.jar"),
|
|
|
|
"content/messenger-views/");
|
|
|
|
|
2000-08-25 04:45:41 +04:00
|
|
|
if (err==SUCCESS)
|
|
|
|
{
|
|
|
|
err = performInstall();
|
|
|
|
logComment("performInstall() returned: " + err);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
cancelInstall(err);
|
|
|
|
logComment("cancelInstall() due to error: " + err);
|
|
|
|
}
|
1999-12-11 02:44:37 +03:00
|
|
|
}
|
|
|
|
else
|
2000-08-25 04:45:41 +04:00
|
|
|
cancelInstall(INSUFFICIENT_DISK_SPACE);
|