.NET Framework 4.0 can't be reinstalled on Windows 10 because it's integrated into the OS. For me issues were detected by the .NET Framework Setup Verification Tool (hint: the View Log button opens the full log, but there's a log with just errors in the same directory) but .NET Framework Repair Tool couldn't fix the problem.