iquercorb / OpenModMan

Open Mod Manager - Open source and generic Mod ("Modifications") manager.
GNU General Public License v3.0
95 stars 5 forks source link

Uninstall Error conflict #114

Closed Snacko closed 2 months ago

Snacko commented 2 months ago

Ok, so I've been using OvGME for years, and yesterday it had an error removing a mod. I had tried to uninstall it while DCS was running, and the file was locked. Ok, no biggie.... I'll just go to the Backup folder and restore the original manually.

But it's not there! There is nothing in the Backup folder!? The original was gone... So, I looked at the log and it showed the error, and after the error it said cleanup or something..

I think that after it failed to uninstall the mod, and failed to overwrite the mod file with the backup, ....
it went ahead and cleaned up.. and deleted the original!!

So, after restoring the DCS game to get the original file back, I installed Open Mod Manager. Which did the same thing just now!

If it gets any Error when restoring the original files it should not delete them!

iquercorb commented 2 months ago

Changed restoration logic to prevent backup data to be deleted in case of error during data restoration, will be active in the next release.

Snacko commented 2 months ago

Great, thanks!