If you have XP then use Windows Update to load the ones that are required (it will show up under optional or custom updates)
If you have Vista or Win 7 then look to see if you have 3.5 or 3.5 sp1 installed already. If not then load 3.5 1st, SP1 next, then 4.0
I believe that 7 had 3.5 pre...