2000-08-25 00:45:41 +00:00
|
|
|
var srDest = $SpaceRequired$;
|
|
|
|
|
2002-03-23 10:02:54 +00:00
|
|
|
var err = initInstall("Mozilla Editor", "Editor", "$Version$");
|
2000-05-24 14:08:46 +00:00
|
|
|
logComment("initInstall: " + err);
|
1999-10-18 21:44:15 +00:00
|
|
|
|
2000-05-24 14:08:46 +00:00
|
|
|
var communicatorFolder = getFolder("Program");
|
1999-12-10 23:44:37 +00:00
|
|
|
logComment("communicatorFolder: " + communicatorFolder);
|
1999-10-18 21:44:15 +00:00
|
|
|
|
2000-08-25 00:45:41 +00:00
|
|
|
if (verifyDiskSpace(communicatorFolder, srDest))
|
|
|
|
{
|
|
|
|
err = addDirectory("Program",
|
|
|
|
"$Version$",
|
|
|
|
"bin", // jar source folder
|
|
|
|
communicatorFolder, // target folder
|
|
|
|
"", // target subdir
|
|
|
|
true ); // force Flag
|
1999-10-18 21:44:15 +00:00
|
|
|
|
2000-08-25 00:45:41 +00:00
|
|
|
logComment("addDirectory() returned: " + err);
|
1999-12-10 23:44:37 +00:00
|
|
|
|
2000-08-25 00:45:41 +00:00
|
|
|
err = getLastError();
|
|
|
|
if (err==SUCCESS)
|
|
|
|
{
|
|
|
|
err = performInstall();
|
|
|
|
logComment("performInstall() returned: " + err);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
cancelInstall(err);
|
|
|
|
logComment("cancelInstall() due to error: " + err);
|
|
|
|
}
|
1999-12-10 23:44:37 +00:00
|
|
|
}
|
|
|
|
else
|
2000-08-25 00:45:41 +00:00
|
|
|
cancelInstall(INSUFFICIENT_DISK_SPACE);
|