mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-15 11:13:29 +00:00
34 lines
970 B
Plaintext
34 lines
970 B
Plaintext
// main
|
|
var srDest;
|
|
var err;
|
|
var communicatorFolder;
|
|
|
|
srDest = $SpaceRequired$:bin;
|
|
err = startInstall("Mozilla Mail", "", "$Version$");
|
|
logComment("startInstall: " + err);
|
|
// check return value
|
|
checkError(err);
|
|
|
|
communicatorFolder = getFolder("Communicator");
|
|
logComment("communicatorFolder: " + communicatorFolder);
|
|
|
|
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
|
|
true); // Force Flag
|
|
logComment("addDirectory() returned: " + err);
|
|
|
|
// check return value
|
|
if(!checkError(err))
|
|
{
|
|
err = finalizeInstall();
|
|
logComment("finalizeInstall() returned: " + err);
|
|
}
|
|
}
|
|
|
|
// end main
|