Error installing microsoft. Net framework 4.5: installation did not succeed net framework

This error is due to your update directory error you can try to fix the following:
Press windows + r to open the CMD
net stop wuauserv
Then click on Start -> Type and Run:% windir%
Enter ==> 1 folder will open up rename the SoftwareDistribution folder to SoftwareDistribution_old or any name.
Go back to CMD and type in the command line
net stop wuauserv
Then install try again offline