Have tried the compa: test OK but when trying to install Windows 7 Home I get cannot install due to code5
Is this from a Microsoft official DVD or are you working from a download? If downloaded, did you burn the ISO correctly? Are the BIOS settings as original fixed by the manufacturer or has there been some overclocking along the way? That could upset W7.