Windows Setup

Windows Setup is the main setup process used to install Windows.

Windows 9x
In Windows 9x versions, .CAB files are used for the installation. Mostly known .CAB installation files include:


 * WIN95.CAB, WIN98.CAB and WINME.CAB: They contain the main system apps and files.
 * DRIVER.CAB: Contains the driver files for Windows.
 * NET.CAB: Contains networking and internet components.

Windows Server 2003 and earlier
Since their inception, NT-based version used INF files to describe the file system layout and registry settings along with individually compressed files, similarly to other Microsoft products at the time. The user interface underwent multiple changes until its deprecation during Windows Vista development, but the key principles stayed the same.

Due to the operating system files being stored in the  directory on x86 architecture media, it is also often called the i386 setup, although files for other architectures used different names for the directory. Inside that directory are operating system files that are usually compressed and had their last extension character replaced with an underscore. The files use 8.3 format filenames for compatibility with MS-DOS, with the full name stored inside. Although original media usually comes with most files compressed, the compression is optional.

The installation process consists of two major phases. The first phase runs in text mode using a minimal NT environment, usually booted directly from a CD-ROM disc. It may optionally be preceded by running the Setup in an existing Windows environment or by running  from MS-DOS, which would copy the first phase environment to the boot disk and then reboot into it. It determines the hardware configuration, performs partition management, installs the core operating system and prepares for the next phase to run. The second phase runs in graphical mode and installs the rest of the operating system, as well as configures the network, date/time and asks for a product key. Starting with Windows 2000, the Network Identification Wizard runs at first boot that allows the user to configure automatic logon. This evolved into a full-on out of box experience with Windows XP.

Windows Vista and later
Windows Longhorn build 4001 introduced the WIM installation format. This installation format boots the operating system via WinPE which launches the setup interface, the WIM file gets imaged to the computer's hard disk and the rest of the image gets worked around that.

Even though it was first introduced with Windows Vista, Windows XP can be imaged as WIM as well. Examples can be seen in the Windows Embedded for Point of Service and Windows Fundamentals for Legacy PCs operating systems.

Setup graphical assets are stored in spwizimg.dll on Windows Vista and later; Windows Longhorn pre-reset builds store them in win32ui.dll and win32uitheme.dll.

The ESD (Electronic Software Distribution) format has been introduced with Windows 8.1. Compared to WIM, ESD files are smaller and cannot be mounted or edited without converting to WIM first.