Windows optimize

Use Reverse Integration to slipstream Windows Vista SP1 and SP2

Having a Windows Vista install DVD with the latest service packs can be very helpful - especially if you reinstall Windows more than a couple of times a year or if you have to deploy Windows Vista to multiple computers. Alan Norton shows how he creates one.

Slipstreaming is the process of integrating Microsoft Windows service packs, hot-fixes, language packs, drivers, or other OS components into one customized Windows install disk. Technically, the Reverse Integration method used in this article is not slipstreaming. The Reverse Integration method captures the Windows image during the installation process and then that Windows image file is applied to the original Vista install files.

The end result is the same. You end up with one DVD that you can use to reinstall Vista with both SP1 and SP2 service packs already integrated.

Having a Windows Vista install DVD with the latest service packs can be very helpful -- especially if you reinstall Windows more than a couple of times a year or if you have to deploy Windows Vista to multiple computers. Having the latest service packs already installed on your system can also go a long way to protect your computer when you first connect to the Internet.

This blog post is also available in PDF format in a free TechRepublic download and the steps can be seen in a TechRepublic Photo Gallery.

Preliminaries

I am not going to try to kid you. Integrating SP1 and SP2 into a Vista install DVD is a complex process, but it is still quite doable. The goal of this document is to provide an easy-to-follow method for integrating both SP1 and SP2 into one Windows Vista install disk for a person with at least moderate computer skills.

Unlike previous versions of Windows where a follow-on release of a service pack is cumulative, Vista Service Pack 2 requires Service Pack 1 to be installed first. That means that you will have to integrate both service packs.

While you may be able to reverse integrate Windows Vista from a BartPE or VistaPE disk, this document focuses on integrating the service packs from a second operating system already installed on your PC. Windows Vista Ultimate x64 was used as the second OS, but the procedures should be similar for other Windows operating systems.

You will be creating a single version of Vista on the integrated disk -- Business, Ultimate, etc. For example, if you are reverse integrating a Business version of Vista and later want to upgrade to Ultimate using Microsoft's Anytime Upgrade option, you will not be able to use the single-edition disk created in this process. Additional editions can be added to the reverse integrated disk, but the procedure for doing this is beyond the scope of this document.

Alternatives

MSDN and TechNet Plus members can download a pre-integrated ISO image of Windows Vista SP1 and SP2. Just download this file and burn your "slipstreamed" Vista SP2 install disk. Alternatively, you may be able to get a Vista SP1 and SP2 image via a corporate server. There are versions available on the Internet, but you are taking a gamble by downloading them -- not to mention the fact that these are distributed in violation of copyright laws.

There is another alternate option if you have an imaging program from the Acronis True Image Echo Family or one of the Symantec Ghost Solution Suite 2.5 solutions. You can reinstall Windows Vista, install the two service packs, and create an image that you use later to restore Windows. If you aren't running RAID, you can use several freeware apps to create the image. MaxBlast 5, for Maxtor hard drive owners, and DiscWizard, for Seagate hard drive owners, are limited versions of Acronis True Image Home. You can use one of these tools to image an entire partition, including your OS partition.

Note: I have gone to great care to verify the accuracy of this information, but this procedure has been tested only on my system. Your results may vary. If you find any errors, please report them in the forum. If you try all or parts of this procedure using a BartPE or VistaPE disk, please report your results in the forum.

Requirements

  • Vista-capable PC
  • One free partition with enough space to reinstall Vista
  • One DVD and DVD RW optical drive. You might want to use RW DVDs if you have them until you have created a good image.
  • 3+ hours to integrate SP1 and SP2 into Windows Vista x86 and 4+ hours to integrate SP1 and SP2 into Windows Vista x64

Table A - Software Requirements

Program Name

x86

x64

Vista RTM install files 2.52GB 3.56GB
x86 or x64 SP1 setup file 434MB 726MB
x86 or x64 SP2 setup file 348MB 577MB
WAIK SP1 Download 1.34GB
Disk/ISO burning utility -

Table B - Approximate Temporary Disk Space Requirements (assumes that the CompCln step was performed)

Compression

x86

x64

Maximum 5.33 GB 7.04 GB
Fast 5.68 GB 7.58 GB

A second Windows operating system is required. The OS can be:

  • Windows XP Service Pack 2 with KB926044
  • Server 2003
  • Vista
  • Server 2008
  • Windows 7

Assumptions

I make the following assumptions. If you do not know how to do a task, click on the task to get more information and instructions.

You know how to:

Step 1: Install WAIK and a disk-burning utility

Boot into the Working OS.

If you haven't already done so, download x86 or x64 SP1 and x86 or x64 SP2 installer, and WAIK SP1 ISO file.

If you don't already have a program that can burn an ISO file to disk, download and install one now.

Burn the Windows AIK ISO file to a DVD. Install the WAIK by opening startcd.exe from the DVD and selecting Windows AIK Setup from the Welcome to Windows Automated Installation Kit window. Follow the instructions in the Windows Automated Installation Kit Setup Wizard.

Step 2: Reinstall Vista RTM and exit ([Ctrl] [Shift] [F3]) at OOBE

Note: Before doing a reinstall, it is a good idea to read the "10 Things You Should Do Before, During, and After Reinstalling Windows" article so that you won't lose any of your important data. If Vista was originally installed on a non-boot partition, fully format the partition and reinstall it there. If Vista was originally installed on the boot partition, it must be reinstalled on a non-boot partition.

When you get to the screen where you enter the user name and password, press [Ctrl][Shift][F3]. This screen is referred to as the Out of Box Experience, or OOBE, screen, no doubt by someone with a strange sense of humor. The system will shut down and should reboot into the new Vista install.

Step 3: Install SP1

Once Windows Vista starts, you should see the Windows desktop with the Welcome and the System Preparation Tool 3.14 windows open on the desktop. Open Explorer and run the appropriate x86 or x64 SP1 self-executable installer.

When it has completed, you should be at the Windows Vista desktop and you should see a window stating that Service Pack 1 was successfully installed. You should also still see the System Preparation Tool 3.14 window open on the desktop. Do not close the System Preparation Tool 3.14 window.

Step 4: Install SP2

Now it is time to add SP2. Find the appropriate x86 or x64 version of the SP2 installer that you downloaded earlier and run it. Allow it to complete. When it is finished you should see a window stating that the service pack installed successfully.

Step 5: Perform CompCln

You have the option to use the new CompCln (Component Clean) tool to remove the RTM and SP1 rollback files.

Service Pack 2 installs a replacement for vsp1cln.exe, the cleaning tool used after installing Vista SP1. Called compcln.exe, it is installed in the C:\Windows\System32 folder. It will remove previous versions of the RTM and SP1 files reducing disk usage and making both SP1 and SP2 permanent.

To do this, click Start and type compcln. Right-click the compcln item under Programs and click Run as Administrator to grant administrative rights. Enter [y] to start.

Warning! If you want to create an ISO file that will fit on a S/L DVD and you are imaging a 64 bit installation, you should perform the CompCln step. The CompCln step is optional for x86 but recommended.

Step 6: Perform SysPrep

There are two options for performing the SysPrep. Choose and follow the instructions for one method.

Recommended Method

Use this method if you want to accomplish any of the following:

  • Put the Vista OS back onto the boot drive
  • Test the DVD you will create for burn errors
  • Verify that the new installation will complete successfully
  • Verify that you have correctly integrated SP1 and SP2 into the setup files
Select the System Preparation Tool 3.14 window. If Enter System Out-of-Box Experience is not selected in the System Cleanup Action drop-down box, select it. Check the Generalize check box to select it and choose Shutdown from the Shutdown Options drop-down box, as shown in Figure A. Click OK. If all goes well, the SysPrep will finish in about one minute and the system will shut down normally.

Figure A

Change the options in the System Preparation Tool 3.14 window to match these options if you are using the recommended method.

Alternate method

Use this method only if you want to keep the Vista installation on a non-boot partition and only if you don't want to test the integrated Vista SP2 disk you will create.

You will need to perform a registry export and import. Please read "Export and Import the MountedDevices Registry Key" for detailed instructions and more information about why you need to do this.

Step 7: Boot into working OS and create temporary folders

Tip: Don't like working with long and complicated DOS commands? I have created a freeware application called Vista Image Capture that automates steps 7-10 and creates a bootable ISO image. Important! The Vista Windows image must be captured next. Do NOT boot back into the new Windows Vista installation. And do not leave the computer unattended for someone to start.

Because Windows Vista should be the default item in the Windows Boot Manager you need to stay at your computer when restarting. Be sure that you select the Working OS before the countdown runs out and the default system, Windows Vista, is started.

Once the Working OS starts, create the folders listed below. Refer to Table B for the minimum disk space requirements. These folders will be used for copying the Vista setup files and for setting up the temporary files created by the ImageX and OSCDImg utilities.

\Temp VIC\
\Temp VIC\Vista x86 SP2 - if integrating 32 bit Vista
\Temp VIC\Vista x64 SP2  - if integrating 64 bit Vista
\Temp VIC\ISO\

Step 8: Copy Vista setup files

Copy all the folders and files on the original Windows Vista RTM disk to the \Vista x86 SP2 or \Vista x64 SP2 folder.

Step 9: Run ImageX

Open a Windows PE Tools Command Prompt window by clicking Start and typing comm. Right-click on Windows PE Tools Command Prompt and click Run as Administrator, as shown in Figure B, to grant administrative rights. Click Continue if prompted by the UAC.

Figure B

Open a Windows PE Tools Command Prompt window as an administrator to grant administrative rights.

If you are as rusty in DOS as I am, then I recommend that you use the copy-and-paste method outlined below. Trust me on this one, this method is quicker and easier than trying to type the full command at the command prompt.

Highlight the following text, including quote marks, and copy it to the clipboard:

For x86:

imagex /compress maximum /flags Ultimate /capture H:\ "N:\Temp VIC\Vista x86 SP2\sources\install.wim" "Ultimate x86 SP2"

For x64:

imagex /compress maximum /flags Ultimate /capture H:\ "N:\Temp VIC\Vista x64 SP2\sources\install.wim" "Ultimate x64 SP2"

Paste the text into Notepad. The text should be changed to match the version of Vista for which you have a license, the drive letters and paths specific to your system, and the name describing the version of Vista being imaged.

The command-line items are defined as:

  • imagex - The program you invoke to create the new install.wim file.
  • /compress maximum - Switch to compress the final install.wim file.
  • /flags - Switch that specifies the edition of Vista you are capturing and imaging.
  • "Ultimate" - The name of the version for which you own a license and you installed. The choices are as follows (Please note that the names do not include spaces):
    • Starter
    • HomeBasic
    • HomeBasicN
    • HomePremium
    • Business
    • BusinessN
    • Ultimate
    • Enterprise
  • /capture - Switch that specifies the source drive and target path to image.
  • H:\ - The capture source drive. In the above example the capture source drive is drive H: and is the location where Windows Vista was reinstalled.
  • N:\Temp VIC\Vista x64 SP2\ - The target drive and folder for the install.wim file -- the same folder where the Vista install files were copied.
  • install.wim - The name of the WIM file that ImageX will be creating.
  • "Ultimate x64 SP2" - Text that describes the version of Windows Vista that you are integrating.
Note: The Compression option fast can be used in place of Maximum. Using this option will greatly speed up the time required to create the image, but the WIM file size will be slightly larger. There is another option, None, but it should not be used. The None option will create a WIM file that when added to the original Vista install files will require two S/L DVDs or one D/L DVD.

Don't overlook the drive letter H: in the middle of the command. You will have to change it to match the letter of the capture source logical drive.

After you have modified the command, select it and copy it to the clipboard. Select the Windows PE Tools Command Prompt window and paste the text into the command line by right-clicking the mouse and selecting Paste. Enter the command by pressing [Return].

Allow ImageX to finish. ImageX will overwrite the existing install.wim file with the new one you just created. Browse the \Vista x86 SP2\sources or \Vista x64 SP2\sources folder and verify that the install.wim creation date and time is new.

Leave the DOS window open. You will be using it next to create a bootable ISO file.

Step 10: Create bootable ISO

You now have all the files necessary to create an ISO image of the Vista SP2 install files. The trick is that you need to create a bootable ISO file. This can be done easily in Vista or Windows 7 with vLite. That won't work if you're Working OS is XP. The tool that everyone can use is part of the WAIK distribution, and it is called oscdimg.exe.

Highlight the following text and copy it to the clipboard:

For x86:

oscdimg /b"J:\Program Files\Windows AIK\Tools\PETools\x86\boot\etfsboot.com" /n /o /m /l"Ultimate x86 SP2" "N:\Temp VIC\Vista x86 SP2" "N:\Temp VIC\ISO\Vista x86 Ultimate SP2.iso"

For x64

oscdimg /b"J:\Program Files\Windows AIK\Tools\PETools\x86\boot\etfsboot.com" /n /o /m /l"Ultimate x64 SP2" "N:\Temp VIC\Vista x64 SP2" "N:\Temp VIC\ISO\Vista x64 Ultimate SP2.iso"

Paste the text into Notepad. The text should be changed to match the drive letter of your WAIK drive (/b switch), the label you will be using (/l switch), the source path and file name, and the path and name of ISO file that will be created.

The command-line items are defined as:

  • oscdimg - The program you invoke to create the new bootable ISO file.
  • /b - Switch that specifies the name of the boot file to include.
  • J:\Program Files\Windows AIK\Tools\PETools\x86\boot\etfsboot.com - The path and file name of the WAIK file needed to make the ISO bootable.
  • /n - Switch that allows long file names in the final ISO file.
  • /o - Switch that optimizes the final ISO file making it smaller.
  • /m - Switch that overrides the default maximum file size.
  • /l - (Optional) Switch used to include a label for the disk image, Ultimate x64 SP2 in this example.
  • N:\Temp VIC\Vista x64 SP2- The path (drive and folder) where the Vista install files are located. These include the original Vista files with the install.wim file you created earlier.
  • N:\Temp VIC\ISO\Vista x64 Ultimate SP2.iso - The path and file name of the output ISO file you are creating.

Don't overlook the drive letter J: at the beginning of the command. You will have to change it to match the drive on your system where the WAIK was installed.

After changing the command, copy and paste it into the Windows PE Tools Command Prompt window and press [Return] to submit the command. You can ignore the warning you get after completion.

Step 11: Burn ISO to disk

Burn the ISO file created to a DVD. Most disk-burning software has the option to burn an ISO file.

Step 12: Reinstall Vista SP2

Format the target partition and reinstall Vista using the newly created integrated disk.

Caution! There is a small risk when formatting the boot partition containing the Boot Configuration Data (BCD). When reinstalling Windows Vista, versions of Windows already installed on your system may be recognized as an unknown Windows OS or not at all. Previous versions of Windows already installed on your system should be recognized.

If you chose to format and reinstall Windows Vista on the boot partition containing the BCD, insert the RTM disk for the newest version of Windows you own into your optical drive, reboot the computer, and select Repair Your Computer when the option appears. This will add the Working OS and any other recognized Windows installations on the computer to the BCD.

There are other tools that can be used to edit the BCD, including msconfig, bcdedit, both Microsoft utilities, the freeware-utility EasyBCD, and, for a small price, VistaBootPRO.

Step 13: Verify SP1 and SP2 have been installed

Boot into the new Vista installation and open the Installed Updates window by opening the Programs and Features window from the Control Panel and selecting View Installed Updates. You should see the results show in Figure C.

Figure C

Verify that SP1 and SP2 have been properly integrated by comparing the KB files in the Installed Updates window to those shown here.
  • KB948465 - SP2
  • KB955430 - SP2 Hotfix servicing stack update
  • KB938371 - Fix for SP1 auto-update
  • KB935509 - Fix for BitLocker Drive Encryption - Ultimate and Enterprise editions only
  • KB937954 - Update for Microsoft Windows
  • KB937287 - Update for Vista installer

Step 14: Post testing and cleanup

Use Vista for a while to check for any problems. When you are satisfied that all is well, delete the /Temp VIC folder.

The final word

Pat yourself on the back. It is no simple matter integrating SP1 and SP2 into Vista. Now that you have successfully created an integrated Vista SP2 set-up DVD you will find your next Vista reinstall much simpler and you will be better protected before having to connect to the Internet.

TechRepublic's Windows Vista and Windows 7 Report newsletter, delivered every Friday, offers tips, news, and scuttlebutt on Vista and Windows 7, including a look at new features in the latest version of the Windows OS. Automatically sign up today!

Author's Notes:

Credit to:

Members of the WinBeta forum for the Reverse Integration process.

Thanks to: Tech Republic member anachron@... who asked for this article and Tech Republic member Richard Potts for his interest in a slipstreaming article and for the XP slipstreaming document he sent me.

About

Alan Norton began using PCs in 1981, when they were called microcomputers. He has worked at companies like Hughes Aircraft and CSC, where he developed client/server-based applications. Alan is currently semi-retired and starting a new career as a wri...

22 comments
alif_jamil
alif_jamil

Nice write-up. I went through all the steps but I also ran vsp1cln.exe after step 3 (thinking it might reduce the wim file size further). All went well until after I had created the image and tried installing from the new ISO... it would stop somewhere in the middle of the setup with an error that says it could not find a file (which is supposed to be in the install.wim). I can reproduce the error but that would hardly help I believe. Did I do something wrong by running the vsp1cln.exe file after installing SP1? Many thanks in advance for help.

raycid
raycid

I used this walkthru to integrate sp1 and sp2 into vista home premium 32 and 64bit versions. The only problem I had was during the 32bit version integration I got an error when trying to generalize with sysprep. But I just had to run msdct -uninstall then msdct -install from a command prompt within the \windows\system32 folder and it fixed it. The final .iso file size for Vista HomePremium x64 was only 3.5GB btw. Might be bigger for pro or ultimate though. To add to this post, I would recommend to install vista on another computer. Then rip the hdd out of it and capture the image using a usb to ide/sata adapter from the hdd you just installed vista on. Thanks! This will be a real time-saver in the future.

airelldaven
airelldaven

Thank you so much for this tutorial!

fb1943
fb1943

Hi You?ve mentioned on this website under ?Alternatives? MSDN and TechNet Plus members can download a pre-integrated ISO image of Windows Vista SP1 and SP2. Just download this file and burn your ?slipstreamed? Vista SP2 install disk? Unfortunately I was unable to find that link. Would you please show me were to download that ISO image file.

jocelynboyer
jocelynboyer

Now that note book are sold without OS CD, is it a good way to protect ourself to do that in case we delete the special boot sector where reside the OS on the HD or is it better to require an original CD for it? (I understand that all updates will be lost if so)

rishiaditya
rishiaditya

Thnx all for this document, it really saved me a few hours d/l & installing SP aftera fresh install...Thnx Again

Alan Norton
Alan Norton

Please share your experience integrating SP1 and SP2 into a Vista install disc. Have you used virtualization or a VistaPE disc? I will be available to answer any questions about the article. As always, all comments and feedback welcome.

Mark W. Kaelin
Mark W. Kaelin

Do you have an installation disk that contains both service packs for Windows Vista?

raycid
raycid

I used this same process to slip stream a dell windows 7 home premium cd with sp1 and 46 updates :)

Alan Norton
Alan Norton

It could be if you know what that OS consists of (special drivers etc.) and can recreate it. You will need the original Vista install files in any case. It might be easier to order a replacement DVD from the manufacturer. You could also image the OS partition with imaging software and create a recovery disc. Edit: Fix spelling

Alan Norton
Alan Norton

I am very pleased to hear that. That is one of the primary goals I had when writing the article. Thank you for the feedback and kind words.

Linou
Linou

Thanks Alan: I have successfully created VistaSP2 french DVD with your procedure. Is it possible now, integrate microsoft patchs from WindowsUpdate, for creating a new DVD slimstreamed, using your Vista Image Capture program ? Thanks for your reply. Alain CERTAIN

sumoncsctgbd
sumoncsctgbd

Thanks for the guide. It worked for me. I have successfully created the ISO file. But it is 18 MB more than 1 DVD size(4.7GB). So, no DVD writer can burn it. Help please.

gregrocker
gregrocker

Your instructions say we can easily create the ISO image using vLite in Win7 or Vista, but no procedure is given to do so. Can you expand on that? Also, in Step 9: Run ImageX. Open a Windows PE Tools Command Prompt window... how do we get to Windows PE tools from the original working OS? My Win7 doesn't show it when I type commm in start box.

fb1943
fb1943

Yes I've got both SP1 & SP2 Service Packs.Downloaded from Microsoft

Alan Norton
Alan Norton

Hello Alain. Yes, simply add another step, 5A, where you apply the patches manually or use Windows Update to download and install the updates. There is a risk that the ISO file will not fit on a S/L DVD. The only guidance I can give you is that the 64 bit version will be larger and more problematic than the 32 bit version. Be sure to do the CompCln step to keep the file size down and use MAXIMUM for the compression option. The rest of the steps should be exactly the same.

Alan Norton
Alan Norton

Be sure to do the CompCln step (step 5) to keep the ISO file size down and use MAXIMUM for the compression option. Also be sure to perform the SysPrep (step 6) with a 'clean' version of Windows without any apps installed. I am guessing that this the the 64 bit version of Vista since the ISO file of the 64 bit version is larger than the 32 bit. If you have tried all of the above without success you can switch to the 32 bit version of Windows Vista (if you are indeed trying to integrate a 64 bit version) or buy some D/L DVDs and burn the ISO image to one of them. One final option: It isn't convenient but the ISO file can be burned to two S/L DVDs.

Alan Norton
Alan Norton

You can, in theory, use vLite to create a bootable ISO image. You will still need to have the WAIK installed. You will need to burn the ISO image created in step 9 to a DVD (use RW DVD if you have one) and then you should be able to use that as the input to vLite. I haven't tried this exact scenario so I can't guarantee that it will work. I will refer you to this photo gallery that shows the vLite screens. There is a lot of helpful information there but it is not a 'how to' for vLite. http://content.techrepublic.com.com/2346-10877_11-279247.html It would be a lot simpler to use the application that I have written that automates steps 7-10. It is called Vista Image Capture and is free and available at my Web site: http://pecos-softwareworks.com/vista_image_capture/download.shtml "how do we get to Windows PE tools from the original working OS? My Win7 doesn't show it when I type commm in start box." Silly question - have you installed the Vista WAIK in the working OS (Windows 7 in your case)? Typing comm (not commm) in the Windows 7 'Start->Search programs and files' box works for me. Also, there is a different WAIK for Windows 7. If you are creating a Vista integrated install disc, you will need to download and install the Vista version of the WAIK not the Windows 7 version.

fb1943
fb1943

Hi I don?t like working with long and complicated DOS commands either because I'm no good at it. Many thanks for your freeware application called "Vista Image Capture".It made this job much easier.Without it I doubt I would have completed this job.

Matthew G. Davidson
Matthew G. Davidson

Alan...not sure if you are still monitoring this discussion, but I wanted to see if you knew if the 32bit and 64bit versions of Vista could be placed on one piece of installation media. I thought I did this once, but I cannot find the instructions anymore.

Alan Norton
Alan Norton

Thank you for the kind words and especially for the feedback. I am glad to hear that it saved you some time and let you complete the Reverse Integration process. I doubt there are a lot of people that are good with DOS commands. I can tell you I spent quite a few hours getting those two DOS commands right. A misplaced or missing character and total failure. I only wish I could have automated more of the Reverse Integration process but that just isn't possible.