Skip navigation
Q. How do I install language packs into a Windows Imaging Format (WIM) file?

Q. How do I install language packs into a Windows Imaging Format (WIM) file?

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>
  1. Launch the Windows System Image Manager.
  2. If you don't already have a distribution share, create one.
  3. Go to Windows Server 2008 Multilingual User Interface Language Packs to download the language packs you want to install.
  4. Copy the language packs into the Packages folder. When you're done, the Windows System Image Manager should look similar to Figure 1.
  5. 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:
  6. 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\mount
    
    The 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).
  7. 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
    
    

 

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish