I can't install .NET framework. System crash
The problem was that my computer was shutting down due to abnormal processor temperature. That's why I couldn't install .NET framework and some other programs. I solved this by going to Control Panel -> Hardware and Sound -> Power Options -> Change plan settings (on the active power plan) -> Change advanced power settings, and setting the Maximum processor state from 100% to 75% like this:
This worked for me.