Partager via


Lpksetup Command-Line Options

Applies To: Windows 8, Windows 8.1, Windows Server 2012, Windows Server 2012 R2

You can use Lpksetup to perform unattended or silent-mode language-pack operations, such as adding or removing a language pack. It can be used only on a running Windows® operating system. Lpksetup.exe is available with all default Windows installations.

Lpksetup.exe Command-Line Options

The syntax to install a language pack using Lpksetup is:

lpksetup.exe {/i [{* | <language_list>}] [/p <language_pack_path>] [{/r/f/a/s}]

The syntax to uninstall a language pack using Lpksetup is:.

lpksetup.exe/u [<language_list>] [{/r/f/a/s}]

Option Description

/?

Displays information about available LPKSetup command-line options.

/i {* | <language_list>}

Installs the specified language packs. Cannot be used with the /u option. If you do not include * or <language_list> after the /i option, the program will start, and you can install through the graphical user interface (GUI).

  • * Specifies a wildcard character that represents all language packs found in language_pack_path or the directory where Lpksetup.exe is located.

  • <language_list> Specifies a wildcard character that represents all language packs found in language_pack_path or the directory where Lpksetup.exe is located.

/u

Uninstalls the specified language pack (or packs in a space-delimited list). This option cannot be used with the /i option. If you do not include <language_list> after the /u option, and if the /s option is not used, the program will start and you can uninstall through the GUI.

/p <language_pack_path>

Indicates the path of the language packs to install. If the /i and /s option are both used, the /p option is required.

<language_pack_path> can be a path to a folder or a network share. For example, C:\langpackfolder\ or \\networkshare\langpackfolder

/r

Suppresses the requirement to restart after an operation is completed. A message will be logged to the event log about the requirement to restart.

/f

If the computer must restart, forces a restart even if there are other users logged on to the computer.

/a

Verifies that all listed language packs can be installed or removed before processing. If any of the language packs cannot be installed or removed, an error is returned and none of the specified language packs are installed or removed.

If you do not include the /a option, all specified language packs are installed or removed except the one that failed, an entry is created in the event log, and the operation is returned as successful.

/s

Performs a silent and unattended operation that requires no user input. The GUI is suppressed.

Examples

This example installs all language packs that are located at a given location.

lpksetup /i * /p <language_pack_path>

This example uninstalls two language packs. Lpksetup will be started in GUI mode but will not require user intervention.

lpksetup /u ja-JP es-ES

This example installs three language packs stored on a network share.

lpksetup /i ja-JP en-US es-ES /r /s /p \\networkpath\share\languagepackfolder

For more information, see Add Language Packs to Windows and Add and Remove Language Packs on a Running Windows Installation.

See Also

Reference

Drvload Command-Line Options
Expand Command-Line Options
Oscdimg Command-Line Options
Tzutil Command-Line Options
Winpeshl.ini Reference
Wpeinit and Startnet.cmd: Using WinPE startup scripts
Wpeutil Command-Line Options
Bootsect Command-Line Options

Concepts

BCDboot Command-Line Options