Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

借用 Windows Vista WIM 映像技術封裝 Windows XP:打造支援自訂序號、分區選擇的安裝映像

編輯:XP 系統基礎知識

WIM 格式簡介

Windows Vista (Longhorn) 引入 WIM (Windows Imaging) 映像格式,類似 Ghost 但更靈活:安裝前可選擇還原分區、輸入序號、設定用戶名等。Vista Beta 1 光碟 Sources 目錄下有 Boot.wim、Install.wim。

核心工具:xImage

Microsoft 釋出 xImage(包含於 WAIK)操作 WIM。指令範例:

  • 查看資訊:xImage /info f:\Sources\Boot.wim
  • 掛載(唯讀):xImage /mount g:\mount f:\Sources\Install.wim 1(需先安裝 wimfltr.inf 過濾器)
  • 封裝:xImage /compress maximum /capture C: Install.wim "Windows XP Professional SP2"
  • 卸載並認可:xImage /unmount /commit g:\mount

實戰:以 WIM 封裝 Windows XP SP2

準備工作

  • Windows Vista Beta 1 Build 5112 ISO(或 DVD 轉 ISO)
  • xImage 6.0.5112
  • Sysprep(釋放至 C:\Sysprep,可從 Longhorn 5048 取得)
  • WinPE 啟動光碟(推薦深山紅葉 WinPE)
  • UltraISO(編輯光碟映像)

步驟

  1. 安裝並優化 XP:全新安裝 XP(分區建議 FAT32),裝驅動、常用軟體、優化設定。
  2. 系統瘦身:清理垃圾、關閉系統還原、頁面檔設無、重開機。
  3. Sysprep 一般化:切換至 C:\Sysprep 執行 sysprep,完成後自動關機。
  4. WinPE 下封裝 WIM:用 WinPE 開機,執行
    xImage /Compress maximum /Capture C: D:\Install.wim "Windows XP Professional SP2"
    (耗時 20 分鐘以上,映像約 655MB,需 DVD 燒錄)。
  5. 修改 Vista 光碟映像:用 UltraISO 開啟 Vista ISO,Sources 目錄下用新 Install.wim 覆蓋原檔;刪除 Drivers 目錄(省 1.26GB);從 XP SP2 光碟 i386 複製 Pidgen.dll、setupp.ini 到 Vista Sources 覆蓋(支援 XP 序號驗證)。
  6. 燒錄啟動光碟:用 UltraISO 燒錄修改後的 ISO,即得支援彈性部署的 XP 安裝光碟。

結語

WIM 為極具潛力的封裝格式,WAIK 正式發布後制作將更簡單、選項更豐富。目前以「偷天換日」方式移植至 XP,屬權宜之計。

Copyright © Windows教程網 All Rights Reserved