Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Windows Update - Extract an Update



Windows Update - Extract an Update

How to Extract a Windows Update
Published by niemiro
07 Apr 2011
Published by

How to Extract a Windows Update

information   Information
This tutorial will show you how to extract a Windows Update file to release the contents, using both the manual and automatic methods. You might consider doing this if you are a technical expert trying to find a replacement for a corrupt file. Extracting the contents of the update already identified to be the one containing the correct version of the file in question is often the most efficient way of sourcing this replacement.
Note   Note
This process is intended for advanced users only.
warning   Warning
It is imperative that you do not use any 3rd Party tool to extract Windows Update .cab files, such as 7-Zip or Win-Zip, as these tools incompletely extract such archives. However, due to different formatting in service packs, these tools often will extract service pack .cab files completely, but to be sure, you are better off using one of the below methods anyway.



Method One
Automatic method using KB_Extractor

warning   Warning
Please do not mirror or directly link to KB_Extractor. You may only link to this tutorial. To negotiate the use of this tool, please contact me.
Note   Note
If you are using this tool on a machine not running Windows Vista, you may need to install the .net Framework 2.0. Download details: Microsoft .NET Framework 2.0 Service Pack 2

However, this is already included in Windows Vista, and so if you are running Windows Vista, downloading this package is not required.


Download KB_Extractor version 1.2 (dated: 26/06/2011) to your Desktop. download

This tool has two modes.

To extract an update:

Simply drag the update you wish to extract onto the pre-saved executable, and wait for the extraction to complete.
Note   Note
Please be aware that large updates such as service packs can take around ten minutes to extract.
Tip   Tip
This tool should successfully extract most types of Windows Update related packages, including packages with the following file extension: .msu, .cab, .exe. Most types of packages, including standard Windows Update packages, service packs, pre-extracted .cab files, Microsoft Security Essentials installers, and Internet Explorer installers, including the extraction of packages containing sub packages, such as language packs will be extracted perfectly. However, if you find any bugs, or any updates which are incompletely extracted, please do contact me giving full details.
Once the extraction has completed, the folder containing the extracted contents will open.

To drag an update onto the executable, first select the update:
Name:  1.JPG
Views: 3568
Size:  12.7 KB
Then drag the update:
Name:  2.JPG
Views: 3544
Size:  14.6 KB
over the executable, and release:
Name:  3.JPG
Views: 3541
Size:  12.8 KB
During the extraction, there are three distinct phases:

Phase 1. This phase will normally only appear for large service packs:
Name:  4.JPG
Views: 3561
Size:  24.7 KB
Phase 2:
Name:  5.JPG
Views: 3666
Size:  124.1 KB
Phase 3:
Name:  6.JPG
Views: 3706
Size:  110.7 KB
Tip   Tip
Simply click on any of these images for an enlarged view.
Note   Note
If a package contains several sub-packages, phases 2 and 3 will loop around once for each package.


To Clean up your Temporary files:

warning   Warning
All extracted updates are extracted to sub-directories in the %TEMP% folder (commonly located in your %UserProfile%\AppData\Local\Temp folder, which would for me, as an example, be C:\Users\Richard\AppData\Local\Temp) However, particularly if you extract a lot of service packs, this folder can become very bloated in size.

To empty this, simply double click on the executable:
Name:  7.JPG
Views: 3628
Size:  29.0 KB
type in "y", and press ENTER or RETURN on your keyboard. Again, you can click on any screenshot to enlarge it.
Name:  8.JPG
Views: 3581
Size:  29.0 KB
KB_Extractor will close when it has finished emptying your temporary folder.




Note   Note
  • KB_Extractor will only empty the temporary folder of sub-directories in the format of those created by this tool.
  • This process can take up to ten minutes if this tool has extracted several service packs.






Method Two
Manual Method using expand.exe

warning   Warning
This method is considerably harder, and far more time consuming. However, it only uses tools included in a standard Windows installation. Also, different styles of packages may require additional extraction, but using the same techniques. Unfortunately, I cannot document every single different package style here.
NOTE: You can open a command prompt by typing cmd in the Start Menu Search box and pressing Enter.

The general formula for an update is:

expand -f:*{update name}.msu {destination folder}
expand -f:*{update name}.cab {destination folder}

and for a Service Pack:

{service pack name} /x:{destination folder}
expand -f:* {service pack name} {destination folder}

Therefore, to unpack Windows6.1-KB980302-x86.msu which is already in C:\Temp you must type these two commands:

expand -f:* C:\TEMP\Windows6.1-KB980302-x86.msu C:\TEMP
expand -f:* C:\TEMP\Windows6.1-KB980302-x86.cab C:\TEMP

and for a Service Pack, such as this Vista SP2, already in C:\TEMP:

C:\Temp\Windows6.0-KB948465-X86.exe /x:C:\Temp
expand -f:* C:\Temp\Windows6.0-KB948465-X86.cab C:\Temp

Previous Versions:

warning   Warning
Please be aware that these versions are out of date, may contain bugs, and are no longer supported.
Version 1.0 (dated: 21/02/2011): download

Version 1.1 (dated: 04/June/2011): download

That's it,
Richard



Related Tutorials


04 Jun 2011   #1
niemiro

Vista Home Premium x86 SP2
 
 

Version 1.1 is now signed off, dated 4th June 2011.

Changelog:

Code:
1.0:
Initial Release

1.1:
FIXED: Incomplete extraction of .cab files with only a single file in them.
FIXED: Incomplete extraction of renamed .msu files.
FIXED: Faulty logic leading to files named with specific names passing into the wrong extraction category.
ADDED: Custom error message for attempting to extract 64bit .exes on a 32bit computer.
Version 2.0 is planned, and will extract update packages in rarer formats and styles.

My System SpecsSystem Spec
09 Jun 2011   #2
Miranova23

Windows 7 Pro x64 SP1
 
 

I'm trying to use this on Windows 7, x64, but I keep getting the error that I can't extract a 64bit exe on a 32bit computer. ???
My System SpecsSystem Spec
11 Jun 2011   #3
niemiro

Vista Home Premium x86 SP2
 
 

Quote   Quote: Originally Posted by Miranova23 View Post
I'm trying to use this on Windows 7, x64, but I keep getting the error that I can't extract a 64bit exe on a 32bit computer. ???
Hello!

I am sorry that you are having this problem. This is partially caused by a bug in version 1.1. In the erranous scenario, this error message masks a different underlying error message. This has been fixed in version 1.2, set to be released next weekend, or so.

However, there is still the other, masked error message (which comes through properly in 1.2)

Which updates are you trying to extract?

Thanks a lot!

Richard
My System SpecsSystem Spec
.


26 Jun 2011   #4
niemiro

Vista Home Premium x86 SP2
 
 

Version 1.2 is now signed off, dated 26/06/2011.

Changelog:

Code:
1.0: 
Initial Release    
 
1.1:  
FIXED: Incomplete extraction of .cab files with only a single file in them.  
FIXED: Incomplete extraction of renamed .msu files. 
FIXED: Faulty logic leading to files named with specific names passing into the wrong extraction category.  
ADDED: Custom error message for attempting to extract 64bit .exes on a 32bit computer.  
 
1.2: 
FIXED: Faulty logic which caused the custom error message for attempting to extract 64bit .exes on a 32bit computer to appear more often than it should, masking other errors. 
FIXED: Empty "Extracted" folders. 
ADDED: Support for packages using rarer extraction arguments.
I didn't actually originally intend to release this version, but it provides a few new bug fixes and features, so in the end I did.
My System SpecsSystem Spec
05 Jul 2011   #5
niemiro

Vista Home Premium x86 SP2
 
 

Quote   Quote: Originally Posted by Miranova23 View Post
I'm trying to use this on Windows 7, x64, but I keep getting the error that I can't extract a 64bit exe on a 32bit computer. ???
This has now been fully fixed in version 1.2
My System SpecsSystem Spec
16 Oct 2011   #6
ssakib01

Windows 2008 R2
 
 
How Can I install the extracted *.msu files ?

Once the files been extracted in Temp folder, how i can install them ?
Thanks in advance
My System SpecsSystem Spec
16 Oct 2011   #7
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Hello Ssakib, and welcome to Seven Forums.

For what it sounds like you want to do, it may be easier to use the tutorial below to download the MSU file for the Windows Update instead. This way you will just need to run the MSU to install it.

Windows Update - Download Standalone MSU Installer File

Hope this helps,
Shawn
My System SpecsSystem Spec
16 Oct 2011   #8
ssakib01

Windows 2008 R2
 
 

Hi Shawn, thanks for your reply.

But thats not I am looking for. I have downloaded the hotfixes, (for Exchange 2010 CAS role) and extracted according to the steps mentioned above..but now I am unsure how to install them.

Any idea would be greatly appreciated.

Many Thanks
My System SpecsSystem Spec
16 Oct 2011   #9
ssakib01

Windows 2008 R2
 
 

Hi..No need for further information..I have figured it out ! Thanks for all your help...
My System SpecsSystem Spec
Comment

 Windows Update - Extract an Update




Tutorial Tools




Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 12:55 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33