1999-11-23 01:50:30 +03:00
|
|
|
// main
|
|
|
|
var srDest;
|
|
|
|
var err;
|
|
|
|
var communicatorFolder;
|
1999-09-15 00:50:22 +04:00
|
|
|
|
1999-11-23 01:50:30 +03:00
|
|
|
srDest = $SpaceRequired$:bin;
|
|
|
|
err = startInstall("Mozilla Mail", "", "$Version$");
|
|
|
|
logComment("startInstall: " + err);
|
|
|
|
// check return value
|
|
|
|
checkError(err);
|
1999-09-15 00:50:22 +04:00
|
|
|
|
1999-11-23 01:50:30 +03:00
|
|
|
communicatorFolder = getFolder("Communicator");
|
|
|
|
logComment("communicatorFolder: " + communicatorFolder);
|
1999-09-15 00:50:22 +04:00
|
|
|
|
1999-11-23 01:50:30 +03:00
|
|
|
if(verifyDiskSpace(communicatorFolder, srDest) == true)
|
|
|
|
{
|
|
|
|
err = addDirectory("Program",
|
|
|
|
"$Version$",
|
|
|
|
"bin", // dir name in jar to extract
|
|
|
|
communicatorFolder, // Where to put this file (Returned from GetFolder)
|
|
|
|
"", // subdir name to create relative to communicatorFolder
|
1999-11-24 17:55:56 +03:00
|
|
|
true); // Force Flag
|
1999-11-23 01:50:30 +03:00
|
|
|
logComment("addDirectory() returned: " + err);
|
1999-09-15 00:50:22 +04:00
|
|
|
|
1999-11-23 01:50:30 +03:00
|
|
|
// check return value
|
|
|
|
if(!checkError(err))
|
|
|
|
{
|
|
|
|
err = finalizeInstall();
|
|
|
|
logComment("finalizeInstall() returned: " + err);
|
|
|
|
}
|
|
|
|
}
|
1999-09-15 00:50:22 +04:00
|
|
|
|
1999-11-23 01:50:30 +03:00
|
|
|
// end main
|