Since Windows 7 doesn't come on CD I take it you meant DVD. If not, tell how you fit 7 on a CD.
The error message is typical if one formats a drive prior to installing 7. Blank the drive, leave it with no partitions and try again.
I recently purchased
http://www.amazon.co.uk/gp/product/B00CNVA2BQ?psc=1&redirect=true&ref_=oh_aui_detailpage_o04_s00
as a replacement drive for my laptop as my previous one had gone bust.
After inserting it and attempting to install windows 7 from a cd i recieved the error
“Windows Setup could not configure Windows on this computer’s hardware”
finding an online suggestion i did the following:
"At the first error hit SHIFT F10
Type -
Cd..
Cd..
Cd c:\windows\system32\oobe
Msoobe"
which allowed me to install. But when using windows multiple programs were having problems installing or running. Including being unable to update my graphics drivers or install .net framework v4.0
Realising i may have made a mistake i attempted to reinstall windows. But now i believe i have made things worse. i am now stuck on system recovery options with repair not working. I want to wipe the HDD and start again from scratch. I have read that i may need to install a driver to allow this hdd to be compatible with my copy of windows 7. 64 bit. An intel raid driver?
If it is indeed the best option how do i go about wiping it all and starting again, then what drivers do i need to allow my HD to be compatable and how do i install them when the error presents itself. I have spend many hours researching and attempting to fix it but i am close to giving up. If anybody has any suggestions it would be greatly appreciated.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic