1999-12-11 02:44:37 +03:00
|
|
|
var err = startInstall("Mozilla Mail", "Seamonkey", "$Version$");
|
|
|
|
logComment("startInstall: " + err);
|
1999-10-19 01:44:15 +04:00
|
|
|
|
1999-12-11 02:44:37 +03:00
|
|
|
var communicatorFolder = getFolder("Communicator");
|
|
|
|
logComment("communicatorFolder: " + communicatorFolder);
|
1999-10-19 01:44:15 +04:00
|
|
|
|
1999-12-11 02:44:37 +03:00
|
|
|
err = addDirectory("Program",
|
1999-10-19 01:44:15 +04:00
|
|
|
"$Version$",
|
1999-12-11 02:44:37 +03:00
|
|
|
"bin", // jar source folder
|
|
|
|
communicatorFolder, // target folder
|
|
|
|
"", // target subdir
|
|
|
|
true ); // force flag
|
1999-10-19 01:44:15 +04:00
|
|
|
|
1999-12-11 02:44:37 +03:00
|
|
|
logComment("addDirectory() returned: " + err);
|
1999-10-19 01:44:15 +04:00
|
|
|
|
1999-12-11 02:44:37 +03:00
|
|
|
err = getLastError();
|
|
|
|
if (err==SUCCESS || err==REBOOT_NEEDED)
|
|
|
|
{
|
|
|
|
err = finalizeInstall();
|
|
|
|
logComment("finalizeInstall() returned: " + err);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
abortInstall();
|
|
|
|
logComment("abortInstall() due to error: " + err);
|
|
|
|
}
|
1999-10-19 01:44:15 +04:00
|
|
|
|