2002-09-06 17:40:28 +00:00
|
|
|
var err = initInstall("Mozilla Calendar", "/Mozilla/Calendar", "0.1");
|
2002-08-30 21:56:49 +00:00
|
|
|
logComment("initInstall: " + err);
|
|
|
|
|
|
|
|
var fProgram = getFolder("Program");
|
|
|
|
logComment("fProgram: " + fProgram);
|
|
|
|
|
|
|
|
//First install components
|
|
|
|
var ComponentDirectory = getFolder("Components");
|
|
|
|
err = addDirectory("Calendar Components",
|
|
|
|
"", //version
|
|
|
|
"viewer/components", // jar source folder
|
|
|
|
ComponentDirectory, // target folder
|
|
|
|
"", // target subdir
|
|
|
|
true ); // force flag
|
|
|
|
|
|
|
|
logComment("addDirectory() returned: " + err);
|
|
|
|
|
|
|
|
//Next install frontend files
|
|
|
|
var ChromeDirectory = getFolder("Chrome");
|
|
|
|
err = addDirectory("Calendar Frontend",
|
|
|
|
"", //version
|
|
|
|
"viewer/chrome", // jar source folder
|
|
|
|
ChromeDirectory, // target folder
|
2002-09-06 17:40:28 +00:00
|
|
|
"", // target subdir
|
2002-08-30 21:56:49 +00:00
|
|
|
true ); // force flag
|
|
|
|
|
|
|
|
logComment("addDirectory() returned: " + err);
|
|
|
|
|
2002-09-06 17:40:28 +00:00
|
|
|
calendarDir = getFolder("Chrome","calendar.jar");
|
2002-08-30 21:56:49 +00:00
|
|
|
|
2002-09-06 17:40:28 +00:00
|
|
|
err = registerChrome(PACKAGE | DELAYED_CHROME, calendarDir, "content/calendar/" );
|
|
|
|
err = registerChrome(SKIN | DELAYED_CHROME, calendarDir, "skin/modern/calendar/");
|
|
|
|
err = registerChrome(SKIN | DELAYED_CHROME, calendarDir, "skin/classic/calendar/");
|
|
|
|
err = registerChrome(LOCALE | DELAYED_CHROME, calendarDir, "locale/en-US/calendar/");
|
2002-08-30 21:56:49 +00:00
|
|
|
|
|
|
|
logComment("registerChrome() returned: " + err);
|
|
|
|
|
|
|
|
if (err==SUCCESS)
|
|
|
|
{
|
|
|
|
err = performInstall();
|
|
|
|
logComment("performInstall() returned: " + err);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
cancelInstall(err);
|
|
|
|
logComment("cancelInstall() due to error: " + err);
|
|
|
|
}
|