If windows 7. You need .net framework 3.5
If winows 8.1 and later.
You need to enable
.netframework 2 - 3.5 by
METHOD 1: enabling it under control panel > program and features > turn on / off features. (Internet connection required)
METHOD 2: by DISM COMMAND inside elevated command prompt prompt.
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:%driveletter%:\sources\sxs
Take note : %driveletter% is the assigned letter of the drive/optical drive where windows installer is located