2000-08-25 04:45:41 +04:00
|
|
|
var srDest = $SpaceRequired$;
|
|
|
|
|
2000-05-24 18:08:46 +04:00
|
|
|
var err = initInstall("Mozilla Seamonkey", "Seamonkey", "$Version$");
|
|
|
|
logComment("initInstall: " + err);
|
1999-12-11 02:45:44 +03:00
|
|
|
|
2000-05-24 18:08:46 +04:00
|
|
|
var communicatorFolder = getFolder("Program");
|
1999-12-11 02:45:44 +03:00
|
|
|
logComment("communicatorFolder: " + communicatorFolder);
|
|
|
|
|
2000-08-25 04:45:41 +04:00
|
|
|
if (verifyDiskSpace(communicatorFolder, srDest))
|
|
|
|
{
|
|
|
|
err = addDirectory("Program",
|
|
|
|
"$Version$",
|
|
|
|
"bin", // jar source folder
|
|
|
|
communicatorFolder, // target folder
|
|
|
|
"", // target subdir
|
|
|
|
true ); // force flag
|
1999-12-11 02:45:44 +03:00
|
|
|
|
2000-08-25 04:45:41 +04:00
|
|
|
logComment("addDirectory() returned: " + err);
|
1999-12-11 02:45:44 +03:00
|
|
|
|
2000-08-25 04:45:41 +04:00
|
|
|
// create the plugins folder next to mozilla
|
|
|
|
var pluginsFolder = getFolder("Plugins");
|
|
|
|
var ignoreErr = dirCreate(pluginsFolder);
|
|
|
|
logComment("dirCreate() returned: " + ignoreErr);
|
1999-12-11 02:45:44 +03:00
|
|
|
|
2000-08-25 04:45:41 +04:00
|
|
|
var cf = getFolder("Chrome");
|
2001-03-06 05:34:34 +03:00
|
|
|
registerChrome(CONTENT | DELAYED_CHROME, getFolder(cf,"toolkit.jar"),"content/global-platform/");
|
|
|
|
registerChrome(CONTENT | DELAYED_CHROME, getFolder(cf,"comm.jar"),"content/communicator-platform/");
|
|
|
|
registerChrome(CONTENT | DELAYED_CHROME, getFolder(cf,"comm.jar"),"content/navigator-platform/");
|
|
|
|
|
2001-02-23 11:34:10 +03:00
|
|
|
registerChrome(CONTENT | DELAYED_CHROME, getFolder(cf,"toolkit.jar"),"content/global-region/");
|
|
|
|
registerChrome(CONTENT | DELAYED_CHROME, getFolder(cf,"comm.jar"),"content/communicator-region/");
|
|
|
|
registerChrome(CONTENT | DELAYED_CHROME, getFolder(cf,"comm.jar"),"content/editor-region/");
|
|
|
|
registerChrome(CONTENT | DELAYED_CHROME, getFolder(cf,"comm.jar"),"content/navigator-region/");
|
|
|
|
|
2000-09-20 23:35:24 +04:00
|
|
|
registerChrome(CONTENT | DELAYED_CHROME, getFolder(cf,"toolkit.jar"),"content/global/");
|
2001-02-23 08:33:33 +03:00
|
|
|
registerChrome(CONTENT | DELAYED_CHROME, getFolder(cf,"comm.jar"),"content/cookie/");
|
|
|
|
registerChrome(CONTENT | DELAYED_CHROME, getFolder(cf,"comm.jar"),"content/wallet/");
|
2000-09-20 23:35:24 +04:00
|
|
|
registerChrome(CONTENT | DELAYED_CHROME, getFolder(cf,"comm.jar"),"content/communicator/");
|
|
|
|
registerChrome(CONTENT | DELAYED_CHROME, getFolder(cf,"comm.jar"),"content/editor/");
|
|
|
|
registerChrome(CONTENT | DELAYED_CHROME, getFolder(cf,"comm.jar"),"content/navigator/");
|
2000-11-30 00:20:09 +03:00
|
|
|
registerChrome(CONTENT | DELAYED_CHROME, getFolder(cf,"comm.jar"),"content/necko/");
|
2000-09-20 23:35:24 +04:00
|
|
|
registerChrome(SKIN | DELAYED_CHROME, getFolder(cf,"classic.jar"),"skin/classic/communicator/");
|
|
|
|
registerChrome(SKIN | DELAYED_CHROME, getFolder(cf,"classic.jar"),"skin/classic/editor/");
|
|
|
|
registerChrome(SKIN | DELAYED_CHROME, getFolder(cf,"classic.jar"),"skin/classic/global/");
|
|
|
|
registerChrome(SKIN | DELAYED_CHROME, getFolder(cf,"classic.jar"),"skin/classic/messenger/");
|
|
|
|
registerChrome(SKIN | DELAYED_CHROME, getFolder(cf,"classic.jar"),"skin/classic/navigator/");
|
|
|
|
// registerChrome(SKIN | DELAYED_CHROME, getFolder(cf,"blue.jar"),"skin/blue/communicator/");
|
|
|
|
// registerChrome(SKIN | DELAYED_CHROME, getFolder(cf,"blue.jar"),"skin/blue/editor/");
|
|
|
|
// registerChrome(SKIN | DELAYED_CHROME, getFolder(cf,"blue.jar"),"skin/blue/global/");
|
|
|
|
// registerChrome(SKIN | DELAYED_CHROME, getFolder(cf,"blue.jar"),"skin/blue/messenger/");
|
|
|
|
// registerChrome(SKIN | DELAYED_CHROME, getFolder(cf,"blue.jar"),"skin/blue/navigator/");
|
|
|
|
registerChrome(SKIN | DELAYED_CHROME, getFolder(cf,"modern.jar"),"skin/modern/communicator/");
|
|
|
|
registerChrome(SKIN | DELAYED_CHROME, getFolder(cf,"modern.jar"),"skin/modern/editor/");
|
|
|
|
registerChrome(SKIN | DELAYED_CHROME, getFolder(cf,"modern.jar"),"skin/modern/global/");
|
|
|
|
registerChrome(SKIN | DELAYED_CHROME, getFolder(cf,"modern.jar"),"skin/modern/messenger/");
|
|
|
|
registerChrome(SKIN | DELAYED_CHROME, getFolder(cf,"modern.jar"),"skin/modern/navigator/");
|
2000-05-24 18:08:46 +04:00
|
|
|
|
2000-08-25 04:45:41 +04:00
|
|
|
if (err==SUCCESS)
|
|
|
|
{
|
|
|
|
err = performInstall();
|
|
|
|
logComment("performInstall() returned: " + err);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
cancelInstall(err);
|
|
|
|
logComment("cancelInstall() due to error: " + err);
|
|
|
|
}
|
1999-12-11 02:45:44 +03:00
|
|
|
}
|
|
|
|
else
|
2000-08-25 04:45:41 +04:00
|
|
|
cancelInstall(INSUFFICIENT_DISK_SPACE);
|