Windows Embedded Boot Camp

Recovery CD

Windows Embedded Boot Camp
Building a Recovery CD Guohua Mao System Engineer Device Solutions Sales Microsoft Corporation April. 2006

Building a Recovery CD
In this session we are going to cover the steps that are needed to create a recovery CD

Microsoft Confidential ± NDA Only

Steps to Create the Recovery CD
Create a Working Directory On your main OPK Server, Create a directory called ³Recovery´. This is where you will create your Recovery CD. Example ³C:\Recovery\´
1

Copy OS Binaries to the Directory Copy CD 2 (your OS binaries) from your OPK kit into the ³Recovery´ directory you made on your main OPK Server
2

Microsoft Confidential ± NDA Only

Section 3-2

1

Windows Embedded Boot Camp

Recovery CD

Steps to Create the Recovery CD

Copy CFGSet Directory to Flat Copy the $OEM$ and contents From
³C:\OPKTOOLS\CFGSet\XXXX\$OEM$´

Make SysPrep Dir in $OEM$
Create a \$1 directory under $OEM$. Create a \SysPrep directory under $1 Example:
C:\Recovery\$OEM$\$1\SysPrep\

on your OPK Server to the ³Recovery´ directory 3

4

Microsoft Confidential ± NDA Only

Steps to Create the Recovery CD
Copy SysPrep Binaries
FACTORY.EXE SYSPREP.EXE SETUPCL.EXE NETCFG.EXE From:
C:\OPKTools\Lang\Eng\Tools\X86

Create a OEMDrivers Dir
Create a OEMDrivers directory under ³C:\Recovery\$OEM$\$1\Sysprep´ Example:
C:\Recovery\$OEM$\$1\SysPrep\OEMDrivers\

To: CD:\$OEM$\$1\SysPrep\ 5

6

Microsoft Confidential ± NDA Only

Steps to Create the Recovery CD
Copy OEMDriver Binaries
Copy all your drivers thatyou need to support for your Recovery CD to that directory Example:
C:\Recovery\$OEM$\$1\SysPrep\OEMDrivers\Storage\ C:\Recovery\$OEM$\$1\SysPrep\OEMDrivers\Video\ C:\Recovery\$OEM$\$1\SysPrep\OEMDrivers\Net\

7

8

Create a MS Critical Updates Dir
Create a MS Critical Update directory under ³C:\Recovery\$OEM$\$1\Sysprep´ Example: C:\Recovery\$OEM$\$1\SysPrep\MSUpdates\
Microsoft Confidential ± NDA Only

Section 3-2

2

Windows Embedded Boot Camp

Recovery CD

Steps to Create the Recovery CD
Copy Chosen Critical Update Binaries
9 Copy chosen Critical MS Updates that you need to support for your Recovery CD to that directory Example: Worm Fixes (Blaster, etc).

Add WINNT.SIF to i386 Dir
10 Rename UNATTENDED.TXT located at ³C:\Recovery\$OEM$\Unattended.txt´ to WINNT.SIF. Example:³C:\Recovery\$OEM$\WINNT.SIF´ Move WINNT.SIF to ³C:\Recovery\I386\´ Example: ³C:\Recovery\i386\WINNT.SIF´
Microsoft Confidential ± NDA Only

Steps to Create the Recovery CD

Modify WINNT.SIF Modify or add the following Sections on WINNT.SIF Italics are additional Info for you 11

Microsoft Confidential ± NDA Only

Modifications in WINNT.SIF
[DATA] AutoPartition = 1
This will partition your HDD like WINBOM.INI does when using Setup Manager This will inform Windows Setup that it is running from the CD This will inform Windows Setup that it is running from the CD

MsDosInitiated = 0

UnattendedInstall = Yes [UNATTENDED] OEMPreinstall = Yes Factory Mode = Yes

This will pickup the $OEM$ dir on the CD

After Windows Setup completes, SysPrep runs and access the WINBOM.INI This will load Mass Storage and Net drivers like ³F6´; if needed for boot support. See OPK Guide for details Creates only 1 partition on the HDD and formats with NTFS

OEMPnPDriversPath = SySPrep\OEMDrivers\Storage; Repartition = Yes

[USERDATA] ProductKey = xxxx-xxxx-xxxx-xxxx-xxxx

Populate OEM or SLP product key for unattended install
Microsoft Confidential ± NDA Only

Section 3-2

3

Windows Embedded Boot Camp

Recovery CD

Steps to Create the Recovery CD

WINBOM.INI
Because we added SYSPREP to the Recovery CD we must use a WINBOM.INI is the asnwer file to SYSPREP.
12

Move WINBOM.INI
From: ³C:\Recovery\$OEM$\´ To: ³C:\Recovery\$OEM$\$1\SysPrep\´ 13

Microsoft Confidential ± NDA Only

Steps to Create the Recovery CD

Modify WINBOM.INI
Modify or add the following sections in the WINBOM.INI file listed below. Data is in BOLD. Italics are additional info for you 14

Microsoft Confidential ± NDA Only

Modifications in WINBOM.INI
[FACTORY] Resealmode = OOBE Preps the system for Windows Welcome Reseal = Reboot Reboots the computer into Windows Welcome for the customer [COMPUTERSETTINGS] AuditAdminAutoLogon = Yes Specifies if the Admin logs on during Factory Mode [PNPDrivers] C:\SysPrep\OEMDRIVERS\ = OEMDrivers This will copy all drivers from the specified path to ³C:\Windows\Drivers\OEMDrivers´ and then install them [PNPDRIVERUPDATE] DevicePath = C:\SysPrep\OEMDRIVERS\ Points to OEM Drivers to install UpdateInstalledDrivers = Yes Calls PnP after all drivers are installed and only updates all installed drivers (if necessary) WaitForPnP = Yes Waits for Windows to enumerate all devices before installing drivers [OEMRUNONCE] "Installing QFE 329898","""Q329898.EXE""-q /z" Add your applications and Critical MS Updates here. Use the correct format.
Microsoft Confidential ± NDA Only

Section 3-2

4

Windows Embedded Boot Camp

Recovery CD

Steps to Create the Recovery CD
Copy OPK Tools To local HDD
Located your OPK/WINPE CD (CD #1) that came in the white envelope from MS with the other CDs 02. Copy the WINPE directory from that CD to your local system. Example: Copy D:\WINPE C:\WINPE It contains the tools you need to create a bootable ISO image 15

Check size of Recovery CD
IMPORTANT NOTE Check the size of the Recovery CD directory before you create a bootable ISO image. If you are over 650 MB then you need to delete some of your added files. You can also delete the following directories in the ³C:\Recovery\´ Directory to gain approximately ~35 MB.
| \WINNTUPG | \WINNTMIG | \WIN9XMIG |

16

Microsoft Confidential ± NDA Only

Steps to Create the Recovery CD
Create a Bootable ISO Image
1. Open a CMD prompt 2. Use OSCDIMG.EXE in ³C;\WINPE´ Dir to make the ISO Example:
C:\WINPE\OSCDIMG -h -n -bETFSBoot.com C:\Recovery C:\Recovery.ISO

17

This will create a bootable ISO image of your working Recovery CD Flat Directory Congratulations. Now test it!!

Burn the CD
Use 3rd party burning Software to burn the image onto CD (650 MB).
18
Microsoft Confidential ± NDA Only

© 2005 Microsoft Corporation. All rights reserved. Microsoft, Windows, and Windows CE are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. The names of actual companies and products mentioned herein may be the trademarks of their respective owners. Microsoft products are licensed to OEMs by Microsoft Licensing, GP, a wholly owned subsidiary of Microsoft Corporation. This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.

Section 3-2

5