mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-14 15:37:55 +00:00
34 lines
962 B
Plaintext
34 lines
962 B
Plaintext
var srDest = $SpaceRequired$;
|
|
|
|
var err = initInstall("$AppDisplayName$ Editor", "Editor", "$Version$");
|
|
logComment("initInstall: " + err);
|
|
|
|
var communicatorFolder = getFolder("Program");
|
|
logComment("communicatorFolder: " + communicatorFolder);
|
|
|
|
if (verifyDiskSpace(communicatorFolder, srDest))
|
|
{
|
|
err = addDirectory("Program",
|
|
"$Version$",
|
|
"bin", // jar source folder
|
|
communicatorFolder, // target folder
|
|
"", // target subdir
|
|
true ); // force Flag
|
|
|
|
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);
|