How to win "Cannot boot from CD - Code 5" when installing Windows 7
On some computers, when installing Windows 7, namely, at the stage of loading from dvd, the following message appears: “Cannot boot from CD - Code 5”. Digging in nete gave several solutions. The first is to rebuild the image (which works on other computers with a bang) or using Linux. First, we rebuild the image with the substitution of the install.wim file.
Take (download) disk (image) with Vista SP1 / 2008
Copy the contents of the disk folder "boot" and the files autorun.inf, bootmgr and setup.exe from the root of the disk (image) Vista SP1 / 2008 (or unpack the image using 7Zip or WinRAR) in c: \ efi-dvd
Find in the folder “Sources” the largest file “install.wim” and replace it with the file from the installation disk (image) of Windows 7
From the disk (image) of Windows 7 we copy all other folders