June 29th, 2005

Why isn't Windows Setup just a disk reimage plus a registry dump?

Why can’t all the registry key needed by Windows Setup be precomputed and splorted at one go? One reason is that Windows Setup can be customized via a so-called “unattend file“, which means that a lot of the work cannot be precalculated. Some settings also have cascade effects on other settings. Also, the model for component registration is to make each component responsible for its own registration, which can in turn be context-sensitive: “If the system has configuration x, then do y else z”. Internet Explorer’s component registration for example contains many conditional sections based on the installation configuration specified in the unattend file and the even fancier Winbom.ini file used by Sysprep-based deployment (which is used by computer manufacturers and large corporations). Making each component responsible for its own registration reduces entanglements between components but also means that “global optimizations” such as precalculating the registry cannot be done. Engineering is about tradeoffs and this is one of them: Maintainability vs. speed. (Of course, there are sections of the registry that are not context-sensitive, and those to some degree have already been gathered together for block copying onto the machine during Windows Setup. Look at the HIVExxx.INF files on your Windows XP CD.)

That said, it appears that Longhorn setup is moving towards the “disk image” model. I wish them luck.

Topics
Other

Author

Raymond has been involved in the evolution of Windows for more than 30 years. In 2003, he began a Web site known as The Old New Thing which has grown in popularity far beyond his wildest imagination, a development which still gives him the heebie-jeebies. The Web site spawned a book, coincidentally also titled The Old New Thing (Addison Wesley 2007). He occasionally appears on the Windows Dev Docs Twitter account to tell stories which convey no useful information.

0 comments

Discussion are closed.