1384 |
|
// Special code to replace our special files -- the Oni app, OniSplit, the Daodan DLL, and the GUI for OniSplit |
1385 |
|
if (exists(strPathToEUFN + strOniApp)) |
1386 |
|
{ |
1387 |
< |
if (exists(strOniApp)) |
1387 |
> |
if (exists("../" + strOniApp)) |
1388 |
|
#ifdef WIN32 |
1389 |
< |
remove((path)strOniApp); |
1389 |
> |
remove((path)("../" + strOniApp)); |
1390 |
|
#else |
1391 |
< |
rename((path)strOniApp, (path)(strTrashDir + strOniApp)); |
1391 |
> |
rename((path)("../" + strOniApp), (path)(strTrashDir + strOniApp)); |
1392 |
|
#endif |
1393 |
< |
rename((path)(strPathToEUFN + strOniApp), (path)strOniApp); |
1393 |
> |
rename((path)(strPathToEUFN + strOniApp), (path)("../" + strOniApp)); |
1394 |
|
} |
1395 |
|
if (updateAE->OniSplitVersion.compare(currentAE->OniSplitVersion) >= 1) |
1396 |
|
{ |
1513 |
|
|
1514 |
|
// Clean up after ourselves, trashing any packages or programs in the update package that are not newer than the current AE |
1515 |
|
#ifdef WIN32 |
1516 |
< |
remove((path)strPathToEUFN); |
1516 |
> |
remove_all((path)strPathToEUFN); |
1517 |
|
#else |
1518 |
|
create_directory(strTrashDir + "Unneeded update files"); |
1519 |
|
rename((path)strPathToEUFN, (path)(strTrashDir + "Unneeded update files/" + strEUFN)); |