将语言添加到 Windows 映像Add languages to Windows images

备注

要将语言添加到个人电脑,请转到“设置” > “时间和语言” > “语言”,然后选择要安装的语言 。To add a language to your personal PC, go to Settings > Time & Language > Language, and choose a language to install. 了解详细信息Learn more.

可将语言和区域支持添加到 Windows 10(Windows 10 家庭单语言版和 Windows 10 Home 国家/地区特定版本除外)和 Windows Server。You can add languages and regional support to Windows 10 (except for Windows 10 Home Single Language and Windows 10 Home Country Specific editions), and Windows Server.

使用至少一种语言包及其语言组件进行 Windows 安装。Windows installations start with at least one language pack and its language components. 可以添加:You can add:

  • 语言包:Windows 本地化包以 .cab 文件形式提供,例如,Microsoft-Windows-Client-Language-Pack_x64_es-es.cab。Language packs: Localization packages for Windows, delivered as a .cab file, for example, Microsoft-Windows-Client-Language-Pack_x64_es-es.cab. 包括 UI 元素,如对话框文本、菜单项和帮助文件。Includes UI elements like text for dialog boxes, menu items, and help files.
  • 语言界面包 (LIP):部分本地化的语言包。Language Interface Packs (LIPs): Partially-localized language pack. 需要基本语言包。Requires a base language pack. 在 Windows 10 版本 1809 中,LIP 以本地体验包 (LXP) .appx 文件形式提供,例如,LanguageExperiencePack.am-et.neutral.appx。In Windows 10, version 1809, LIPs are delivered as Local Experience Packs (LXPs) .appx files, for example, LanguageExperiencePack.am-et.neutral.appx. 对于以前版本的 Windows 10,LIP 以 .cab 文件形式提供,例如,C:\Languages\es-ES\lp.cab。For previous versions of Windows 10, LIPs are delivered as .cab files, for example, C:\Languages\es-ES\lp.cab.
  • 语言功能:语言功能包括语言的基本内容(如拼写检查)、字体、光学字符识别、手写、文本到语音转换和语音识别。Language features: Language features include language basics (like spell checking), fonts, optical character recognition, handwriting, text-to-speech, and speech recognition. 可通过选择不在映像中包含某些语言组件来节省磁盘空间。You can save disk space by choosing not to include some language components in your image. 虽然这种映像大小减少可能对于使用受限存储的设备的映像创建非常有用,但这会导致语言体验不完整。While this reduction in image size can be helpful when creating images for devices with limited storage, it does lead to an incomplete language experience. 以 .cab 文件形式提供,例如 Microsoft-Windows-LanguageFeatures-Basic-fr-fr-Package.cab。Delivered as .cab files, for example, Microsoft-Windows-LanguageFeatures-Basic-fr-fr-Package.cab.
  • 恢复语言:Windows 恢复环境 (WinRE) 的 UI 文本。Recovery languages: UI text for the Windows Recovery Environment (WinRE). 以 .cab 文件形式提供。Delivered as .cab files. 例如:lp.cab、WinPE-Rejuv_fr-fr.cab 等。Example: lp.cab, WinPE-Rejuv_fr-fr.cab, and more.

获取语言资源:语言包 ISO 和按需功能 ISOGet language resources: Language Pack ISO and Feature on Demand ISO

  • 具有 Microsoft 软件许可条款的 OEM 和系统构建者可以从 Microsoft OEM 站点设备合作伙伴中心下载语言包 ISO 和按需功能 ISO。OEMs and System Builders with Microsoft Software License Terms can download the Language Pack ISO and Feature on Demand ISO from the Microsoft OEM site or the Device Partner Center.

    • 对于 Windows 10 版本 1809,LIP .appx 文件及其关联的许可证文件位于语言包 ISO 上的 LocalExperiencePack 文件夹中。For Windows 10, version 1809, LIP .appx files and their associated license files are in the LocalExperiencePack folder on the Language Pack ISO.
    • 对于以前版本的 Windows,语言界面包可单独下载。For previous versions of Windows, Language Interface Packs are available as a separate download.
    • WinRE 语言包分布于语言包 ISO。WinRE language packs are distributed on the Language Pack ISO. 请勿使用 ADK 随附的 WinPE 语言包。Don't use the WinPE language packs that ship with the ADK.
  • IT 专业人员可从Microsoft 新一代批量许可站点下载语言包。IT Professionals can download language packs from the Microsoft Next Generation Volume Licensing Site.

  • 安装 Windows 后,用户可通过选择“设置” > “时间和语言” > “语言” > “添加语言”来下载和安装更多语言 。After Windows is installed, users can download and install more languages by selecting Settings > Time & language > Language > Add a language.

备注

  • 语言组件必须与 Windows 的版本相匹配。Language components must match the version of Windows. 例如,不能将 Windows 10 版本 1809 语言包添加到 Windows 10 版本 1803。For example, you can't add a Windows 10, version 1809 language pack to Windows 10, version 1803.
  • Windows Server:不可与 Windows 10 互换完整的语言包。Windows Server: Full language packs are not interchangeable with Windows 10.

注意事项Considerations

  • 安装语言,然后安装更新和应用Install languages, then updates and apps. 如果要向已包含应用或更新的映像(例如,服务堆栈更新 (SSU) 或累积更新 (CU))添加语言,请重新安装应用和更新。If you're adding languages to an image that already contains apps or updates (for example, servicing stack updates (SSU) or cumulative updates (CU), reinstall the apps and updates.

    重要

    安装语言包之后,必须重新安装最新的累积更新 (LCU)。After you install a language pack, you have to reinstall the latest cumulative update (LCU). 如果不重新安装 LCU,则可能会遇到错误。If you do not reinstall the LCU, you may encounter errors. 如果已安装 LCU,Windows 更新不会再次提供它。If the LCU is already installed, Windows Update does not offer it again. 必须手动安装 LCU。You have to manually install the LCU.

  • 将语言安装到包含自带附属包的 FOD 的映像时需要小心Care is required when installing languages to an image that includes FODs with satellite packages. 当 FOD 有附属包时,此功能的本地化文本可能携带在附属包而不是语言包或主 FOD 包中。When FODs have satellite packages, the localized text for the feature may be carried in a satellite package rather than the language pack or primary FOD package. 向包含这些 FOD 的映像添加语言时,必须遵循特定步骤。Specific steps must be followed when adding languages to an image that includes these FODs.

    • 从 Windows 10 2004 版开始,默认 Windows 10 映像包含多个 FOD,其语言资源位于附属包中。Starting with Windows 10, version 2004, the default Windows 10 image includes several FODs with language resources in satellite packages. 在添加语言之前,必须先生成自定义 FOD 和语言存储库,确保在添加语言时拉入适当的附属包。Before adding languages, you must first build a custom FOD and language repository to ensure that the appropriate satellite packages are pulled in when the language is added.
    • 对于早于 2004 的 Windows 10 版本,在添加带附属包的 FOD 时,通常只需考虑这一点。For versions of Windows 10 earlier than 2004, this is typically only a concern when you have added a FOD with satellite packages. 在这里,最佳做法是先添加语言,然后添加 FOD。A best practice here is to add languages first, then FODs.
  • 大小和性能Size and performance

    • 可将多个语言和组件安装到同一个 Windows 映像中。You can install multiple languages and components onto the same Windows image. 如果安装过多内容,则会影响磁盘空间,还会影响性能,尤其是在更新和维护 Windows 时。Having too many affects disk space, and can affect performance, especially while updating and servicing Windows.
    • LXP 支持的语言包小于其 Lp.cab 支持的对应项。LXP-backed language packs are smaller than their Lp.cab-backed counterparts.
    • 创建 Windows 映像时,可以在部署到非英语地区时删除英语组件,以节约空间。When creating Windows images, you can remove English language components when deploying to non-English regions to save space. 你需要采用与它们的添加顺序相反的顺序来卸载它们。You'll need to uninstall them in the reverse order from how you add them.
    • 开箱即用体验 (OOBE) 完成后,将无法删除默认语言。After the Out-Of-Box-Experience (OOBE) is complete, the default language cannot be removed. 默认的 UI 语言是在开箱即用体验 (OOBE) 期间选择的,也可以使用 DISM 或无人参与的应答文件在映像中预先选择。The default UI language is selected either during the Out-Of-Box-Experience (OOBE), or can be preselected in the image using DISM or an unattended answer file.
    • 在 OOBE 之后的某个时间,系统会自动删除未使用的任何预安装语言。Some time after OOBE, any pre-installed languages that haven't been used are removed automatically. 语言包删除任务不会删除 LIP。The language-pack removal task does not remove LIPs.
  • 不支持跨语言升级Cross-language upgrades are not supported. 这意味着,在升级或迁移期间,如果要升级或迁移安装了多个语言包的操作系统,则只能升级或迁移到系统默认的 UI 语言。This means that during upgrades or migrations, if you upgrade or migrate an operating system that has multiple language packs installed, you can upgrade or migrate to the system default UI language only. 例如,如果默认语言是英语,则只能升级或迁移到英语。For example, if English is the default language, you can upgrade or migrate only to English.

添加语言包、LIP 和按需功能Add language packs, LIPs, and Features on Demand

我们会查看映像是否包含其语言资源位于附属包中的 FOD、构建自定义的本地 FOD 存储库、添加语言,以及验证是否已为每个 FOD 拉入所有语言资源。We'll check to see if the image includes FODs with language resources in satellite packages, build a custom and local FOD repository, add languages, and verify all language resources were pulled in for each FOD. 接下来,我们会添加 LIP 语言和按需语言功能包。Then we'll add a LIP language and the language Feature on Demand packages.

为节省空间,可在部署到非英语地区时删除英语组件,其方法为按照与添加语言组件相反的顺序卸载它们。To save space, you can remove English language components when deploying to non-English regions by uninstalling the language components in the reverse order from how you add them.

装载计划使用 Windows PE 或 Windows 安装程序进行部署的映像 (install.wim)Mount an image (install.wim) that you plan to deploy using Windows PE or Windows Setup

装载 Windows 映像:Mount the Windows image:

md C:\mount\windows
Dism /Mount-Image /ImageFile:install.wim /Index:1 /MountDir:"C:\mount\windows"

查看映像是否包含 FOD,其语言资源位于附属包中Check to see if the image includes FODs with language resources in satellite packages

首先,查看映像是否包含 FOD,其语言资源位于附属包中:First, check to see if the image includes FODs with language resources in satellite packages:

Dism /Image:"C:\mount\windows" /get-packages /format:table

查找语言功能之外的按需功能包,其名称中包含语言代码。Look for Feature on Demand packages, other than the Language Features, that include a language code in their name. 例如,MSPaint:For example, MSPaint:

Microsoft-Windows-MSPaint-FoD-Package~31bf3856ad364e35~amd64~en-US~10.0.19041.1
Microsoft-Windows-MSPaint-FoD-Package~31bf3856ad364e35~amd64~~10.0.19041.1
Microsoft-Windows-MSPaint-FoD-Package~31bf3856ad364e35~wow64~en-US~10.0.19041.1
Microsoft-Windows-MSPaint-FoD-Package~31bf3856ad364e35~wow64~~10.0.19041.1

此处在名称中嵌入 en-us 语言代码的两个包是具有特定于语言的资源的附属包。The two packages here with the en-us language code embedded in the name are satellite packages with language specific resources. 如果映像中存在任何此类包,则必须生成一个自定义 FOD 和语言包存储库,以便从其中添加语言。If any such package is present in your image, you must build a custom FOD and language pack repository to add languages from. 此自定义存储库需包含映像中包含附属包的所有 FOD 和要添加的所有语言包。This custom repository needs to include all FODs with satellite packages in your image and all language packs you wish to add. 这样,DISM 就可以在添加语言时自动拉入正确的 FOD 附属包。This enables DISM to automatically pull in the right FOD satellite packages when a language is added.

生成自定义 FOD 和语言包存储库Build a custom FOD and language pack repository

重要

如果映像包含附属包中有语言资源的 FOD,则必须先生成自定义 FOD 和语言包存储库,然后再添加语言包,确保拉入每个 FOD 的语言资源。If your image contains FODs with language resources in satellite packages you must build a custom FOD and language pack repository before adding language packs to ensure the language resources for each FOD are pulled in. 如果无法正确完成此操作,则这些功能不会本地化。If you fail to do this correctly, these features will not be localized. 从 Windows 10 版本 2004 开始,这包括默认情况下包含在映像中的记事本、写字板、MsPaint 和 PowerShell ISE 等功能。Starting with Windows 10, version 2004, this includes features such as Notepad, WordPad, MsPaint, and PowerShell ISE included in the image by default. 如果映像不包含附属包中有语言资源的任何 FOD,则可跳过此部分,直接从相应的 ISO 添加 FOD 和语言包。If your image doesn't include any FODs with language resources in satellite packages you can skip this section and add the FODs and language packs directly from the respective ISOs.

建议使用以下方法生成自定义 FOD 和语言包存储库:The following methods are recommended for building a custom FOD and language pack repository:

  • 如果存储库的大小不重要,则直接将 FOD ISO 和所有语言包的内容复制到同一目录中。If the size of the repository is not a concern, simply copy the contents of the FOD ISO and all language packs into the same directory.
  • 若要尽量缩小存储库,请将 /export-source 开关与 DISM 配合使用,只导出带附属包且包含在映像中的 FOD,以及要添加的任何其他 FOD。For a minimally sized repository, use the /export-source switch with DISM to export just the FODs included in your image that have satellite packages and any other FODs you'd like to add. 将所需的所有语言包复制到同一目录中。Copy all language packs of interest into the same directory.

在以下示例中,我们将生成一个尽量缩小的 FOD 和语言包存储库。In the following example, we'll build a minimally sized FOD and language pack repository. 首先,使用文件资源管理器装载语言包 ISO 和按需功能 ISO。First, mount the Language Pack ISO and the Features on Demand ISO with File Explorer. 这会为它们分配驱动器号。This will assign them drive letters.

接下来,从 FOD ISO 导出包含在映像中且带有附属包的所有 FOD。Next, export all FODs included in your image that have satellite packages, from the FOD ISO. 如果知道要添加的具体语言,还可以包括关联的语言功能:If you know which languages you intend to add, you can include the associated language features too:

dism /image:"C:\mount\windows" /export-source /source:d: /target:c:\repository
/capabilityname:App.StepsRecorder~~~~0.0.1.0
/capabilityname:Microsoft.Windows.MSPaint~~~~0.0.1.0
/capabilityname:Microsoft.Windows.Notepad~~~~0.0.1.0
/capabilityname:Microsoft.Windows.PowerShell.ISE~~~~0.0.1.0
/capabilityname:Microsoft.Windows.WordPad~~~~0.0.1.0
/Capabilityname:Print.Fax.Scan~~~~0.0.1.0
/capabilityname:Print.Management.Console~~~~0.0.1.0
/capabilityname:Language.Basic~~~fr-FR~0.0.1.0
/capabilityname:Language.Handwriting~~~fr-FR~0.0.1.0
/capabilityname:Language.OCR~~~fr-FR~0.0.1.0
/capabilityname:Language.Speech~~~fr-FR~0.0.1.0
/capabilityname:Language.TextToSpeech~~~fr-FR~0.0.1.0
/capabilityname:Language.Basic~~~lb-LU~0.0.1.0
/capabilityname:Language.Handwriting~~~lb-LU~0.0.1.0

其中,D:\ 是按需功能 ISO 的装载位置Where D:\ is the mount location for the Feature on Demand ISO

接下来,将所需的语言包复制到本地存储库。Next, copy the language packs of interest into the local repository. 在此示例中,将复制所有语言包。In this example, all language packs are copied.

copy E:\x64\langpacks\* c:\repository\

其中,E:\ 是语言包 ISO 的装载位置Where E:\ is the mount location for the Language Pack ISO

添加语言包、LIP (LXP) 和语言功能Add language packs, LIPs (LXPs), and language features

通过添加语言包及其相应的按需功能包来预安装语言。如果要添加 LIP 语言,则包括基本语言。Pre-install languages by adding the language packs and their corresponding Feature on Demand packages, including the base languages if you're adding a LIP language.

  1. 添加语言包Add a language pack:

    添加所需的语言包。Add the language pack(s) of interest. 请注意自定义存储库提供该语言包的方式:Note how the language pack is sourced from the custom repository:

    Dism /Image:"C:\mount\windows" /Add-Package /PackagePath="C:\repository\Microsoft-Windows-Client-Language-Pack_x64_fr-fr.cab"
    

    查看是否添加了包含语言资源的语言包和 FOD 附属包:Check to see that both the language pack(s) and FOD satellite packages containing language resources were added:

    Dism /Image:"C:\mount\windows" /Get-Packages /format:table
    

    应该会在输出中看到如下所示的内容:You should see something like this in the output:

    Microsoft-Windows-Client-LanguagePack-Package~31bf3856ad364e35~amd64~fr-fr~10.0.19041.1
    Microsoft-Windows-MSPaint-FoD-Package~31bf3856ad364e35~amd64~en-US~10.0.19041.1
    Microsoft-Windows-MSPaint-FoD-Package~31bf3856ad364e35~amd64~fr-fr~10.0.19041.1
    Microsoft-Windows-MSPaint-FoD-Package~31bf3856ad364e35~amd64~~10.0.19041.1
    Microsoft-Windows-MSPaint-FoD-Package~31bf3856ad364e35~wow64~en-US~10.0.19041.1
    Microsoft-Windows-MSPaint-FoD-Package~31bf3856ad364e35~wow64~fr-fr~10.0.19041.1
    Microsoft-Windows-MSPaint-FoD-Package~31bf3856ad364e35~wow64~~10.0.19041.1
    

    除了现在显示在映像中的 fr-fr 语言包外,还请注意按需 MSPaint 功能的附属包包含 en-us 和 fr-fr 语言代码。In addition to the fr-fr language pack now appearing in the image, note how the MSPaint Feature on Demand has satellite packages containing both the en-us and fr-fr language codes present. 对于添加的每种语言,请确保每个带有特定于语言的附属包的 FOD 都是这种情况。Make sure this is the case for every FOD with language specific satellite packages, for each language you added.

    备注

    无法手动添加附属 FOD 包,必须允许 DISM 自动拉入它们。Satellite FOD packages cannot be added manually, you must allow DISM to automatically pull them in.

    备注

    如果在映像自定义过程中未正确包括附属 FOD 包,则映像启动后系统不会立即自动拉入它们。If satellite FOD packages are not correctly included during image customization, they won't be automatically pulled in immediately after the image boots.

  2. 添加 LIP 语言Add LIP languages. 在此示例中,我们添加了卢森堡语,它需要 fr-FR 基本语言:In this example, we add Luxembourgish, which requires the fr-FR base language:

    • 对于 Windows 10 版本 1809 及更高版本,LIP 语言以 LXP 的形式提供:For Windows 10, version 1809 and later, LIP languages are delivered as LXPs:

      DISM /Image:"C:\mount\windows" /Add-ProvisionedAppxPackage /PackagePath="E:\LocalExperiencePack\lb-lu\LanguageExperiencePack.lb-LU.Neutral.appx /LicensePath:"D:\LocalExperiencePack\lb-lu\License.xml"
      

      其中,E:\ 是语言包 ISOWhere E:\ is the Language Pack ISO

      确保它位于映像中:Verify that it's in the image:

      DISM /Image:"C:\mount\windows" /get-provisionedappxpackages
      
    • 对于早期版本的 Windows 10,LIP 语言以 .cab 文件形式提供:For earlier versions of Windows 10, LIP languages are delivered as .cab files:

      Dism /Image:C:\mount\windows /add-package /packagepath:C:\LanguagePack\LIPs\ca-ES\LIP_ca-ES64bit.cab
      
  3. 添加语言和区域按需功能以支持语言包和 LIP。Add language and region Features on Demand to support your language packs and LIPs. 建议将基本内容、字体、OCR、文本到语音转换和语音识别 FOD 包含在内(如果它们适用于你预安装的语言)。We recommend including the Basic, Fonts, OCR, Text-to-speech, and Speech recognition FODs if they're available for the languages you're pre-installing. 此外,如果交付的设备附带笔,还应包括手写语言组件 FOD。Additionally, include the handwriting language component FOD if you're shipping a device with a pen.

    并非所有 LIP 语言都具有所有语言组件。Not all LIP languages have all language components. 例如,卢森堡语 (lb-LU) 仅具有基本内容和手写 FOD。Luxembourgish (lb-LU), for example, only has basic and handwriting FODs. 如需了解适用于语言的 FOD,请参阅 LP 到 FOD 映射电子表格You can learn which FODs are available for languages in the LP to FOD mapping spreadsheet

    例如:将基本内容、OCR、文本到语音转换和语音识别添加到 fr-fr:Example: adding Basic, OCR, Text-to-Speech, and Speech Recognition to fr-fr:

    Dism /Image:"C:\mount\windows" /Add-Capability
    /capabilityname:Language.Basic~~~fr-FR~0.0.1.0
    /capabilityname:Language.Handwriting~~~fr-FR~0.0.1.0
    /capabilityname:Language.OCR~~~fr-FR~0.0.1.0
    /capabilityname:Language.Speech~~~fr-FR~0.0.1.0
    /capabilityname:Language.TextToSpeech~~~fr-FR~0.0.1.0
    /source:C:\repository
    

    例如:将基本内容和手写添加到 lb-LU:Example: adding Basic and Handwriting to lb-LU:

    Dism /Image:"C:\mount\windows" /Add-Capability
    /capabilityname:Language.Basic~~~lb-LU~0.0.1.0
    /capabilityname:Language.Handwriting~~~lb-LU~0.0.1.0
    /source:C:\repository
    

    验证这些包是否在映像中:Verify that these packages are in the image:

    Dism /Image:"C:\mount\windows" /Get-Packages /format:table
    Dism /Image:"C:\mount\windows" /Get-Capabilities /format:table | findstr /i "installed"
    
  4. 删除语言、LIP、LXP 和按需功能Remove languages, LIPs, LXPs, and Features on Demand.

    重要

    如果有挂起的联机操作,则不能从脱机 Windows 映像中删除语言包。You cannot remove a language pack from an offline Windows image if there are pending online actions. Windows 映像应为最近安装并捕获的映像。The Windows image should be a recently installed and captured image. 这将保证 Windows 映像没有任何需要重新启动的挂起的联机操作。This will guarantee that the Windows image does not have any pending online actions that require a reboot.

    获取映像中安装的包和功能列表:Get a list of packages and features installed in your image:

    Dism /Image:"C:\mount\windows" /Get-Packages /format:table
    Dism /Image:"C:\mount\windows" /Get-Capabilities /format:table | findstr /i "installed"
    

    删除语言、基于 .cab 的 LIP 和按需功能:Remove languages, .cab-based LIPs, and Features On Demand:

    Dism /Image:"C:\mount\windows" /Remove-Package /PackageName:<language pack name> /PackageName:<feature on demand name> ...
    

    删除通过 LXP 添加的 LIP:Remove LIPs added through LXPs:

    Dism /remove-provisionedappxpackage /packagename:Microsoft.LanguageExperiencePack<lang_version>_neutral__8wekyb3d8bbwe
    

    确保它们不再位于映像中:Verify that they're no longer in your image:

    Dism /Image:"C:\mount\windows" /Get-Packages /format:table
    Dism /Image:"C:\mount\windows" /Get-Capabilities /format:table | findstr /i "installed"
    
  5. 更改默认语言、区域设置和其他国际设置Change your default language, locale, and other international settings:

    • 从 Windows 10 版本 2004 开始,如果将基于 .appx 的语言体验包 (LXP) 支持的语言作为参数传递,则该语言将设置为系统首选 UI 语言,其父语言将设置为默认系统 UI 语言。As of Windows 10, version 2004, if a .appx-based Language Experience Pack (LXP) backed language is passed as an argument then the language will be set as the System Preferred UI language and its parent language will be set as the Default System UI language. 在以前的版本中,仅支持基于 .cab 的语言包。In prior versions only .cab based language packs were supported.

      Dism /Image:"C:\mount\windows" /Set-AllIntl:fr-fr
      

      查看可用的语言设置:See which language settings are available:

      Dism /Image:"C:\mount\windows" /Get-Intl
      
    • 对于联机映像,请使用“控制面板”或国际设置 PowerShell cmdletsGet-WinSystemLocaleSet-WinSystemLocale <language>For online images, use Control Panel, or the International Settings PowerShell cmdlets: Get-WinSystemLocale and Set-WinSystemLocale <language>. 这适用于以 LXP 形式提供的语言。This works with languages delivered as LXPs.

    有关更多选项,请参阅For more options, see

将语言添加到恢复环境 (Windows RE)Add languages to the recovery environment (Windows RE)

对于添加到 Windows 的任何语言,请尽可能将语言添加到 Windows 恢复环境 (WinRE)For any language you add to Windows, add the language to the Windows Recovery Environment (WinRE), whenever possible.

并非所有语言或 LIP 都有本地化的恢复映像。Not all languages or LIPs have localized recovery images.

使用语言包 ISO 中的语言而不是 Windows 10 ADK 中的语言来本地化 WinRE。Use languages from the Language Pack ISO, not from the Windows 10 ADK, to localize WinRE.

备注

已知问题:Windows 10 2018 年 10 月更新包含的 Windows RE 泰语映像(en-US 基础语言 + th-th 语言包)随附的问题,即最终用户只能在 Windows 恢复环境中看到没有泰语文本的 UI 组件(或英语)、恢复过程显示的文本(按钮重置)和/或功能更新的重新启动过程中的某些屏幕。Known issue: Windows RE included with Windows 10 October 2018 Update Thai language image (en-US base language + th-th language pack) shipped with an issue in which an end user will only see UI components (or English) without Thai language text in the Windows Recovery Environment, the text displayed during recovery (Push-button reset), and/or certain screens during the reboot process of feature updates. 要解决此问题,请预安装 2018.11D 质量更新。To fix this issue pre-install the 2018.11D Quality Update.

  1. 装载恢复映像。Mount the recovery image.

    • 脱机:恢复映像位于 Windows 映像中:Offline: the recovery image is inside the Windows image:

      md C:\mount\winre
      Dism /Mount-Image /ImageFile:"C:\mount\windows\Windows\System32\Recovery\winre.wim" /index:1 /MountDir:"C:\mount\winre"
      
    • 联机Online:

      md C:\mount\winre
      Dism /Mount-Image /ImageFile:"C:\Windows\System32\Recovery\winre.wim" /index:1 /MountDir:"C:\mount\winre"
      

      请注意,Windows RE 一直位于 Windows 映像中,直到开箱即用体验出现之后才会被移动到单独的恢复分区。Note, Windows RE is inside the Windows image until the Out of Box Experience, after which it is moved to a separate recovery partition.

  2. 添加语言:Add languages:

    D:
    cd D:\Windows Preinstallation Environment\x64\WinPE_OCs\fr-fr\
    Dism /Image:"C:\mount\winre" /Add-Package /PackagePath:"D:\Windows Preinstallation Environment\x64\WinPE_OCs\fr-fr\lp.cab"
    Dism /Image:"C:\mount\winre" /Add-Package /PackagePath:"D:\Windows Preinstallation Environment\x64\WinPE_OCs\fr-fr\WinPE-Rejuv_fr-fr.cab"
    Dism /Image:"C:\mount\winre" /Add-Package /PackagePath:"D:\Windows Preinstallation Environment\x64\WinPE_OCs\fr-fr\WinPE-EnhancedStorage_fr-fr.cab"
    Dism /Image:"C:\mount\winre" /Add-Package /PackagePath:"D:\Windows Preinstallation Environment\x64\WinPE_OCs\fr-fr\WinPE-Scripting_fr-fr.cab"
    Dism /Image:"C:\mount\winre" /Add-Package /PackagePath:"D:\Windows Preinstallation Environment\x64\WinPE_OCs\fr-fr\WinPE-SecureStartup_fr-fr.cab"
    Dism /Image:"C:\mount\winre" /Add-Package /PackagePath:"D:\Windows Preinstallation Environment\x64\WinPE_OCs\fr-fr\WinPE-SRT_fr-fr.cab"
    Dism /Image:"C:\mount\winre" /Add-Package /PackagePath:"D:\Windows Preinstallation Environment\x64\WinPE_OCs\fr-fr\WinPE-WDS-Tools_fr-fr.cab"
    Dism /Image:"C:\mount\winre" /Add-Package /PackagePath:"D:\Windows Preinstallation Environment\x64\WinPE_OCs\fr-fr\WinPE-WMI_fr-fr.cab"
    Dism /Image:"C:\mount\winre" /Add-Package /PackagePath:"D:\Windows Preinstallation Environment\x64\WinPE_OCs\fr-fr\WinPE-StorageWMI_fr-fr.cab"
    Dism /Image:"C:\mount\winre" /Add-Package /PackagePath:"D:\Windows Preinstallation Environment\x64\WinPE_OCs\fr-fr\WinPE-HTA_fr-fr.cab"
    

    其中 D:\ 是语言包 ISO。Where D:\ is the Language Pack ISO.

  3. 确保它们位于映像中:Verify that they're in the image:

    Dism /Get-Packages /Image:"C:\mount\winre"
    

    /Get-Packages 的示例输出:Example output from /Get-Packages:

    Package Identity : Microsoft-Windows-WinPE-Rejuv_fr-fr ... fr-FR~10.0.9926.0 State : Installed
    
  4. 将更改提交到恢复映像:Commit changes to the recovery image:

    Dism /Commit-Image /MountDir:"C:\mount\winre"
    

    对于联机映像,还应删除装载文件夹:For online images, also remove the mount folder:

    rmdir /s "C:\mount\winre"
    

捕获更改Capture the changes

  • 脱机:适用于 Windows 映像 (install.wim)Offline: For Windows images (install.wim)

    将更改提交到 Windows 映像:Commit changes to the Windows image:

    Dism /Commit-Image /MountDir:"C:\mount\windows"
    
  • 联机:修改运行的 Windows 安装Online: Modify a running Windows installation

    通用化并捕获映像:Generalize and capture the image:

    %WINDIR%\system32\sysprep\sysprep.exe /generalize /shutdown /oobe
    

    如需了解详细信息,请参阅通用化To learn more, see generalize.

后续步骤Next steps

本地化更多 Windows 内容:Localize more of Windows:

将安装过程本地化:Localize the installation process:

本地化 WindowsLocalize Windows

按需功能Features On Demand

将语言添加到 Windows 恢复环境 (WinRE)Add languages to Windows Recovery Environment (WinRE)

使用 DISM 为 Windows 映像提供服务Service a Windows Image Using DISM

DISM - Windows 的部署映像服务和管理技术参考DISM - Deployment Image Servicing and Management Technical Reference for Windows

DISM 语言和国际服务命令行选项DISM Languages and International Servicing Command-Line Options

DISM 无人参与服务命令行选项DISM Unattended Servicing Command-Line Options

Windows 系统映像管理器技术参考Windows System Image Manager Technical Reference