2000-08-25 04:45:41 +04:00
|
|
|
var srDest = $SpaceRequired$;
|
|
|
|
|
2000-07-13 06:56:21 +04:00
|
|
|
var err = initInstall("Talkback", "/FullCircle/TalkBack", "$Version$");
|
|
|
|
logComment("initInstall: " + err);
|
|
|
|
|
|
|
|
var communicatorFolder = getFolder("Program");
|
|
|
|
logComment("communicatorFolder: " + communicatorFolder);
|
|
|
|
|
2000-08-25 04:45:41 +04:00
|
|
|
if (verifyDiskSpace(communicatorFolder, srDest))
|
|
|
|
{
|
|
|
|
err = addDirectory("Program",
|
|
|
|
"$Version$",
|
|
|
|
"bin", // jar source folder
|
|
|
|
communicatorFolder, // target folder
|
|
|
|
"", // target subdir
|
|
|
|
true ); // force flag
|
2000-07-13 06:56:21 +04:00
|
|
|
|
2000-08-25 04:45:41 +04:00
|
|
|
logComment("addDirectory() returned: " + err);
|
2000-07-13 06:56:21 +04:00
|
|
|
|
2000-08-25 04:45:41 +04:00
|
|
|
if (err==SUCCESS)
|
|
|
|
{
|
|
|
|
err = performInstall();
|
|
|
|
logComment("performInstall() returned: " + err);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
cancelInstall(err);
|
|
|
|
logComment("cancelInstall() returned: " + err);
|
|
|
|
}
|
2000-07-13 06:56:21 +04:00
|
|
|
}
|
|
|
|
else
|
2000-08-25 04:45:41 +04:00
|
|
|
cancelInstall(INSUFFICIENT_DISK_SPACE);
|