in this video you can learn How to Fix Net Framework Installation did not succeed HRESULT 0xc8000222 Error. this is very simple way just 2 minutes
1 when installation failed go to run search services
2 fine there windows update and stop it
3 then go to run type %windir% and find software distributions and change this folder name SDold