If the method above fails, or if the target computer is not connected to the internet, you will need the offline installer package. This is often required when Windows Update gets stuck or throws error codes (like 0x800F0906).
(Replace D: with your media drive letter) download net framework 3.5 sp1
Here are a few options: