fixing bug 198081 - Old GRE's left on disk when upgrading Mozilla. r=dveditz, sr=jag, a=dbaron

git-svn-id: svn://10.0.0.236/trunk@144689 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ssu%netscape.com
2003-07-10 23:42:07 +00:00
parent a1f5fa1b48
commit ee3d4db724
5 changed files with 245 additions and 6 deletions

View File

@@ -3067,6 +3067,17 @@ void CommitInstall(void)
if(RetrieveResults == WIZ_OK)
{
// Clean up old versions of GRE previously installed.
// These GREs should only be fully uninstalled if they were only
// being used by the mozilla that we're installing over/ontop of
// (upgrade scenario).
// We should only do this type of cleanup if we're about to install'
// GRE in shared mode.
//
// This should only be called when the installer is installing GRE!
if(IsInstallerProductGRE())
CleanupOrphanedGREs();
if(sgProduct.bInstallFiles)
{
/* Check to see if Turbo is required. If so, set the