A. You add language packs to a WIM file by using Pkgmgr, the same way you would use the program to add an additional driver. You'll also need a Windows Automated Installation Kit installed. In the following example, I added a language pack to a Windows Server 2008 image.
<?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <servicing> <package action="install"> <assemblyIdentity name="Microsoft-Windows-Server-LanguagePack-Package" version="6.0.6001.18000" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="es-ES" /> <source location="D:\OS Images\2008LPS\Packages\es-es\lp.cab" /> </package> <package action="install"> <assemblyIdentity name="Microsoft-Windows-Server-LanguagePack-Package" version="6.0.6001.18000" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="fr-FR" /> <source location="D:\OS Images\2008LPS\Packages\fr-fr\lp.cab" /> </package> </servicing> <cpi:offlineImage cpi:source="wim:d:/temp/install.wim#Windows Longhorn SERVERSTANDARD" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> </unattend>
- Launch the Windows System Image Manager.
- If you don't already have a distribution share, create one.
- Go to Windows Server 2008 Multilingual User Interface Language Packs to download the language packs you want to install.
- Copy the language packs into the Packages folder. When you're done, the Windows System Image Manager should look similar to Figure 1.
- As soon as the language packs are listed in the answer file, save the answer file to an XML file. It should look something like the following text:
Next, mount a writable-mode image from the WIM file, using the following code as an example:
D:\temp>imagex /mountrw d:\temp\install.wim 1 d:\temp\mountThe output would be:
ImageX Tool for Windows Copyright (C) Microsoft Corp. All rights reserved. Mounting (RW): \[d:\temp\install.wim, 1\] -> \[d:\temp\mount\] Successfully mounted image (RW).
Then, use Pkgmgr to import the language packs into the image. This step can take a long time depending on the number of languages you add. It took me 45 minutes to add Spanish and French on my computer.
D:\temp>pkgmgr /o:"d:\temp\mount;d:\temp\mount\windows" /n:"d:\temp\unattend.xml" /l:d:\temp\unattend
Once the insertion is complete, Server 2008 will create a log file at the end of the unattend.txt file.
You can use the Intlcfg command to set the WIM file default language (in this example, I used Spanish) and check the languages available using the following sample code as an example:
intlcfg -image:d:\temp\mount -all:es-ES ntlcfg -report -image:d:\temp\mount
Then, you can close the image file, as the following example code shows:
imagex /unmount /commit d:\temp\mount