Windows7 Disc Authoring: Adding patches to an offline image

Source: Internet
Author: User
Tags microsoft website

The so-called offline (offline) image is a WIM file, Install.wim is an offline image, some install.wim inside there are several sub-images, and some of them there is only one. A disc with multiple images in the Install.wim is called a multi-disc.

The following is how to integrate patches for offline images.

Operating platform: the existing operating system for Windows 7,e partition (with the E partition as the working partition for example) has a large free space, more than 10G. To add patches to X86 's WIN7, the existing operating platform should be X86 (32-bit). To add patches to X64 's WIN7, the existing operating platform should be X64 (64-bit).

Preparation Materials: WIN7 original ISO and WIN7 security update patch (download to Microsoft website). For example, download the flagship version (which actually has five sub-images), which is the batch process.

Preparation Tools: UltraISO tool (Download):http://www.vdisk.cn/down/index/9162878

Operation steps:

1, with the WIN7 I original so in the sources directory under the Install.wim extract e-disk.

2. Place the downloaded WIN7 patch (suffix. msu) in the E:\HOTFIX directory.

3, in the E partition to build a cmd suffix file (the content is as follows), write the content to save after exiting, run this cmd file as an administrator.

-----------------------------------------------------------------------

@echo off
Echo.
echo adds patch batch to WIN7 original Install.wim (for X86)
Echo.
Echo Press any key to start the batch process
Pause >nul

MD E:\wimmount
Echo adds a patch to the first image (Lite)
Dism/mount-wim/wimfile:e:\install.wim/index:1/mountdir:e:\wimmount
Dism/image:e:\wimmount/add-package/packagepath:e:\hotfix
Dism/unmount-wim/mountdir:e:\wimmount/commit

Echo adds a patch to the second image (home base edition)
Dism/mount-wim/wimfile:e:\install.wim/index:2/mountdir:e:\wimmount
Dism/image:e:\wimmount/add-package/packagepath:e:\hotfix
Dism/unmount-wim/mountdir:e:\wimmount/commit

Echo adds a patch to the third image (Home Premium)
Dism/mount-wim/wimfile:e:\install.wim/index:3/mountdir:e:\wimmount
Dism/image:e:\wimmount/add-package/packagepath:e:\hotfix
Dism/unmount-wim/mountdir:e:\wimmount/commit

Echo adds a patch to the fourth Image (Pro edition)
Dism/mount-wim/wimfile:e:\install.wim/index:4/mountdir:e:\wimmount
Dism/image:e:\wimmount/add-package/packagepath:e:\hotfix
Dism/unmount-wim/mountdir:e:\wimmount/commit

Echo adds a patch to the fifth image (Ultimate version)
Dism/mount-wim/wimfile:e:\install.wim/index:5/mountdir:e:\wimmount
Dism/image:e:\wimmount/add-package/packagepath:e:\hotfix
Dism/unmount-wim/mountdir:e:\wimmount/commit

RD E:\wimmount
echo Integration end, press any key to exit
Pause >nul

--------------------------------------------------------------------

@echo off
Echo.
echo adds patch batch to WIN7 original Install.wim (for X64)
Echo.
Echo Press any key to start the batch process
Pause >nul

MD E:\wimmount
Echo adds a patch to the first image (home base version)
Dism/mount-wim/wimfile:e:\install.wim/index:1/mountdir:e:\wimmount
Dism/image:e:\wimmount/add-package/packagepath:e:\hotfix
Dism/unmount-wim/mountdir:e:\wimmount/commit

Echo adds a patch to the second image (Home Premium)
Dism/mount-wim/wimfile:e:\install.wim/index:2/mountdir:e:\wimmount
Dism/image:e:\wimmount/add-package/packagepath:e:\hotfix
Dism/unmount-wim/mountdir:e:\wimmount/commit

Echo adds a patch to the third image (Pro edition)
Dism/mount-wim/wimfile:e:\install.wim/index:3/mountdir:e:\wimmount
Dism/image:e:\wimmount/add-package/packagepath:e:\hotfix
Dism/unmount-wim/mountdir:e:\wimmount/commit

Echo adds a patch to the fourth image (Ultimate version)
Dism/mount-wim/wimfile:e:\install.wim/index:4/mountdir:e:\wimmount
Dism/image:e:\wimmount/add-package/packagepath:e:\hotfix
Dism/unmount-wim/mountdir:e:\wimmount/commit

RD E:\wimmount
echo Integration end, press any key to exit
Pause >nul

--------------------------------------------------------------------

4, (This step is optional) after the batch execution finishes, download the ImageX tool http://www.vdisk.cn/down/index/10408419, unzip to the E partition, Find this level of directory containing Wimmount.inf, right-click Wimmount.inf, select "Install", restart the computer. After rebooting, build a cmd file in this directory (content below) and run the cmd file.

--------------------------------------------------------

Rename E:\install.wim Temp.wim
Imagex/export E:\temp.wim 1 E:\install.wim
Imagex/export E:\temp.wim 2 E:\install.wim
Imagex/export E:\temp.wim 3 E:\install.wim
Imagex/export E:\temp.wim 4 E:\install.wim
Imagex/export E:\temp.wim 5 E:\install.wim
Del E:\temp.wim
Pause

--------------------------------------------------------

5. Finally, open the official original ISO with UltraISO, replace the E partition's install.wim into the sources directory and delete the Ei.cfg file in the directory. Save the ISO.

Windows7 Disc Authoring: Adding patches to an offline image

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.