Ignore:
Timestamp:
May 27, 2010, 1:28:22 AM (14 years ago)
Author:
gumby
Message:

fixing broken code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • AE/Installer/trunk/source/installer.cpp

    r549 r550  
    13851385        if (exists(strPathToEUFN + strOniApp))
    13861386        {
    1387                 if (exists(strOniApp))
     1387                if (exists("../" + strOniApp))
    13881388#ifdef WIN32
    1389                         remove((path)strOniApp);
     1389                        remove((path)("../" + strOniApp));
    13901390#else
    1391                         rename((path)strOniApp, (path)(strTrashDir + strOniApp));
    1392 #endif
    1393                 rename((path)(strPathToEUFN + strOniApp), (path)strOniApp);
     1391                        rename((path)("../" + strOniApp), (path)(strTrashDir + strOniApp));
     1392#endif
     1393                rename((path)(strPathToEUFN + strOniApp), (path)("../" + strOniApp));
    13941394        }
    13951395        if (updateAE->OniSplitVersion.compare(currentAE->OniSplitVersion) >= 1)
     
    15141514        // Clean up after ourselves, trashing any packages or programs in the update package that are not newer than the current AE
    15151515#ifdef WIN32
    1516         remove((path)strPathToEUFN);
     1516        remove_all((path)strPathToEUFN);
    15171517#else
    15181518        create_directory(strTrashDir + "Unneeded update files");
Note: See TracChangeset for help on using the changeset viewer.