Windows – Why the multiple reboots installing Windows 7

installerrebootwindowswindows 7

I just installed Windows 7 on my non-PC and was struck by how many times the Windows installer reboots during installation. It even tells you on the screen during installation that the computer will reboot multiple times.

I know Microsoft must have a good reason for this, but I'm completely baffled why this is necessary. Installation simply writes to the disk, and because the system has booted off the DVD, it already has full write access to the target hard drive partition.

Is Windows in fact installing a preliminary disk image and then booting off of that instead of the DVD in order to speed up installation? (Though that then raises the question, why two reboots?)

It probably seemed like more than that because I had to do an extra reboot initially (back to my host OS) to fix the format of my partition, and then there were the subsequent reboots for Windows updates.

Best Answer

Actually, there are only two reboots during the entire Windows 7 installation process:


Windows 7 prepares the target installation media (hard drive or SSD), formats if necessary, and copies the base installation files for a quicker install, and decompresses them. This also installs the basic Windows Kernel for use in the next step of the installation.


First Reboot

After rebooting, the system is boots into the Windows 7 kernel. Here, all of the packages and drivers are installed. Once this step is completed, you need to reboot the system to Windows will reload all of the newly installed hardware and drivers that it detected during the install. This also lets essential Windows components be activated and installed as services that start upon boot.


Second Reboot

You now have a fully installed version of Windows 7 on your hard drive, with all necessary drivers (motherboard, disk interfaces, controllers, etc...). All final installation processes (OOBE, performance indexing, and cleanup) is done. The system does not reboot after this point, since the install is now technically complete.


As for why this is necessary, DVD media is very slow compared to a hard drive. This is why the installation files are actually copied to disk before they are even decompressed. Furthermore, to maintain compatibility with a large number of systems, a reduced system kernel is used to start the installation, which afterward, the drivers specific to your system are used to boot up after the second reboot.

This is similar to the Linux installation process, with the exception of a few more reboots (most Linux distributions can perform the system preparations and driver installations in one step, eliminating the need for the second reboot). Note that the number of reboots during the installation has remained the same since Windows 95 (the only exceptions being if an error occurs, where you may experience more reboots then necessary).

Related Question