зеркало из https://github.com/mozilla/pjs.git
fixing bug 71010, which is part of a fix for bug 81601, which got pdt approval. r=sgehani,sr=mscott,a=pdt2
This commit is contained in:
Родитель
db0b8ae0f3
Коммит
4e1f78ccd7
|
@ -20,3 +20,20 @@ function verifyDiskSpace(dirPath, spaceRequired)
|
|||
|
||||
return(true);
|
||||
}
|
||||
|
||||
// this function deletes a file if it exists
|
||||
function deleteThisFile(dirKey, file)
|
||||
{
|
||||
var fFileToDelete;
|
||||
|
||||
fFileToDelete = getFolder(dirKey, file);
|
||||
logComment(file + " file: " + fFileToDelete);
|
||||
if(File.exists(fFileToDelete))
|
||||
{
|
||||
fileDelete(fFileToDelete);
|
||||
return(true);
|
||||
}
|
||||
else
|
||||
return(false);
|
||||
}
|
||||
|
||||
|
|
|
@ -282,6 +282,17 @@ 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");
|
||||
deleteThisFile("Components", "gkhtml.dll");
|
||||
deleteThisFile("Components", "mozucth.dll");
|
||||
}
|
||||
|
||||
// main
|
||||
var srDest;
|
||||
var err;
|
||||
|
@ -320,6 +331,8 @@ if(verifyDiskSpace(fProgram, srDest))
|
|||
{
|
||||
updateWinReg();
|
||||
createShortcuts();
|
||||
upgradeCleanup();
|
||||
|
||||
// we don't want to fail on errors for the above two
|
||||
resetError();
|
||||
|
||||
|
|
|
@ -178,6 +178,12 @@ function createShortcuts()
|
|||
}
|
||||
}
|
||||
|
||||
function upgradeCleanup()
|
||||
{
|
||||
// uncomment this function call after beta1
|
||||
// deleteThisFile("Components", "signed.dll");
|
||||
}
|
||||
|
||||
// main
|
||||
var srDest;
|
||||
var err;
|
||||
|
@ -210,6 +216,8 @@ if(verifyDiskSpace(fProgram, srDest))
|
|||
if( err == SUCCESS )
|
||||
{
|
||||
createShortcuts();
|
||||
upgradeCleanup();
|
||||
|
||||
// we don't want to fail on errors for the above
|
||||
resetError();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче