gecko-dev/xpinstall/packager/unix/editor.jst

34 lines
953 B
Plaintext
Raw Normal View History

var srDest = $SpaceRequired$;
var err = initInstall("Mozilla Editor", "Editor", "$Version$");
logComment("initInstall: " + err);
1999-10-18 21:44:15 +00:00
var communicatorFolder = getFolder("Program");
logComment("communicatorFolder: " + communicatorFolder);
1999-10-18 21:44:15 +00:00
if (verifyDiskSpace(communicatorFolder, srDest))
{
err = addDirectory("Program",
"$Version$",
"bin", // jar source folder
communicatorFolder, // target folder
"", // target subdir
true ); // force Flag
1999-10-18 21:44:15 +00:00
logComment("addDirectory() returned: " + err);
err = getLastError();
if (err==SUCCESS)
{
err = performInstall();
logComment("performInstall() returned: " + err);
}
else
{
cancelInstall(err);
logComment("cancelInstall() due to error: " + err);
}
}
else
cancelInstall(INSUFFICIENT_DISK_SPACE);