Solve windows update error or installation failed.
This will work with Windows 10, Windows 8.1, Windows 8 and Windows 7.

Steps:
1: Open Services.msc
2: Find Two services and stop those service
3: Delete files from Software Distribution
4. Restart stopped services
5: Download updates from Microsoft catalog
6: install updates