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.
processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="es-ES" />
processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="fr-FR" />
- 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:
The output would be:D:\temp>imagex /mountrw d:\temp\install.wim 1 d:\temp\mountImageX Tool for Windows
Copyright (C) Microsoft Corp. All rights reserved.
Mounting (RW): \[d:\temp\install.wim, 1\] ->
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