mirror of
https://github.com/rn10950/RetroZilla.git
synced 2024-11-10 01:40:17 +01:00
34 lines
916 B
Plaintext
34 lines
916 B
Plaintext
var srDest = $SpaceRequired$;
|
|
|
|
var err = initInstall("Mozilla Editor", "Editor", "$Version$");
|
|
logComment("initInstall: " + err);
|
|
|
|
var fProgram = getFolder("Program");
|
|
logComment("fProgram: " + fProgram);
|
|
|
|
if (verifyDiskSpace(fProgram, srDest))
|
|
{
|
|
err = addDirectory("Program",
|
|
"$Version$",
|
|
"bin", // jar source folder
|
|
fProgram, // target folder
|
|
"", // target subdir
|
|
true ); // force Flag
|
|
|
|
logComment("addDirectory() returned: " + err);
|
|
|
|
err = getLastError();
|
|
if (err==SUCCESS || err==REBOOT_NEEDED)
|
|
{
|
|
err = performInstall();
|
|
logComment("performInstall() returned: " + err);
|
|
}
|
|
else
|
|
{
|
|
cancelInstall(err);
|
|
logComment("cancelInstall() due to error: " + err);
|
|
}
|
|
}
|
|
else
|
|
cancelInstall(INSUFFICIENT_DISK_SPACE);
|