2000-05-24 18:08:46 +04:00
|
|
|
var err = initInstall("Mozilla Editor", "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
|
|
|
|
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);
|
|
|
|
|
|
|
|
err = getLastError();
|
2000-05-24 18:08:46 +04:00
|
|
|
if (err==SUCCESS)
|
1999-12-11 02:44:37 +03:00
|
|
|
{
|
2000-05-24 18:08:46 +04:00
|
|
|
err = performInstall();
|
|
|
|
logComment("performInstall() returned: " + err);
|
1999-12-11 02:44:37 +03:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2000-05-24 18:08:46 +04:00
|
|
|
cancelInstall(err);
|
|
|
|
logComment("cancelInstall() due to error: " + err);
|
1999-12-11 02:44:37 +03:00
|
|
|
}
|
1999-10-19 01:44:15 +04:00
|
|
|
|
|
|
|
|