close

有一天收到了來自MS的信:

Embedded OEMs do no have rights to distrubte Imagex.exe as part of Embedded System reovery solutions or for any other purposes.

  • Imagex 被包括在OEM Preinstallation Kits (OPKs)或是Windows Automated Installatio Kit (WAIK)的一部份,用來在以下的產品上

1. Windows Vista Business for Embedded Systems

2. Windows Vista Ultimate for Embedded Systems

3. Windows 7 Professional FES

4. Windows 7 Ultimatd FES

  • 針對備份,MS介紹使用Windows imaging (.wim)為檔案格式
  • Imagex是一個需透過command-line介面,而且透過Windows Imaging Application Platfrom Interface (WIMGAPI),我們可以對影像作備份或還原。WIMGAPI是用來在
    在Vista and Windows 7 FES
  • WAIK的目的是協助Embedded OEMs取得、還原、部署所製作的系統,而不是用來給一般的end users的。

 

那有沒有辦法透過WIMGAPI做到像Imagex這樣功能性強大的工具呢?其實是有的,也就是UFD Recovery Solution。我們需要以下的檔案
  • OEMFactoryRecover.hta:VBScript語法,包含EULA跟OEM logo的置放位置
  • Winpeshl.ini:更改PE shell,取代之前的command-line shell
  • CleanDisk.txt:透過diskpart將storage格式化,內容都清除
  • Logo.gif:OEMs的logo
  • ISA.exe:整個Recovery的核心,包含著可以對系統capture或apply的WIMGAPI。
  • Autorun.inf
 
1. 先找一個隨身碟(4GB以上),然後在命令提示列裡輸入,將隨身碟格式化成可以開機的storage

Diskpart

List Disk

Select Disk X (Where X is the disk representing the UFD)

Clean

Create partition primary

Active

Format fs=fat32 quick label=Recovery (or any other Name)

Assign

          Exit

2. 在command-line裡,輸入copype.cmd x86 c:\PE

3. 將WinPE.wim放到C:\PE\iso\sources,並rename成boot.wim

4. 透過imagex,將boot.wim解到mount資料夾
imagex /mountrw c:\pe\iso\sources\boot.wim 1 c:\pe\mount

5. 將一些MUI package加入
DISM /image:c:\pe\mount /add-package /packagepath:"c:\program files\windows OPK\Tools\PETools\x86\WinPE_FPS\winpe-scripting.cab"
DISM /image:c:\pe\mount /add-package /packagepath:"c:\program files\windows OPK\Tools\PETools\x86\WinPE_FPS\winpe-hta.cab"
DISM /image:c:\pe\mount /add-package /packagepath:"c:\program files\windows OPK\Tools\PETools\x86\WinPE_FPS\winpe-wmi.cab"
DISM /image:c:\pe\mount /add-package /packagepath:"c:\program files\windows OPK\Tools\PETools\x86\WinPE_FPS\en-us\winpe-scripting_en-us.cab"
DISM /image:c:\pe\mount /add-package /packagepath:"c:\program files\windows OPK\Tools\PETools\x86\WinPE_FPS\en-us\winpe-hta_en-us.cab"
DISM /image:c:\pe\mount /add-package /packagepath:"c:\program files\windows OPK\Tools\PETools\x86\WinPE_FPS\en-us\winpe-wmi_en-us.cab"


6. 將ISA.exe, logo.gif, CleanDisk.txt, OEMFactoryRestore.hta, winpeshl.ini複製到C:\PE|mount\Windows\system32

7. Commit Boot.wim
imagex /unmount c:\PE\mount /commit

8. 接著要置放wim檔
md c:\PE\ISO\Recovery
xcopy *.wim c:\PE\ISO\Recovery (看所製作的wim file是for Windows 7 FES or Windows XP Pro FES)

9. 接著把所有在C drive的所有檔案複製到隨身碟裡
xcopy c:\PE\ISO\*.* <UFD Drive>:\ /cherky
    就可完成

10. 拿到系統上試一下,看成果如何

 
這裡有一些連結是介紹Windows Imaging file format, WINGAPI, 還有Imagex
arrow
arrow
    文章標籤
    UFD UFD Recovery Imagex
    全站熱搜

    TsaiBiBa 發表在 痞客邦 留言(1) 人氣()