guide for making justin bieber sing

29
1 GUIDE: Integrating Windows 7 post-sp1 updates to installation disk (64-bit) 1. What will you need GImageX, Windows Updates Downloader, An updated Windows Updates Downloader List (e.g. from MSFN forum), Windows 7 SP1 x64 TechNet/MSDN ISO, VMWare, any ISO editing tool, Daemon Tools Lite, Windows Automated Installation Kit (AIK) for Windows 7, Internet connection, External (USB) Hard disk Drive. Most important: 5-10 hours of free time If you don’t have any of the tools mentioned here, just google them and you’ll find more about them, including download links. 2. What will you do You will do the following: Slipstream all post-sp1 updates in the Windows Recovery Environment Slipstream all post-sp1 updates in Windows Boot Image – which is loaded when you boot from Windows Installation disk Slipstream all post-sp1 updates in all 4 operating system images which are all included in a single installation image file – the install.wim file. Update Windows 7 Setup core files and catalogs, so that they are consistent with the integrated updates. 3. Preparing 1. Install Windows AIK, Windows Updates Downloader, VMWare, Deamon Tools Lite. Download and double-click the Windows Update Downloader List to install it. 2. Click Start->All Programs->Windows Updates Downloader->Windows Updates Downloader:

Upload: d410053

Post on 22-Oct-2015

17 views

Category:

Documents


2 download

DESCRIPTION

JB 4 eva

TRANSCRIPT

Page 1: Guide for making Justin bieber sing

1

GUIDE: Integrating Windows 7 post-sp1 updates to installation

disk (64-bit)

1. What will you need GImageX, Windows Updates Downloader, An updated Windows Updates Downloader List (e.g. from MSFN forum), Windows 7 SP1 x64 TechNet/MSDN ISO, VMWare, any ISO editing tool, Daemon Tools Lite, Windows Automated Installation Kit (AIK) for Windows 7, Internet connection, External (USB) Hard disk Drive. Most important: 5-10 hours of free time If you don’t have any of the tools mentioned here, just google them and you’ll find more about them, including download links.

2. What will you do You will do the following:

Slipstream all post-sp1 updates in the Windows Recovery Environment

Slipstream all post-sp1 updates in Windows Boot Image – which is loaded when you boot from Windows Installation disk

Slipstream all post-sp1 updates in all 4 operating system images which are all included in a single installation image file – the install.wim file.

Update Windows 7 Setup core files and catalogs, so that they are consistent with the integrated updates.

3. Preparing

1. Install Windows AIK, Windows Updates Downloader, VMWare, Deamon Tools Lite. Download and double-click the Windows Update Downloader List to install it.

2. Click Start->All Programs->Windows Updates Downloader->Windows Updates Downloader:

Page 2: Guide for making Justin bieber sing

2

3. When Windows Updates Downloader loads check the following options and click Download.

Downloading updates will start immediately. We will leave the window open.

4. Let’s deal with the Windows 7 SP1 x64 ISO. We edit it in the ISO editing tool you downloaded. I will use UltraISO. Open ISO in the program and delete sources\ei.cfg file. Save changes:

5. Using daemon tools lite mount this modified ISO to a virtual drive. 6. Open Windows AIK Deployment Tools command prompt as administrator (right-click

and click “Run as Administrator”):

Page 3: Guide for making Justin bieber sing

3

Execute the commands:

mkdir C:\mount dism /Mount-Wim /WimFile:L:\sources\install.wim /index:1 /MountDir:C:\mount /ReadOnly where L: is the drive letter of the virtual drive. Please wait until the install.wim image has been mounted:

7. When mounting image is complete, open the C:\mount folder. Navigate to the Windows\system32\Recovery folder.

8. Connect the external hdd and copy the winRE.wim file there. This is the Windows

Recovery Environment image. We will slipstream updates here. Later we will add it to the installation image.

9. Close all open Windows Explorer windows. 10. Run these commands in command prompt:

dism /Unmount-Wim /MountDir:C:\mount /discard rd C:\mount

11. We are ready to integrate updates in winRE.wim

Page 4: Guide for making Justin bieber sing

4

4. Slipstream updates in winRE.wim

1. Update downloading must have been completed by now. If it hasn’t, wait until it does – and close Windows Updates Downloader.

2. Go to your Documents folder. Open the Windows Updates Downloader folder.

3. Let’s rename the folders to something more appropriate for command prompt.

Rename the Non-Security Updates to Upd1, Security Updates to Upd2, .NET Framework 3.5.1 Updates to Upd3.

4. Move ALL folders to the external hdd. Place GimageX binaries folder to the external hdd as well:

5. Supposing the drive letter of the external hdd is K: Run the following commands in the elevated command prompt window you have opened previously:

mkdir C:\recmount dism /Mount-Wim /WimFile:K:\winRE.wim /index:1 /MountDir:C:\recmount dism /Image:C:\recmount /Add-Package:K:\upd1 dism /Image:C:\recmount /Add-Package:K:\upd2 The deployment image servicing and management tool will install all applicable updates to winRE.wim. The next step ensures minimum winRE.wim image size (if it is too big, the Windows Recovery Environment will require too much RAM space to load in the future).

Page 5: Guide for making Justin bieber sing

5

6. Cleaning up the Windows Side by Side and Update Removal Data (OPTIONAL) If we commit changes to the winRE.wim right now, it will take about 340 MB. That’s enormous and it will take something more than 512 MB of RAM for Windows Recovery to load properly. If you don’t care about it, proceed to step 7. We will delete the older versions of system files (before updates were committed) – which are backed up by default. When we finish the whole process, winRE.wim will take about 210 MB – much better.

a) Navigate to C:\recmount\Windows\servicing\Packages b) Sort by date modified, in descending order:

c) Delete ALL files modified after 21 November 2010 (when Windows 7 SP1 was

originally serviced). d) Navigate to C:\recmount\Windows\WinSxs e) Sort by date modified, in descending order:

Page 6: Guide for making Justin bieber sing

6

f) Delete all files and folders newer than 21 November 2010 EXCEPT for pending.xml

file, and the “Backup”, ”FileMaps”, ”Temp”, ”Catalogs”, ”Manifests” folders

7. Close all Windows Explorer windows. 8. Run the following commands:

dism /Unmount-Wim /MountDir:C:\recmount /commit rd C:\recmount

9. When winRE.wim has been saved, we have to rebuild it. We will use GImageX.

a) Launch the application from the external hdd (K:\GImageX\install\x64\gimagex.exe) b) Select the Export tab and perform the settings shown below:

Page 7: Guide for making Justin bieber sing

7

c) Click Export. The following dialog box will appear, showing rebuild progress:

d) When imaging operation is complete click Close at the dialog and then close the

main GimageX window. e) In the root of your external hdd (K:\) remove the old winRE.wim f) Rename winRE.new.wim to winRE.wim

You have slipstreamed all post-sp1 updates in Windows Recovery Environment!

Page 8: Guide for making Justin bieber sing

8

5. Slipstreaming updates in Windows Installation Image We will complete integration in 3 stages:

Stage 1: Install all Windows versions included in the install.wim image to separate virtual machines. In the case of Windows 7 x64 there exist 4 versions in the install.wim file: Home Basic, Home Premium, Professional and Ultimate. We will install each version in a separate virtual machine. This means that we will create 4 virtual machines.

Stage 2: Install all post-sp1 updates and optionally some programs. Stage 3: Re-create the install.wim image.

Before you start:

Create 4 new virtual machines in VMWare – see its documentation for help doing this. Use Windows 7 x64 OS profile and choose “I will install the operating system later”. The 4 virtual machines should be named like:

Let’s deal with the Windows 7 Home Basic x64 machine first. It is obvious that you

will install Windows 7 Home Basic x64 SP1 there. The steps provided below to integrate updates in Windows 7 Home Basic are almost identical for all versions.

Follow this order when you configure the different Windows versions in their virtual machines: deal with Windows 7 Home Basic first, then Windows 7 Home Premium, then Windows 7 Professional and finally Windows 7 Ultimate. Make sure you complete all 3 integration stages for each virtual machine before proceeding to the next one.

1. So, let’s start configuring each virtual machine. Start the virtual machine. Ignore any

messages about VMWare Tools installation. You need to enter VMWare’s BIOS setup and change boot order so that the first boot device is CDROM. Press F2 MANY TIMES to enter BIOS setup. If you miss it the first time, immediately press Ctrl+Shift+Del to reboot the virtual machine and start pressing F2 again.

Page 9: Guide for making Justin bieber sing

9

2. When you enter BIOS Setup use the arrows to move to the Boot tab, and then select the CDROM device:

3. Press “+” button 2 times to bring CD-ROM drive to the top of the boot list. Press F10 to save changes. Press ENTER. VMware will restart.

4. Windows Setup will load immediately from the modified TechNet ISO you had mounted earlier.

5. When initial window appears, just click next:

6. Click Install Now 7. Select the operating system to install from the following list:

Page 10: Guide for making Justin bieber sing

10

Select the version of Windows you want to install to the virtual machine. We will present the process for Windows 7 Home Basic x64. The steps are identical for other Windows versions.

8. Accept the license terms 9. Click Custom installation. 10. Click Next at partition selection screen. 11. Drink a cup of coffee/tea/whatever while Windows is being installed to the virtual

machine. 12. When Setup requires you to enter a computer name, press Ctrl+Shift+F3 key

combination (when the screen below appears):

Page 11: Guide for making Justin bieber sing

11

13. The virtual machine will restart. Windows will enter a special mode called audit mode.

14. When it completes loading to desktop, the following window will appear:

Ignore the “System Preparation Tool 3.14” window for the moment – just close it. It will reappear every time you the VM is restarted in later steps. Ignore it until you are told to do something with it.

15. If any window about selecting network type appears, just close it – it won’t appear again.

16. Open command prompt (it will be always elevated) 17. Attach the external hard disk drive to the virtual machine (see VMware’s

documentation for details) 18. Run the following commands: mkdir E:\Upd1\ext mkdir E:\Upd2\ext mkdir E:\Upd3\ext expand –F:* e:\upd1\*.msu e:\upd1\ext expand –F:* e:\upd2\*.msu e:\upd2\ext expand –F:* e:\upd2\*.msu e:\upd3\ext dism /online /Add-Package /PackagePath:E:\upd1\ext Note: You need to run the first six commands only on the first virtual machine you configure (the Windows 7 Home Basic one).

Page 12: Guide for making Justin bieber sing

12

The picture above shows dism installing updates 19. Press Y when it completes to restart Windows. 20. Install Windows Internet Explorer 9 – or the latest available version of IE. The

Internet Explorer 9 installation msu file is located in the Optional Updates folder of the external hdd drive. When Windows restarts, launch Windows Explorer. Move internet explorer 9 install msu file to external hdd’s root.

21. Open command prompt and run the commands: mkdir e:\ie_ext expand –F:* e:\*.msu e:\ie_ext dism /online /Add-Package /PackagePath:E:\ie_ext Note: You need to run the first 2 commands only on the first virtual machine you configure (the Windows 7 Home Basic one) 22. Again, wait for Windows Internet Explorer 9 to be installed. Press Y to restart

Windows when installation completes 23. When Windows restarts, open command prompt and run the following commands: dism /online /Add-Package /PackagePath:E:\upd2\ext /norestart dism /online /Add-Package /PackagePath:E:\upd3\ext /norestart This will install security updates. Ignore error messages about WSUS.cab

Page 13: Guide for making Justin bieber sing

13

24. Restart Windows again. After restart, open windows explorer and browse to

E:\Optional Updates. 25. Install the optional Windows Management Framework MSU update (if applicable) –

it is the smaller of the two MSU files (just double click it). Follow instructions to install.

26. Restart Windows again. 27. Now launch Windows Update and check for remaining updates (Internet connection

required):

Install the Windows Update Agent update first (click Install Now above).

Page 14: Guide for making Justin bieber sing

14

Wait until scanning for updates is complete. (Click “Check for Updates” if it appears again).

Click OK to download and install updates.

NOTE: You can skip steps 16-26 and alternatively use Windows Update to download and

install ALL updates. Remember to repeatedly scan for updates until no one shows up. (You MUST skip installing .NET Framework 4 profile by hiding it)

After all updates have been installed, click Restart now to finish installing.

Page 15: Guide for making Justin bieber sing

15

28. Copy the slipstreamed winRE.wim file from E: drive to the C:\Windows\System32\Recovery folder. Replace the winRE.wim file that exists there.

29. At this point, you can optionally install programs like .NET Framework. Perform all necessary reboots.

30. Optionally run the large MSU file in the E:\optional Updates folder. It is the latest version of System Update Readiness Tool.

31. Restart again. When the sysprep window appears:

DO NOT CLOSE IT. First detach external hdd. THEN CHECK “Generalize” option, click OK.

BE READY FOR SYSTEM RESTART! When system restarts boot immediately from Windows installation disk (press any key when the “Press any key to boot from CD or DVD” message appears).

32. When Windows Setup loads click next:

Page 16: Guide for making Justin bieber sing

16

33. Click “Repair your computer”

34. When the System Recovery Options message appears click No

Page 17: Guide for making Justin bieber sing

17

35. Click Next. At the Windows Recovery Options Dialog click “Command Prompt”:

36. Attach the external hdd to the virtual machine.

37. At command prompt type “notepad” and press ENTER.

38. We will use notepad’s Open File Dialog to view files in explorer-style. – Let’s cleanup

all log files

Page 18: Guide for making Justin bieber sing

18

a) Set Files of Type to All Files, to show all file types.

b) Click the “computer” button on the left pane of the open dialog. Open the D: volume

(where Windows is installed):

c) Browse to \Windows folder. Delete the TSSysprep.log and WindowsUpdate.log files

(select them one at a time and press Shift+Del):

Page 19: Guide for making Justin bieber sing

19

d) Then, while you are in the Windows folder, open the Logs\CBS folder and delete the

CBS.log file there:

e) Then return to the Windows folder. Open the \Panther folder. Delete everything in

there:

Page 20: Guide for making Justin bieber sing

20

f) Return to \Windows folder. Open the \system32\sysprep folder:

g) Delete the Sysprep_succeeded.tag file. Then open the Panther folder and delete

everything in there.

You have deleted the log files. Close Open dialog and then close notepad.

39. Reset original WPA configuration: System Preparation Tool resets the original 30-

day activation grace period. This reduces the remaining number of such resets. We

will undo this change right now

At the command prompt type:

reg load HKLM\MY_SYSTEM “D:\Windows\System32\config\SYSTEM” reg delete HKLM\MY_SYSTEM\WPA /f reg unload HKLM\MY_SYSTEM

40. Re-Capture operating system install image with GImageX: a) Open notepad and browse to “My Computer” as shown in steps 38a, 38b b) Open the External hdd (drive f: ) c) Open GIMagex folder:

Page 21: Guide for making Justin bieber sing

21

d) Proceed in the subfolders until you find the x64 version of GImageX e) To launch it, right click it and click “Run as Administrator”:

f) GImageX Window will appear. g) The settings you will select now depend on which virtual machine OS you configure:

Page 22: Guide for making Justin bieber sing

22

Windows 7 Home Basic x64 settings:

Windows 7 Home Premium x64 settings:

Page 23: Guide for making Justin bieber sing

23

Windows 7 Professional x64 settings:

Windows 7 Ultimate x64 settings:

Page 24: Guide for making Justin bieber sing

24

h) Finally click:

The “Create” button if you are working on Windows 7 Home Basic

The “Append” button if you are working on Windows 7 Home

Premium/Professional/Ultimate virtual machines

i) When capture process is complete, close GImageX and power off virtual machine

j) You may delete the virtual machine.

Page 25: Guide for making Justin bieber sing

25

6. Slipstreaming updates to Windows Boot Image

Now that you have created the install.wim file, you have to slipstream updates in boot.wim.

There is a small “gift” for us if we slipstream updates in boot.wim – so keep reading.

1. On the host computer (after so many hours!) copy the boot.wim file from the virtual

drive where you had mounted the modified Technet ISO. (It is located in /Sources

folder). Paste it to the root of C: folder

2. Run the commands (in the elevated command prompt you had opened hours ago):

Mkdir C:\recmount

Dism /Mount-Wim /WimFile:C:\boot.wim /index:1 /MountDir:C:\recmount

3. Follow exactly the same steps described in Windows Recovery Slipstreaming.

Perform all steps up to including step 8 (page 6).

4. Now run these commands:

Mkdir C:\recmount

Dism /Mount-Wim /WimFile:C:\boot.wim /index:2 /MountDir:C:\recmount

5. Follow exactly the same steps described in Windows Recovery Slipstreaming.

Perform all steps up to including step 7 (page 6).

6. The reason why we’ll not yet perform step number 8 is the “gift” I told you earlier.

By slipstreaming all-post sp1 updates boot.wim has now the latest Windows Setup

files. We will add these updated versions to the new setup ISO we will create.

7. Using Windows Explorer go to C:\mount\sources folder.

8. Select all files EXCEPT the ARUNMIG.dll file and the recovery directory:

Page 26: Guide for making Justin bieber sing

26

9. Copy files to clipboard (Press Ctrl+C)

10. Create a new folder in the root of C: drive named WIN7

11. Inside the C:\WIN7 folder create an empty folder named sources

12. Paste those files to this newly created source folder.

13. Close all Windows Explorer windows.

14. Execute step 8 described in page 6.

15. Rebuild Windows Boot Image: Launch GImageX and select the Export tab. Use the

settings below.

16. Click the Export button. When export is complete, click Close to close the Progress

dialog but don’t close gimagex. Instead specify Image number 2 (see picture above)

and without changing any other settings, click export again.

17. This time close both progress dialog and gimagex, as soon as progress is complete.

18. Delete C:\boot.wim file

19. Rename C:\boot.new.wim to boot.wim.

7. Create Updated Windows 7 Installation Disk

1. From the mounted ISO COPY all files and folders in the disk root – except for the

sources folder – to the C:\WIN7 folder

2. Open the /sources folder on the virtual drive.

3. Select all files except for boot.wim and install.wim and copy them to clipboard.

4. Paste these files to C:\WIN7\sources folder. If you are prompted to

merge folders, select Yes for all items. If you are

prompted to overwrite files, select “Don’t Copy” for all

items!!

5. Move the boot.wim from the C: root folder to the C:\WIN7\sources folder 6. Move the install.wim from external hdd’s root folder to C:\Win7\sources folder 7. Now the contents of the C:\WIN7 folder should look like:

Page 27: Guide for making Justin bieber sing

27

and in the sources subfolder:

Page 28: Guide for making Justin bieber sing

28

Note that now all Windows 7 setup core files – except for the upgrade/migration-related

ones are updated to the latest version. The integrated hotfixes are reflected by the revision

version number – it is greater than in SP1 RTM: 17514 in original SP1 media, 18015 in this

updated distribution.

8. Update Windows Setup catalogs: Follow the steps below:

a) Launch Windows System Image Manager to rebuild the catalog files. First, launch Windows SIM from the start menu. (Click Start->All Programs->Windows AIK->Windows System Manager).

b) Then right click at “Select a Windows image or catalog file” and click Select Windows image.

The following dialog will appear:

Select an operating system image to create a catalog for it. Click OK.

Page 29: Guide for making Justin bieber sing

29

c) When a dialog appears prompting you to update the catalog files, click Yes. Accept UAC elevation.

d) Wait until catalog file has been created. e) Right click on the image name – shown at the “Windows Image” left side pane and

click “close Windows Image” at the context menu f) Repeat steps a – e until you have created updated catalogs for all 4 operating system

images. g) Close Windows System Image Manager 9. Finally, we have to save this updated files to an ISO. Unmount the modified Technet

ISO we used to install Windows in Virtual machines. Simply, using your ISO editing

tool modify that ISO: Delete all files in it. Copy all the contents of C:\WIN7 folder to

this ISO. Save changes!

10. At last, we are done! Burn the ISO to a DVD or USB Flash drive. Enjoy the updated

installation of Windows you have just created!

By harkaz, 20 January 2013