1999-11-16 19:14:07 +03:00
|
|
|
var err = startInstall("Mozilla Editor", "Seamonkey", "$Version$");
|
|
|
|
logComment("startInstall: " + err);
|
1999-10-02 02:31:46 +04:00
|
|
|
|
1999-11-16 19:14:07 +03:00
|
|
|
var communicatorFolder = getFolder("Communicator");
|
|
|
|
logComment("communicatorFolder: " + communicatorFolder);
|
1999-10-02 02:31:46 +04:00
|
|
|
|
1999-11-16 19:14:07 +03:00
|
|
|
err = addDirectory("Program",
|
1999-10-02 02:31:46 +04:00
|
|
|
"$Version$",
|
1999-11-13 07:08:50 +03:00
|
|
|
"bin", // jar source folder
|
|
|
|
communicatorFolder, // target folder
|
|
|
|
"", // target subdir
|
|
|
|
false); // force Flag
|
1999-10-02 02:31:46 +04:00
|
|
|
|
1999-11-16 19:14:07 +03:00
|
|
|
logComment("addDirectory() returned: " + err);
|
1999-10-02 02:31:46 +04:00
|
|
|
|
1999-11-16 19:14:07 +03:00
|
|
|
err = getLastError();
|
1999-11-13 07:08:50 +03:00
|
|
|
if (err==SUCCESS || err==REBOOT_NEEDED)
|
|
|
|
{
|
1999-11-16 19:14:07 +03:00
|
|
|
err = finalizeInstall();
|
|
|
|
logComment("finalizeInstall() returned: " + err);
|
1999-11-13 07:08:50 +03:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
1999-11-16 19:14:07 +03:00
|
|
|
abortInstall();
|
|
|
|
logComment("abortInstall() due to error: " + err);
|
1999-11-13 07:08:50 +03:00
|
|
|
}
|
|
|
|
|
1999-10-02 02:31:46 +04:00
|
|
|
|