Slipstreaming Windows XP with Service Pack 2 (SP2)
It's been a while since I've covered slipstreaming, or combining, a service pack into Windows (link), but the release of Windows XP Service Pack with Advanced Security Technologies (hereafter referred to as SP2) warrants some discussion. That's because XP SP2 is a huge change from the original shipping version of XP, offering as many new features and capabilities as a major new Windows version. For this reason, many people are going to want to install XP SP2 directly the next time they install Windows, and skip the time-consuming and potentially insecure step of installing the initial XP version first, and then applying SP2 after the fact.
For end users, slipstreaming can also be useful. For example, you can copy the installation directory from your XP CD-ROM to the hard drive, slipstream the XP SP2 files into that installation directory, and than write it back to a recordable CD, giving you a bootable copy of the XP setup disk that includes SP2 right out of the box (so to speak). That's the process we're going to examine here. And slipstreaming isn't limited to service packs, either: You can also slipstream in various product updates, including hot-fixes. Previous to the release of SP2, I created a bootable XP CD that included the original "gold" version of XP, Service Pack 1a, and the Security Rollup 1 update, all meshed together into a single install. Now, I've tossed that CD aside for one that includes XP SP2 instead. Let's take a look at how I did this.
Step 1: Copy your XP CD-ROM contents to the hard drive
First, you need to find your Windows XP CD-ROM (any bootable and/or retail version; including Full and Upgrade versions; XP Home or Pro "gold" release) and copy the contents of the CD to your hard drive. Create a folder in the root of your C: drive called xp (C:\xp) and use My Computer to simply drag and drop the files between the two locations.
Step 2: Get XP SP2 and extract it
While this is copying, obtain the Full Network Install version of Windows XP Service Pack 2 (272 MB), which you can download from the Microsoft Web site or copy from the Windows XP SP2 CD-ROM. The download version of this file is named WindowsXP-KB835935-SP2-ENU.exe, while the CD version is called xpsp2.exe. However, both are identical, save for the name. For this reason, I will refer to the simpler xpsp2.exe below, but you can substitute WindowsXP-KB835935-SP2-ENU.exe for that if needed. (You can also rename WindowsXP-KB835935-SP2-ENU.exe to xpsp2.exe if you'd like.) Now, create a new folder called sp2 on the C drive (C:\sp2) and then copy this file to that location.
Now, you need to extract the SP2 files. To do so, open up a command line window by navigating to Start, and then Run, and typing "cmd" (no quotes); then hit ENTER. Then, using the following commands, navigate to that folder and extract the files (Note that the text [ENTER] means hit the ENTER key):
xpsp2.exe -x:c:\sp2 [ENTER]
Your computer will seem to pause for a bit, and then an Extracting Files dialog will come up and display the progress.
When the extraction is done, the following dialog will appear. Press OK to continue.
If you navigate to C:\sp2 with Windows Explorer, you'll see a new folder called i386 that contains the extracted files.
Step 3: Combine XP with SP2
Now, type the following in the command line window (where [ENTER] means hit the ENTER key):
cd i386 [ENTER]
cd update [ENTER]
update -s:c:\xp [ENTER]
After a short pause, XP SP2 Setup will combine, or slipstream, the SP2 files into the XP install, as shown in this figure:
When it's completed, you'll see this dialog box. Click OK, and then close the command line window. If you don't see this dialog, you've done something wrong. Ensure that the command line entries you've used are correct.
Step 4: Extract a file needed to make your new CD bootable
Before we simply burn the resulting file set to a CD, we need to make sure we have a hidden file found on your XP CD-ROM that will make your new CD bootable. We can't grab this file with My Computer, but will instead use a shareware tool called ISOBuster, which you can find on the Smart Projects Web site. The latest version at the time of this writing is 1.6.
After you download and install ISOBuster, choose to use only the product's free functionality, unless you decide to purchase it, which wouldn't be a bad idea. The ISOBuster UI will resemble the following (assuming you've left your XP CD in the CD-ROM drive):
On the left-side tree view, make sure you have selected the node named Bootable CD. You should see a file called Microsoft Corporation.img (or similar; it will be named something.img) in the right side of ISOBuster. This is the file you need to extract. To do so, right-click and choose Extract Microsoft Corporation.img. When ISOBuster prompts you, choose to download it to the root of your C: drive. Now you can close ISOBuster.
Step 5: Make a bootable XP SP2 CD
Start My Computer and make a note of the name of your Windows XP CD (my CD happens to be named WXPVOL_EN because it's a volume licensed version of XP Pro, but yours will likely be different). Then, eject the XP CD and place a burnable CD (CD-R or CD-RW) in your CD burner, and dismiss any autorun dialog boxes XP might display.
Now, you're ready to burn your new, bootable Windows XP SP2 CD. How you do this will depend on the CD writing software you use. In this section, I'll examine Nero Burning ROM 6 and versions 5 and 6 of Roxio Easy CD/Media Creator. Please note, however, that the latest version of Easy Media Creator, version 7, will not work. I'm looking into workarounds. If you're interested in my advice, Nero is the way to go.
Step 5a: Make a bootable XP SP2 CD with Nero Burning ROM 6
First, start Nero Burning ROM and choose CD-ROM (Boot) from the New Compilation's Boot page. Then, under "Source of boot image data," choose "Image file" and select C:\Microsoft Corporation.img by clicking the Browse button. Then, select the option titled "Enable expert settings (for advanced users only)" and change "Kind of emulation" to No Emulation, and change "Number of loaded sectors" to 4. The "Load segment of sectors" option should remain at its default value of 07C0. When this step is completed, the Nero Burning ROM application should resemble the following:
Now, select the Label page in Nero Burning ROM. Under "Volume label, ISO 9660" enter the name of your CD (WXPVOL_EN in my case). When completed, this page of the dialog should resemble the following:
Now, click the New button. The New Compilation dialog disappears and the main window of Nero Burning ROM is available, as shown here.
On the right side of the application, in the File Browser area, navigate to C:\xp. Then, select all of the files inside of that directory and copy them over to the new CD, as shown here:
Now you're ready to burn the CD. Click the Burn icon in the toolbar, or choose Recorder and then Burn Compilation, and then click the Burn button. Nero will cache the files and then write them to disc, as shown here:
Now, jump down to Step 6...
Step 5b: Make a bootable XP SP2 CD with Roxio Easy Media Creator 5.x
Start Easy CD Creator and choose File, then New Project, and then Bootable CD. This will launch the Choose Type of Bootable CD dialog, shown below. In this dialog, select "No Emulation" for Bootable CD Type, 0x7c0 as the Load Segment (this is the default choice), and 4 for the Sector Count. Then, click the Browse button to locate the Microsoft Corporation.img file and use this as the bootable image. Click OK to close the dialog.
When the dialog closes, you're returned to the main Easy CD Creator window, which now shows two files, BOOTCAT.BIN and BOOTIMG.BIN, in the root of the CD project you're making. Select File and then CD Project Properties to launch the CD Project Properties dialog. There are three tabs in this dialog, and they should be configured to resemble the following three shots.
A couple of notes here: The Volume Label should match the name of your original XP CD-ROM. In the figure above, it's named WXPFPP_EN, which is the name of the retail Windows XP Professional (US) CD-ROM, but yours could be different. Make sure the options in each tab on your system match the options as shown in figures above, then click OK to close the dialog.
Now, drag and drop all of the files from C:\xp to the CD project. You can do this from within the Easy CD Creator interface, or you can open a My Computer window and drag them over from there if you'd like. When you're done, the Easy CD Creator window should resemble the following.
Now, click the red Record button to start burning the CD. The Record CD Setup dialog appears. Click Start Recording to begin. While your CD is created, the Record CD Progress dialog will appear, as shown below. When its done, click OK to close the dialog.
Now, jump down to Step 6...
Step 5c: Make a bootable XP SP2 CD with Roxio Easy CD & DVD Creator 6.x
Start Creator Classic and choose File, then New Project, and then Bootable CD. This will launch the Choose Type of Bootable CD dialog. Click the Advanced button and the dialog will resemble the figure shown below. In this dialog, select "No Emulation" for Bootable Disc Type, 0x7c0 as the Load Segment (this is the default choice), and 4 for the Sector Count. Then, click the Browse button to locate the Microsoft Corporation.img file and use this as the bootable image. Click OK to close the dialog.
When the dialog closes, you're returned to the main Creator Classic window, which now shows two files, BOOTCAT.BIN and Microsoft Corporation.img, in the root of the CD project you're making. Rename Microsoft Corporation.img to BOOTIMG.BIN.
Now, select File and then CD Project Properties to launch the CD Project Properties dialog. There are three tabs in this dialog, and they should be configured to resemble the following three shots.
A couple of notes here: The Volume Label in the first tab should match the name of your original XP CD-ROM. In the figure above, it's named WXPFPP_EN, which is the name of the retail Windows XP Professional (US) CD-ROM, but yours could be different. Make sure the options in each tab on your system match the options as shown in figures above, then click OK to close the dialog.
Now, drag and drop all of the files from C:\xp to the CD project. You can do this from within the Creator Classic interface, or you can open a My Computer window and drag them over from there if you'd like. During the copy process, you will receive approximately three error dialogs noting that certain directory names (such as SYMBOLS.PRI) will need to be renamed to be compatible with the naming conventions of your disc file system. The first time you see this dialog, simply click "Change All" to dismiss it.
Once you're done copying the files, the Creator Classic window will resemble the following.
Now, click the orange Record button to start burning the CD. The Record Setup dialog appears. Click OK to start recording the CD. While your CD is created, the Burn Disc Progress dialog will appear, as shown below. When its done, click OK to close the dialog.
Step 6: Test it
Once the CD is created, you should test it on a non-critical system or in a virtual machine such as those used by Microsoft Virtual PC and VMWare Workstation. Depending on the environment you choose, the CD should either boot automatically, or you will see a note asking you to press any key to install. Use the CD to install Windows XP with SP2 to make sure it's working correctly. Most important, perhaps, ensure that the version of XP you've installed is SP2. To do so, go to Start, then Run, and type "winver" (no quotes) and hit ENTER. The SP2 version number is 5.1 (Build 2600.xpsp_sp2_rtm.040803-2158: Service Pack 2).
When you're done testing, you should consider backing up the newly created CD, and deleting the cruft you've added to your hard drive, specifically C:\Microsoft Corporation.img, and the directories C:\xp and C:\sp2.
August 9, 2004
Updated August 18, 2004; August 24, 2004; August 26, 2004; October 13, 2005
Go there Read more...
Looking for SP3 Slipstream?
My Windows XP Service Pack 3 Slipstreaming Guide is now available!
Late 2005: Major update
Tools of the trade