
To get started, you’ll need a working PC with an Internet connection. Install
the Windows Automated Installation Kit (WAIK), available for free at http://
go.microsoft.com/fwlink/?LinkId=136976. Open the Windows PE Tools
Command Prompt from the Start menu, and if you’re installing the 32-bit
edition of Windows 7, type:
copype.cmd x86 c:\output
or if you’re installing the 64-bit (x64) edition, type:
copype.cmd amd64 c:\output
and press Enter. The batch file will create the c:\output folder automatically.
When the files have been copied, issue this command to mount the Windows
Preinstallation Environment (PE) image:
imagex /mountrw C:\output\winpe.wim 1 C:\output\mount
Next, open Windows Explorer and create a subfolder inside of c:\output named
boot. Copy all the files from c:\output\mount\Windows\Boot\PXE to the new
c:\output\boot folder. When that’s done, unmount the Windows PE image:
imagex /unmount C:\output\mount
Back in Windows Explorer, copy the boot.sdi file from the WAIK installation
folder to the c:\output\boot folder. If you’re installing the 32-bit edition of
Windows 7, get boot.sdi from C:\Program Files\Windows AIK\Tools\PETools
\x86\boot, or if you’re installing the 64-bit (x64) edition, get it from C:\Program
Files\Windows AIK\Tools\PETools\amd64\boot.
Return to the command prompt window and copy the winpe.wim file to the
boot folder and rename it to boot.wim, like this:
copy c:\output\winpe.wim c:\output\boot\boot.wim
After all that, there are a bunch of other tedious commands required to create
a Boot Configuration Data (BCD) file using bcdedit.exe, the same tool used in
“Set Up a Dual-Boot System” on page 26. For a shortcut, just download
makebcd.bat from http://files.creativelement.com/annoyances/makebcd.bat,
and run it on your PC. When prompted to cut and paste the GUID, right-click
any part of the command prompt window, select Mark, select the text in curly
braces just above the prompt, and press Enter to copy the text. Right-click
again, select Paste to paste the text, and press Enter to continue execution. If
all goes well, you’ll only see a series of messages stating that “The operation
completed successfully.”
The last step is to install Trivial File Transfer Protocol (TFTP) server software,
such as Tftp32 (free from http://tftpd32.jounin.net/) so the target PC can con-
nect to the working PC to retrieve the boot files. Install Tftp32 and start
16 | Chapter 1: Get Started with Windows 7
Comentários a estes Manuais