a week ago paint.net was fine, then it crashed when i had a load of unsaved work done. When i reopened it, it crashed when i did some actions like create new or resize or delete etc. most actions i couldn't do. So i took the crash report and it told me to get a newer version, and i uninstalled paint.net, and tried to install it. But it wouldn't install, and randomly after running some compatibility options it worked. But kept crashing again. So i uninstalled again (don't actually know why) and tried to reinstall, it would send me this message at the end and fail
System.IO.IOException: The file or directory is corrupted and unreadable.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
at PaintDotNet.Setup.InstallingPage.<DoInstallation>d__48.MoveNext() in D:\src\pdn\src\SetupFrontEnd\InstallingPage.cs:line 993
at PaintDotNet.Threading.Tasks.IterativeTask.IterativeTaskAnon.<OnExecute>d__1.MoveNext() in D:\src\pdn\src\Core\Threading\Tasks\IterativeTask.cs:line 33
at PaintDotNet.Threading.Tasks.IterativeTask`1.<>c__DisplayClass10_0.<StepTask>b__0() in D:\src\pdn\src\Core\Threading\Tasks\IterativeTask`1.cs:line 74
I am running windows 8 and windows defender is my only antivirus.