Clean install windows 8.1 for new cpu and mobo?

Dmt317

Honorable
Jan 5, 2014
126
0
10,690
Not sure if this is the right section or not but I am upgrading my cpu and motherboard and am going to do a clean install of windows 8.1 so I do not run into any problems. Really my only question is do I need to install windows before or after installing the new hardware? I am pretty sure the answer is after but just wanting to make sure. and is there any other tricky things that I might encounter