1999-11-16 19:14:07 +03:00
|
|
|
var err = startInstall("Mozilla Seamonkey", "Seamonkey", "$Version$");
|
|
|
|
logComment("startInstall: " + err);
|
1999-11-03 05:44:58 +03:00
|
|
|
|
1999-11-16 19:14:07 +03:00
|
|
|
var communicatorFolder = getFolder("Communicator");
|
|
|
|
logComment("communicatorFolder: " + communicatorFolder);
|
1999-11-03 05:44:58 +03:00
|
|
|
|
1999-11-16 19:14:07 +03:00
|
|
|
var subFolder = "Mozilla Folder";
|
|
|
|
|
|
|
|
err = addDirectory("Program",
|
1999-11-03 05:44:58 +03:00
|
|
|
"$Version$",
|
1999-11-13 07:08:50 +03:00
|
|
|
"viewer", // jar source folder
|
|
|
|
communicatorFolder, // target folder
|
1999-11-16 19:14:07 +03:00
|
|
|
subFolder, // target subdir
|
1999-11-13 07:08:50 +03:00
|
|
|
false); // force flag
|
1999-11-03 05:44:58 +03:00
|
|
|
|
1999-11-16 19:14:07 +03:00
|
|
|
logComment("addDirectory() returned: " + err);
|
1999-11-03 05:44:58 +03:00
|
|
|
|
1999-11-16 19:14:07 +03:00
|
|
|
// delete the component registry
|
|
|
|
var ignoreErr = fileDelete(communicatorFolder + subFolder + ":Component Registry");
|
|
|
|
logComment("fileDelete() returned: " + ignoreErr);
|
1999-11-03 05:44:58 +03:00
|
|
|
|
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() returned: " + err);
|
1999-11-13 07:08:50 +03:00
|
|
|
}
|