mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-14 15:37:55 +00:00
48 lines
1.2 KiB
Plaintext
48 lines
1.2 KiB
Plaintext
// main
|
|
var srDest;
|
|
var err;
|
|
var fProgram;
|
|
|
|
$Ren8dot3List$
|
|
|
|
srDest = $SpaceRequired$:bin;
|
|
err = initInstall("Mozilla Mail", "Mail", "$Version$");
|
|
logComment("initInstall: " + err);
|
|
|
|
fProgram = getFolder("Program");
|
|
logComment("fProgram: " + fProgram);
|
|
|
|
if(verifyDiskSpace(fProgram, srDest))
|
|
{
|
|
setPackageFolder(fProgram);
|
|
|
|
$Ren8dot3Call$
|
|
|
|
err = addDirectory("",
|
|
"$Version$",
|
|
"bin", // dir name in jar to extract
|
|
fProgram, // Where to put this file (Returned from GetFolder)
|
|
"", // subdir name to create relative to fProgram
|
|
true); // Force Flag
|
|
logComment("addDirectory() returned: " + err);
|
|
|
|
// register chrome
|
|
err = registerChrome(CONTENT | DELAYED_CHROME,
|
|
getFolder("Chrome","messenger.jar"),
|
|
"content/messenger/");
|
|
logComment("registerChrome() returned: "+err);
|
|
|
|
// check return value
|
|
if(err == SUCCESS)
|
|
{
|
|
err = performInstall();
|
|
logComment("performInstall() returned: " + err);
|
|
}
|
|
else
|
|
cancelInstall(err);
|
|
}
|
|
else
|
|
cancelInstall(INSUFFICIENT_DISK_SPACE);
|
|
|
|
// end main
|