pjs/xpinstall/packager/mac/install.jst

31 строка
959 B
Plaintext

var err = startInstall("Mozilla Seamonkey", "Seamonkey", "$Version$");
logComment("startInstall: " + err);
var communicatorFolder = getFolder("Communicator");
logComment("communicatorFolder: " + communicatorFolder);
var subFolder = "Mozilla Folder";
err = addDirectory("Program",
"$Version$",
"viewer", // jar source folder
communicatorFolder, // target folder
subFolder, // target subdir
false); // force flag
logComment("addDirectory() returned: " + err);
// delete the component registry
var ignoreErr = fileDelete(communicatorFolder + subFolder + ":Component Registry");
logComment("fileDelete() returned: " + ignoreErr);
if (err==SUCCESS || err==REBOOT_NEEDED)
{
err = finalizeInstall();
logComment("finalizeInstall() returned: " + err);
}
else
{
abortInstall();
logComment("abortInstall() returned: " + err);
}