2001-05-26 03:01:29 +04:00
|
|
|
function upgradeCleanup()
|
|
|
|
{
|
|
|
|
// Obsolete files from Netscape 6.0 and Netscape 6.01 that
|
|
|
|
// need to be cleaned up.
|
2001-06-22 09:31:10 +04:00
|
|
|
deleteThisFile("Program", "psm.exe");
|
2001-05-26 03:01:29 +04:00
|
|
|
deleteThisFile("Components", "psmglue.dll");
|
|
|
|
}
|
|
|
|
|
2000-12-22 05:49:33 +03:00
|
|
|
// main
|
|
|
|
var srDest;
|
|
|
|
var err;
|
|
|
|
var fProgram;
|
|
|
|
|
|
|
|
$Ren8dot3List$
|
|
|
|
|
|
|
|
srDest = $SpaceRequired$:bin;
|
|
|
|
err = initInstall("Personal Security Manager", "Personal Security Manager", "$Version$");
|
|
|
|
logComment("initInstall: " + err);
|
|
|
|
|
|
|
|
fProgram = getFolder("Program");
|
|
|
|
logComment("fProgram: " + fProgram);
|
|
|
|
|
|
|
|
if(verifyDiskSpace(fProgram, srDest))
|
|
|
|
{
|
|
|
|
setPackageFolder(fProgram);
|
|
|
|
|
|
|
|
$Ren8dot3Call$
|
|
|
|
|
2001-11-10 03:41:16 +03:00
|
|
|
upgradeCleanup();
|
2000-12-22 05:49:33 +03:00
|
|
|
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);
|
|
|
|
|
|
|
|
// check return value
|
|
|
|
if(err == SUCCESS)
|
|
|
|
{
|
2001-05-26 03:01:29 +04:00
|
|
|
|
2001-04-14 03:50:22 +04:00
|
|
|
var pki = getFolder("Chrome", "pippki.jar");
|
|
|
|
var nss = getFolder("Chrome", "pipnss.jar");
|
2001-04-15 22:32:55 +04:00
|
|
|
registerChrome(CONTENT | DELAYED_CHROME, pki, "content/pippki/");
|
|
|
|
registerChrome(CONTENT | DELAYED_CHROME, nss, "content/pipnss/");
|
2000-12-22 05:49:33 +03:00
|
|
|
err = performInstall();
|
|
|
|
logComment("performInstall() returned: " + err);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
cancelInstall(err);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
cancelInstall(INSUFFICIENT_DISK_SPACE);
|
|
|
|
|
|
|
|
// end main
|