Install a Language Pack to an Offline Image
You can use Package Manager to install one or more language packs to an offline Windows image. This is the typical OEM scenario.
|Adding multiple language packs to a Windows image can significantly increase its size. A Windows image (.wim) file with several language packs can be several gigabytes larger than a single-language Windows image file. Installing large Windows images over the network can lead to longer installations.|
To install a language pack with Package Manager
Navigate to the language pack(s) to install in the Windows image. Language packs are stored in .cab files and are called Lp.cab.
Use Windows System Image Manager (Windows SIM) 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. To add a language pack to a distribution share, see Import a Package to a Distribution Share.
Save the answer file and close Windows SIM. The answer file must be similar to the following sample.
<?xml version="1.0" encoding="utf-8" ?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <servicing> <package action="install"> <assemblyIdentity name="Microsoft-Windows-LanguagePack-Package" version="6.0.6000.16386" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="fr-FR" /> <source location="C:\LPs\fr-FR\lp.cab" /> </package> <package action="install"> <assemblyIdentity name="Microsoft-Windows-LanguagePack-Package" version="6.0.6000.16386" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="de-DE" /> <source location="C:\LPs\de-DE\lp.cab" /> </package> </servicing> </unattend>
Use ImageX to mount the Windows image that you intend to apply to the language pack. For example,
imagex /mountrw C:\windows_distribution\sources\install.wim 1 C:\wim_mount
Use Package Manager to apply the unattended installation answer file to the mounted Windows image. For example,
start /w pkgmgr /o:"C:\wim_mount\;C:\wim_mount\Windows" /n:"C:\unattend.xml"
The language pack is installed to the Windows image.
If you are creating a Windows distribution, use Intlcfg.exe to recreate the Lang.ini file and select the default international values. When you add or remove language packs in a Windows image, you must recreate the Lang.ini file. The Lang.ini file is used during Windows Setup and contains a list of all available language packs, the locations of the language packs, and the default language to use during Windows Setup.
For example, recreate the Lang.ini file for a Windows distribution with the following command.
intlcfg -genlangini -dist:C:\windows_distribution -image:C:\wim_mount –defaultlang:fr-FR –all:fr-FR
intlcfg -image:C:\wim_mount –all:fr-FR
Report the languages that are available or installed to the Windows image by using the -report option for the Intlcfg command. For example,
intlcfg -report -dist:C:\windows_distribution -image:C:\wim_mount
intlcfg -report -image:C:\wim_mount
Unmount the .wim file and commit the changes. For example,
imagex /unmount /commit C:\wim_mount
To change the language that is used during Windows Setup, you must add the Windows Setup localized resources to the Windows distribution. For more information, see Add a Language to Windows Setup.