This commit is contained in:
mikep%oeone.com 2002-01-07 14:45:22 +00:00
Родитель 525230cf76
Коммит f91e6a217c
1 изменённых файлов: 0 добавлений и 39 удалений

Просмотреть файл

@ -1,39 +0,0 @@
initInstall("Mozilla Calendar", "/Mozilla/Calendar", "0.7");
calendarDir = getFolder("Chrome","calendar");
setPackageFolder(calendarDir);
var err = addDirectory("", "resources", getFolder("Chrome","calendar"), "" );
addDirectory("", "components", getFolder( "Components" ), "" );
if ( err == SUCCESS ) {
var calendarContent = getFolder(calendarDir, "content");
var calendarSkin = getFolder(calendarDir, "skin");
var calendarLocale = getFolder(calendarDir, "locale");
var returnval = registerChrome(CONTENT | DELAYED_CHROME, calendarContent );
var returnval = registerChrome(SKIN | DELAYED_CHROME, calendarSkin, "modern/");
var returnval = registerChrome(LOCALE | DELAYED_CHROME, calendarLocale, "en-US/");
err = performInstall();
if ( err == SUCCESS ) {
alert("The Mozilla Calendar has been succesfully installed. \n"
+"Please restart your browser to continue.");
}
else {
alert("performInstall() failed. \n"
+"_____________________________\nError code:" + err);
cancelInstall(err);
}
}
else {
alert("Failed to create directory. \n"
+"You probably don't have appropriate permissions \n"
+"(write access to mozilla/chrome directory). \n"
+"_____________________________\nError code:" + err);
cancelInstall(err);
}