ImportPackages Command-Line Options (Standard 7 SP1)

7/8/2014

In Windows Embedded Standard 7, customized Windows images are organized into a tree structure, which represents the distribution share (DS). Packages are groups of files provided by Microsoft. Package types include feature packs, security updates, and language packs.

The file ImportPackages.exe is a command-line tool that can be used to import a package into a distribution share, as well as to create and maintain the DS.

Importpackage.exe can be used to perform the following functions:

  • Create a DS.
  • Import a package or several packages into a DS.
    • Most packages, such as language, feature, and driver packages exist as .CAB files.
    • The Embedded Core (eCore) package exists as an Install.wim file, which can also be imported using the file Importpackage.exe.
  • Rebuild the index file of a DS.
    • Rebuilding the index file of a DS can be very useful in maintaining the DS.
    • Rebuilding the index file of a DS is also one way you can indirectly remove packages from a DS.

Where to Find ImportPackages.exe

In a typical installation of Windows Embedded Standard 7, ImportPackages.exe can be found at the following location:

C:\Program Files\Windows Embedded Standard 7\Tools\Image Configuration Editor.

ImportPackages.exe Command-Line Options

The following command-line options are available for ImportPackages.exe:

ImportPackage [<PackageSource> | /<RebuildIndex.| /<EnumIndex>] <DistributionShare>

A description of each option follows.

Command

Description

PackageSource

Path of a .CAB or .MSU file, a directory containing .CAB or .MSU files, or an INSTALL.WIM image.

In the case of a directory, all .CAB and .MSU files underneath the specified path will be imported.

RebuildIndex <DistributionShare>

Rebuilds the index that Standard 7 uses to find packages and images currently present in the distribution share. This option is only required when the index has been corrupted or is missing.

EnumIndex <DistributionShare>

Lists all packages and images present in the distribution-share index.

DistributionShare

Path to the root directory of the distribution share to be used. If the directory does not exist, a new distribution share will be created.

See Also

Other Resources

Command-Line Tools Technical Reference