fixing bug 81601 - Left over files from 6.0/6.01 after updating to current build. r=sgehani,sr=mscott,a=pdt2,drivers@mozilla.org. affects only windows platforms. not part of tinderbox builds.

This commit is contained in:
ssu%netscape.com 2001-05-25 23:01:29 +00:00
Родитель e91a8af6cd
Коммит f7cbdaf546
4 изменённых файлов: 21 добавлений и 32 удалений

Просмотреть файл

@ -284,11 +284,12 @@ function updateWinReg()
function upgradeCleanup()
{
// uncomment these function calls after beta1
// deleteThisFile("Program", "oji.dll");
// deleteThisFile("Program", "jsdom.dll");
// deleteThisFile("Program", "defaults/pref/psm-glue.js");
// deleteThisFile("Program", "defaults/wallet/URLFieldSchema.tbl");
// Obsolete files from Netscape 6.0 and Netscape 6.01 that
// need to be cleaned up.
deleteThisFile("Program", "oji.dll");
deleteThisFile("Program", "jsdom.dll");
deleteThisFile("Program", "defaults/pref/psm-glue.js");
deleteThisFile("Program", "defaults/wallet/URLFieldSchema.tbl");
deleteThisFile("Components", "gkhtml.dll");
deleteThisFile("Components", "mozucth.dll");
}

Просмотреть файл

@ -180,8 +180,9 @@ function createShortcuts()
function upgradeCleanup()
{
// uncomment this function call after beta1
// deleteThisFile("Components", "signed.dll");
// Obsolete files from Netscape 6.0 and Netscape 6.01 that
// need to be cleaned up.
deleteThisFile("Components", "signed.dll");
}
// main

Просмотреть файл

@ -1,8 +1,14 @@
function upgradeCleanup()
{
// Obsolete files from Netscape 6.0 and Netscape 6.01 that
// need to be cleaned up.
deleteThisFile("Components", "psmglue.dll");
}
// main
var srDest;
var err;
var fProgram;
var target;
$Ren8dot3List$
@ -27,16 +33,11 @@ if(verifyDiskSpace(fProgram, srDest))
true); // Force Flag
logComment("addDirectory() returned: " + err);
target = getFolder("Components", "psmglue.dll");
if (File.exists(target) > 0)
{
var rmErr = File.remove(target);
logComment("File.remove of " + target + " returned: " + rmErr);
}
// check return value
if(err == SUCCESS)
{
upgradeCleanup();
var pki = getFolder("Chrome", "pippki.jar");
var nss = getFolder("Chrome", "pipnss.jar");
registerChrome(CONTENT | DELAYED_CHROME, pki, "content/pippki/");

Просмотреть файл

@ -81,23 +81,9 @@ function updateWinReg()
function upgradeCleanup()
{
var fComponentReg;
var fXpti;
fComponentReg = getFolder("Program", "component.reg");
logComment("Component.reg file: " + fComponentReg);
if(File.exists(fComponentReg))
fileDelete(fComponentReg);
fXpti = getFolder("Components", "xpti.dat");
logComment("xpti.dat file: " + fXpti);
if(File.exists(fXpti))
fileDelete(fXpti);
fXpti = getFolder("Components", "xptitemp.dat");
logComment("xptitemp.dat file: " + fXpti);
if(File.exists(fXpti))
fileDelete(fXpti);
deleteThisFile("Program", "component.reg");
deleteThisFile("Components", "xpti.dat");
deleteThisFile("Components", "xptitemp.dat");
}
// main