2000-05-24 18:08:46 +04:00
|
|
|
var err = initInstall("Mozilla Seamonkey", "Seamonkey", "$Version$");
|
|
|
|
logComment("initInstall: " + err);
|
2000-04-05 09:06:29 +04:00
|
|
|
|
2000-05-24 18:08:46 +04:00
|
|
|
var communicatorFolder = getFolder("Program");
|
2000-04-05 09:06:29 +04:00
|
|
|
logComment("communicatorFolder: " + communicatorFolder);
|
|
|
|
|
|
|
|
err = addDirectory("Program",
|
|
|
|
"$Version$",
|
|
|
|
"bin", // jar source folder
|
|
|
|
communicatorFolder, // target folder
|
|
|
|
"", // target subdir
|
|
|
|
true ); // force flag
|
|
|
|
|
|
|
|
logComment("addDirectory() returned: " + err);
|
|
|
|
|
2000-05-24 18:08:46 +04:00
|
|
|
if (err==SUCCESS)
|
2000-04-05 09:06:29 +04:00
|
|
|
{
|
2000-05-24 18:08:46 +04:00
|
|
|
err = performInstall();
|
|
|
|
logComment("performInstall() returned: " + err);
|
2000-04-05 09:06:29 +04:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2000-05-24 18:08:46 +04:00
|
|
|
cancelInstall(err);
|
|
|
|
logComment("cancelInstall() returned: " + err);
|
2000-04-05 09:06:29 +04:00
|
|
|
}
|