Jump to content



Photo
slipstream integrade windows updates service packs

  • Please log in to reply
38 replies to this topic

#1 jesseinsf

jesseinsf

    Windows 7/8.1 Support Guru

  • 1,051 posts
  • Joined: 04-October 05
  • Location: Reseda, CA
  • OS: Windows 8.1 Professional with Media Center 64 bit

Posted 22 April 2014 - 11:15

I thought I'd post my guide here also. Every guide I seen online is not detailed and we are all struggling to get things to work with their guides, so I thought I would post a detailed guide here as a contribution to the Neowin Community. If there is anything you'd like to know then leave a message or send me a private message. Cheers to all   :)

 

 

What you need:

  • install.wim image from the Windows installation media. If it is an install.esd image then you have to create a Virtual Machine and install Windows 8.1 on it. I will give instructions. The file is in the “Sources” folder which is in the Windows Install Media.
  • A batch file called update.bat (Script is on the bottom of this guide)
  • Windows updates downloader: http://www.windowsupdatesdownloader.com/ProgramFiles.aspx
  • Your main computer that you will perform this task on should be Windows 8.1. Install Windows ADK for Windows 8.1 here: http://technet.microsoft.com/en-us/library/dn247001.aspx.  

Instructions:

  1. You need to create a folder and name it whatever you like. Inside that folder you need to create another folder called: patches
  2. Copy your .wim file to the folder you created (NOT the patches folder)
  3. Copy the batch file to the same folder
  4. Now all you need is the updates that you will download from the “Windows Update Downloader”.
  5. Download the update list from this page: http://www.windowsupdatesdownloader.com/UpdateLists.aspx (It’s a small file). Once finished downloading you need to Double Click it to add the list to the Windows Updates Downloader.
  6. In the Windows updates Downloader, choose the Security Updates, Non-Security Updates and both versions of .Net Framework. All the other updates are optional. All updates MUST be in the .msu format.
  7. Once the updates are downloaded you need to copy and paste all the updates in the “patches” folder. Make sure that you only copy the updates to the patches folder. In other words, there should be NO folders inside the patches folder. Only .msu (update) files can be in the patches folder.
  8. Now, the Structure of the folder you are working in should have only 3 items: a “patches folder”, update.bat file and an “install.wim” file. All .msu updates should be in the patches folder.
  9. Now Right click the update.bat file and choose to run as Administrator. Once it installs all the updates it will ask you to hit any key. Hit any key until is shows all the updates and continues. You will have to hit any key many times until it begins the last phase.
  10. Once it is finish, you can repeat step 7 through 9 for the Windows 8.1 update 1 files (There are 7 needed downloading).
  11. Download and place each update 1 updates in the patches folder. (Make sure all other updates are deleted). Put a number in front of each update by renaming them like I did here:                

1-Windows8.1-KB2919442-x64.msu
2-Windows8.1-KB2919355-x64.msu
3-Windows8.1-KB2932046-x64.msu
4-Windows8.1-KB2937592-x64.msu
5-Windows8.1-KB2938439-x64.msu
6-Windows8.1-KB2934018-x64.msu
7-Windows8.1-KB2959977-x64.msu

  1. Above will insure that the updates get installed in the proper order.
  2. Once everything is finished then you can replace the old .wim file in the Windows install media with the new one.

Convert .esd to .wim using a Virtual Machine:

What you need:

  • Windows 8.1 ISO, DVD or USB stick made bootable with Windows 8.1
  • Microsoft Hyper-V (included as an add-on in Windows 8.1 Pro) or Virtual Box
  • These generic keys are to allow the correct version of Windows 8.1 to be installed. These keys are only to tell Windows what version to install. You will need your own purchased key to activate later.
    • 334NH-RXG76-64THK-C7CKG-D3VPT for Non-Pro version
    • XHQ8N-C3MCJ-RQXB6-WCHYG-C9WKB for Pro version
  • Knowledge of these Virtual machines
  • ImageX which comes with the Windows ADK for Windows 8.1
  • Knowledge of the CMD command prompt.
  • Knowledge of “SysPrep”

Instructions:

  1. Create a Virtual disk. The disk should be either VHD or VHDX
  2. Install Windows 8.1 in the virtual machine
  3. Press Ctrl + Shift + F3 when the Installation gets to the screen where you create a computer name. This will log you in automatically as the Administrator and start the SysPrep process.
  4. In the SysPrep preparation tool, make sure you choose “Enter system out of box experience”, and then check the box that says “Generalize”. The next drop-down menu: choose “Shutdown”. Click OK and the Virtual machine will shut down when finished.
  5. Now locate where the Virtual Disk that has Windows 8.1 installed on it.
  6. Mount that drive and give it a drive letter
  7. Make sure you installed ImageX which comes with the Windows ADK for Windows 8.1
  8. Click the Start button and type cmd for command prompt. In the search results choose “Deployment and Imaging Tools Environment”. A command black box will open.
  9. Type the following: imagex /compress maximum /capture F:\ C:\install.wim "Windows 8.1 Pro" (F is the drive letter you gave the virtual drive when you mounted it)
  10. Hit Enter and wait for it to finish.
  11. Look in the C drive and you will also see the install.wim file. This is the file you need to inject all those updates in to.
  12. You can now delete the Virtual drive.

Convert wim to esd:

Once you are finished injecting all the updates, and when the original file was an ESD file then you need to convert it back to an ESD file.

  1. Put the finished install.wim file in the C drive again.
  2. Open an elevated command prompt
  3. Type the following: dism /Export-Image /SourceImageFile:"C:\install.wim" /SourceIndex:1 /DestinationImageFile:"C:\install.esd" /Compress:recovery
  4. Hit the enter key
  5. It will take an hour or so to do this so have patients.
  6. Once it’s done you can replace the original install.esd file that is in the Windows Install disk/ISO/USB stick with the new one.
  7. Congratulations, you are now a master at making your own Windows 8.1 disk with the latest updates. J

Copy text below into a blank text document and name it update.bat

MD %~dp0WIN8

 "c:\program files (x86)\windows kits\8.1\assessment and deployment kit\deployment tools\amd64\dism\Dism.exe" /Mount-Wim /WimFile:%~dp0install.wim /Index:1 /MountDir:%~dp0WIN8

"c:\program files (x86)\windows kits\8.1\assessment and deployment kit\deployment tools\amd64\dism\Dism.exe" /image:%~dp0WIN8 /Add-Package /PackagePath:"%~dp0patches"

"c:\program files (x86)\windows kits\8.1\assessment and deployment kit\deployment tools\amd64\dism\Dism.exe" /image:%~dp0WIN8  /Get-Packages | more

 pause

"c:\program files (x86)\windows kits\8.1\assessment and deployment kit\deployment tools\amd64\dism\Dism.exe" /Unmount-Wim /MountDir:%~dp0WIN8 /commit




#2 OP jesseinsf

jesseinsf

    Windows 7/8.1 Support Guru

  • 1,051 posts
  • Joined: 04-October 05
  • Location: Reseda, CA
  • OS: Windows 8.1 Professional with Media Center 64 bit

Posted 22 April 2014 - 22:46

Guys, this way is the Microsoft way. Those other GUI tools, well you have no idea what's happening. And they seem to always have bugs. There is no bugs in this way. You get the updates installed and that's it. To make a bootable USB: just use the Windows 7 USB/DVD download tool. Always use your original Windows 8.1 ISO and copy and replace the modified .wim file to the USB stick.



#3 xendrome

xendrome

    In God We Trust; All Others We Monitor

  • 7,488 posts
  • Joined: 05-December 01
  • OS: Windows 8.1 Pro x64

Posted 22 April 2014 - 22:51

Hmm I'll just stick with my MSDN Windows 8.1 with Update 1 ISO :)



#4 +LogicalApex

LogicalApex

    Software Engineer

  • 6,461 posts
  • Joined: 14-August 02
  • Location: Philadelphia, PA
  • OS: Windows 7 Ultimate x64
  • Phone: Nexus 5

Posted 22 April 2014 - 22:53

This looks like it could be useful, but I'm not sure it would allow Secure Boot to be enabled?

 

I try to stick to network based installs where possible, but sometimes you need to dig out the USB drive.

 

Hmm I'll just stick with my MSDN Windows 8.1 with Update 1 ISO :)

I'm still confused why that ISO made me install Update 1 again from Windows update.



#5 Raa

Raa

    Resident president

  • 12,942 posts
  • Joined: 03-April 02
  • Location: NSW, Australia

Posted 22 April 2014 - 23:13

Guys, this way is the Microsoft way.

Source?



#6 OP jesseinsf

jesseinsf

    Windows 7/8.1 Support Guru

  • 1,051 posts
  • Joined: 04-October 05
  • Location: Reseda, CA
  • OS: Windows 8.1 Professional with Media Center 64 bit

Posted 23 April 2014 - 01:19

Source?

Um, look at the script commands. They all have DISM commands. Where do DISM command come from? UM they come from the Windows ADK for Windows 8.1. And so does the imageX command.

Edited by zhangm, 23 April 2014 - 01:21.


#7 Javik

Javik

    #GamerGate

  • 6,062 posts
  • Joined: 21-May 12

Posted 23 April 2014 - 01:34

Before you sysprep the image wouldn't it make sense to use DISM to cleanup the WinSXS folder to reduce the size of the WIM?



#8 Praetor

Praetor

    ASCii / ANSi Designer

  • 3,402 posts
  • Joined: 05-June 02
  • Location: Lisbon
  • OS: Windows Eight dot One dot One 1!one

Posted 23 April 2014 - 01:37

this is nice.



#9 OP jesseinsf

jesseinsf

    Windows 7/8.1 Support Guru

  • 1,051 posts
  • Joined: 04-October 05
  • Location: Reseda, CA
  • OS: Windows 8.1 Professional with Media Center 64 bit

Posted 23 April 2014 - 12:36

Before you sysprep the image wouldn't it make sense to use DISM to cleanup the WinSXS folder to reduce the size of the WIM?

you could do that and that would be a great idea, but most people have ESD files cause they either downloaded the upgrade or downloaded the full version online. When you convert back to ESD, it does what you said automatically.



#10 OP jesseinsf

jesseinsf

    Windows 7/8.1 Support Guru

  • 1,051 posts
  • Joined: 04-October 05
  • Location: Reseda, CA
  • OS: Windows 8.1 Professional with Media Center 64 bit

Posted 23 April 2014 - 12:50

This looks like it could be useful, but I'm not sure it would allow Secure Boot to be enabled?

 

I try to stick to network based installs where possible, but sometimes you need to dig out the USB drive.

 

I'm still confused why that ISO made me install Update 1 again from Windows update.

Microsoft rereleased the Update1. Try and re-download the update and re-inject it and see if that works. And I believe Hyper-V supports secure boot. So see if the Virtual Machine way works.



#11 briangw

briangw

    The best damn band in the land!!!

  • 3,478 posts
  • Joined: 05-October 01
  • Location: Warren, MN
  • OS: Windows 8.1, Ubuntu 14.04
  • Phone: iPhone 5

Posted 23 April 2014 - 13:20

So, would you happen to possibly have a write up or know where I can get one for the Microsoft Development Toolkit, more specifically the part for the actually capturing of an image? I am having a heck of a time trying to capture a Server 2008 R2 image so that it deploys correctly.



#12 Gotenks98

Gotenks98

    Neowinian

  • 2,022 posts
  • Joined: 18-December 01

Posted 23 April 2014 - 18:57

Later this month they are going to be releasing the ISO's with the update 1 update for the Upgrade to 8.1 product key only. This works for the retail version. For those who are doing the 8.0 to 8.1 store upgrade the 8.1 update is now included in that.

 

Lastly I am trying to see why the VM is even needed at all. You should be able to add the updates straight into the install.wim file with Dism. As far as the install.esd image imagex can read these but Dism can't. So you could do an apply to a blank folder or vhf file with imagex. From there you can recapture to a wim. There is no need to install Windows to do any of this.



#13 Steven

Steven

    Vicarious!

  • 21,532 posts
  • Joined: 04-August 01
  • Location: Phoenix, AZ
  • OS: Windows 8.1 Update 1 x64 Enterprise
  • Phone: iPhone 5S

Posted 23 April 2014 - 19:09

Type the following: imagex /compress maximum /capture F:\ C:\install.wim "Windows 8.1 Pro" (F is the drive letter you gave the virtual drive when you mounted it)

ImageX is deprecated and you should be using DISM to both capture and service WIMs



#14 Gotenks98

Gotenks98

    Neowinian

  • 2,022 posts
  • Joined: 18-December 01

Posted 23 April 2014 - 19:12

you could do that and that would be a great idea, but most people have ESD files cause they either downloaded the upgrade or downloaded the full version online. When you convert back to ESD, it does what you said automatically.

No it doesn't ESD format is just highly compressed. You basically get significantly more compression than you get using the max option on DISM. The cleaning up of WinSxS folder and such removes updates that got superseded by the newer updates. However if there are updates that need a reboot it won't allow the command to start. The only time I cleanup the folder like this is if I make a full system image that is the OS with apps and such. At that point space is at a premium so I would definitely need to the ESD thing.


ImageX is deprecated and you should be using DISM to both capture and service WIMs

While it is deprecated, its the only way to export ESD files without having to do an install of Windows.



#15 Steven

Steven

    Vicarious!

  • 21,532 posts
  • Joined: 04-August 01
  • Location: Phoenix, AZ
  • OS: Windows 8.1 Update 1 x64 Enterprise
  • Phone: iPhone 5S

Posted 23 April 2014 - 19:14

Guys, this way is the Microsoft way. Those other GUI tools, well you have no idea what's happening. And they seem to always have bugs. There is no bugs in this way. You get the updates installed and that's it. To make a bootable USB: just use the Windows 7 USB/DVD download tool. Always use your original Windows 8.1 ISO and copy and replace the modified .wim file to the USB stick.

I think a better "Microsoft" way is to utilize MDT 2013 and use a simple build and capture sequence and enable the Windows Update step to get all the latest patches.

There are many ways to skin a cat, however...


You could also just download the Windows 8.1 with Update 1 ISO from Volume LIcensing or MSDN, they're both available.