зеркало из https://github.com/mozilla/pjs.git
31 строка
938 B
Plaintext
31 строка
938 B
Plaintext
|
var err = startInstall("Mozilla Seamonkey", "Seamonkey", "$Version$");
|
||
|
logComment("startInstall: " + err);
|
||
|
|
||
|
var communicatorFolder = getFolder("Communicator");
|
||
|
logComment("communicatorFolder: " + communicatorFolder);
|
||
|
|
||
|
err = addDirectory("Program",
|
||
|
"$Version$",
|
||
|
"bin", // jar source folder
|
||
|
communicatorFolder, // target folder
|
||
|
"", // target subdir
|
||
|
true ); // force flag
|
||
|
|
||
|
logComment("addDirectory() returned: " + err);
|
||
|
|
||
|
// create the plugins folder next to mozilla
|
||
|
var pluginsFolder = getFolder("Plugins");
|
||
|
var ignoreErr = dirCreate(pluginsFolder);
|
||
|
logComment("dirCreate() returned: " + ignoreErr);
|
||
|
|
||
|
if (err==SUCCESS || err==REBOOT_NEEDED)
|
||
|
{
|
||
|
err = finalizeInstall();
|
||
|
logComment("finalizeInstall() returned: " + err);
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
abortInstall();
|
||
|
logComment("abortInstall() due to error: " + err);
|
||
|
}
|