2000-08-25 04:45:41 +04:00
|
|
|
var srDest = $SpaceRequired$;
|
|
|
|
|
2000-05-24 18:08:46 +04:00
|
|
|
var err = initInstall("Mozilla Mail", "Seamonkey", "$Version$");
|
|
|
|
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))
|
|
|
|
{
|
|
|
|
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-16 06:26:20 +04:00
|
|
|
getFolder("Chrome","packages/messenger"));
|
2000-05-24 18:08:46 +04:00
|
|
|
|
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);
|