オリジナルな部分
起動状態
CDブートした直後、コマンドプロンプトが起動している。
表題:管理者:X:\windows\system32\cmd.exe X:\windows\system32>wpeinit X:\windows\system32>
フォルダの作成
F:\>mkdir image
フォルダを作成しておかないと、次のステップでつまずく。
イメージの取得
X:\>imagex /capture C:\ F:\image\image.wim "Win" /check /verify Image X Tool for Windows Copyright (c) Microsoft Corp. 1981-2005. All rights reserved. Files/folders excuded from image capture by default: \WINDOWS\CSC \RECYCLER \System Vlolume Information \pagefile.sys \hiberfil.sys \$ntfs.log Progress: 100% Successfully imaged c:\
応答ファイル
作り忘れていた。
新しい応答ファイルの作成
- Windows Vistaの製品DVDを挿入する
- 「E:\source\install.win」をローカルにコピーする(コピーしないとイメージマネージャーでコケる)
- [スタート]→・・・[Windows AIK]→[Windows System Image Manager]を起動する(Windows SIM)
- [File]→[Select Windows Image...]でコピーした「install.wim」を指定する
- 通常の製品版のDVDだとバージョン選択があるらしい。(VL版なのでBしか選べない)
- 「・・・You must have a valid catalog file to continue.Do you want create a catalog file? (You must be an administrator of the local machine.) で 「Yes」
- Generating Catalog FileでSerializing Dataとかで頑張っている。
コピーしたinstall.wimと同じディレクトリに「install_Windows Vista BUSINESS.clg」ってのができた。
設定の追加
基本のディスク構成と「Windows へようこそ」オプションの定義
- Windows SIMで「New Answer File」を選択、「Answer File」ペインにずらずら表示される
- 「Windows Image」ペインでコンポーネントを選んで右クリック「Add Setting to Pass ...」を選択する
- Microsoft-Windows-Setup\DiskConfiguration\Disk\CreatePartitions\CreatePartition → 1 windowsPE
- Microsoft-Windows-Setup\DiskConfiguration\Disk\ModifyPartitions\ModifyPartition → 1 windowsPE
- Microsoft-Windows-Setup\ImageInstall\OSImage\InstallTo → 1 windowsPE
- Microsoft-Windows-Setup\UserData → 1 windowsPE
- Microsoft-Windows-Shell-Setup\OOBE → 7 oobeSystem
- Microsoft-Windows-Shell-Setup\AutoLogon → 7 oobeSystem
- Microsoft-Windows-International-Core-WinPE → 1 windowsPE
- 「Answer File」ペインにガンガン追加される
設定の構成
追加を全て終えてから取り掛かる。
「Answer File」のコンポーネントを選択すると「DiskConfiguration Properties」にプロパティが表示されるので変更する。
- Microsoft-Windows-Setup\DiskConfiguration
- WillShowUI = OnError
- Microsoft-Windows-Setup\DiskConfiguration\Disk
- DiskID = 0
- WillWipeDisk = true
- Microsoft-Windows-Setup\DiskConfiguration\Disk\CreatePartitions\CreatePartition
- Extend = false
- Order = 1
- Size = 20000 (注 : この例は 20 GB パーティションを作成します。)
- Type = Primary
- Microsoft-Windows-Setup \DiskConfiguration\Disk\ModifyPartitions\ModifyPartition
- Active = true
- Extend = false
- Format = NTFS
- Label = OS_Install
- Letter = C
- Order = 1
- PartitionID = 1
- Microsoft-Windows-Setup\ImageInstall\OSImage\
- WillShowUI = OnError
- Microsoft-Windows-Setup\ImageInstall\OSImage\InstallTo
- DiskID = 0
- PartitionID = 1
- Microsoft-Windows-Setup\UserData
- AcceptEula = true
- Microsoft-Windows-Setup\UserData\ProductKey
- Key = <プロダクト キー>
- WillShowUI = OnError
- Microsoft-Windows-Shell-Setup\OOBE
- HideEULAPage = true
- ProtectYourPC = 3
- SkipMachineOOBE = true
- SkipUserOOBE = true
- Microsoft-Windows-International-Core-WinPE
- Microsoft-Windows-International-Core-WinPE\SetupUILanguage
- UILanguage =
- UILanguage =
- Microsoft-Windows-Shell-Setup\AutoLogon
- Enabled = true
- LogonCount = 5
- Username = Administrator
- Microsoft-Windows-Shell-Setup\AutoLogon\Password