Install a Language Pack to an Offline Image (Standard 7 SP1)

7/8/2014

You can use Deployment Image Servicing and Management (DISM) to install one or more language packs to an offline Windows Embedded Standard 7 image. This is a typical OEM scenario.

Note

Adding multiple language packs to a Standard 7 image can significantly increase its size. A Standard 7 image (.wim) file that uses several language packs can be several gigabytes larger than a single-language Standard 7 image file. Installing large Standard 7 images over the network could lead to longer installations.

See Locale IDs Assigned by Microsoft for a list of all Locale IDs used by Microsoft. Note that not all of these are supported on Standard 7.

To use Package Manager to install a language pack

  1. Browse to the language pack(s) to install in the Standard 7 image file. Language packs are stored in .cab files and are called Lp.cab.

  2. Use Image Configuration Editor to create an answer file that contains only the language packs that you intend to install. To add a language pack directly to an answer file, see Add a Package to an Answer File in Image Configuration Editor. To add a language pack to a distribution share, see topic Importing a Package to a Distribution Share.

  3. Save the answer file and close Image Configuration Editor. The answer file must resemble the following sample.

    <?xml version="1.0" encoding="utf-8" ?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
         <servicing>
              <package action="install">
                   <assemblyIdentity name="WinEmb-LanguagePack-Package" version="6.0.5350.0" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="fr-FR" />
              <source location="C:\LPs\fr-FR\lp.cab" />
              </package>
              <package action="install">
                   <assemblyIdentity name="WinEmb-LanguagePack-Package" version="6.0.5350.0" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="fr-FR" />
                   <source location="C:\LPs\fr-FR\lp.cab" />
              </package>
         </servicing>
         <cpi:offlineImage cpi:source="wim:C:/MyDir_distribution/sources/install.wim#MyImage" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>
    
  4. At a command prompt, type the following to use ImageX to mount the Standard 7 image onto which you want to install the drivers, replacing <wim_file> with the full path of your wim file, <image_number> with the volume of your image in the wim file, and <image_mount_path> with the file path to mount the image to:

    imagex /mountrw <wim_file> <image_number> <image_mount_path>
    

    For more information, see ImageX Command-Line Options.

  5. Use DISM to apply the unattended installation answer file to the mounted Standard 7 image. For example,

    The language pack is installed to the Standard 7 image.

  6. Use Intlcfg.exe to re-create the Lang.ini file and select the default international values. Intlcfg.exe is a command line tool used to change the language, locale, fonts and input settings. For more information on Intlcfg.exe, see Intlcfg Command-Line Options. When you add or remove language packs in a Standard 7 image, you must re-create the Lang.ini file. The Lang.ini file is used by Image Builder and contains a list of all available language packs, the locations of the language packs, and the default language that is used by Image Builder.

    Type the following at a command prompt to re-create the Lang.ini file with intlcgf and set the default language used by Image Builder and the Standard 7 installation, replacing <image_mount_path> with the file path your image is mounted to; <image_builder_language> with the Language Code Identifier (LCID) of the default language of Image Builder and <image_language> with the LCID of the default language for the image:

    intlcfg -genlangini -dist:C:\MyDir_distribution -image: <image_mount_path> –defaultlang: <image_builder_language> –all: <image_language>
    

    The Lang.ini file is recreated and includes a list of the installed language packs. Additionally, the default language that is used by Image Builder and the default language of the Standard 7 installation are set to the selected LCIDs. LCIDs are

    Type the following at a command prompt to use the –report option for Intlcfg to report the languages that are available or installed to the Standard 7 image, replacing <image_mount_path> with the file path your image is mounted to:

    intlcfg -report -dist:C:\MyDir_distribution -image: <image_mount_path>
    

    Verify that the installed language appears.

  7. At a command prompt, type the following to use ImageX to unmount the .wim file and commit the changes, replacing <image_mount_path> with the file path your image is mounted to:

    imagex /unmount /commit <image_mount_path>
    

    The Standard 7 image is ready to be deployed.

Note

If you want to change the language that is used by Image Builder, you must add the Image Builder localized resources to the Standard 7 distribution.

See Also

Concepts

ImageX Command-Line Options

Other Resources

Customizing Images
Intlcfg Command-Line Options