Share via


Windows Embedded Compact Variables for .inf Files (Compact 2013)

3/26/2014

This topic provides developers with strings to use when installing an application package. These strings specify a target location for files being extracted into a directory on a device.

The first table in this topic shows the available strings that you can use, their default values, and their corresponding registry keys and directories. The %CEx% strings ensure that files are written to the correct locations on all platforms, regardless of the file system layout. Moreover, using these strings can provide a more efficient localization for the target device, because directory names can change, depending on the localized language.

The second table in this topic shows an example of strings being used for a device being localized in French.

String

Device base registry key

Directory on device

%CE1%

SYSTEM\Explorer\Shell Folders\Program Files

\Program Files

%CE2%

SYSTEM\Explorer\Shell Folders\Windows

\Windows

%CE3%

SYSTEM\Explorer\Shell Folders\Desktop

\My Documents

%CE4%

SYSTEM\Explorer\Shell Folders\StartUp

\Windows\StartUp

%CE5%

SYSTEM\Explorer\Shell Folders\My Documents

\My Documents

%CE6%

SYSTEM\Explorer\Shell Folders\Program Files

\Program Files\Accessories

%CE7%

SYSTEM\Explorer\Shell Folders\Program Files

\Program Files\Communication

%CE8%

SYSTEM\Explorer\Shell Folders\Program Files

\Program Files\Games

%CE10%

SYSTEM\Explorer\Shell Folders\Program Files

\Windows\Start Menu\Office

%CE11%

SYSTEM\Explorer\Shell Folders\Start Menu

\Windows\Start Menu

%CE12%

SYSTEM\Explorer\Shell Folders\Start Menu

\Program Files\Accessories

%CE13%

SYSTEM\Explorer\Shell Folders\Start Menu

\Program Files\Communication

%CE14%

SYSTEM\Explorer\Shell Folders\Start Menu

\Program Files\Games

%CE15%

SYSTEM\Explorer\Shell Folders\Fonts

\Windows\Start Menu

%CE16%

SYSTEM\Explorer\Shell Folders\Recent

\My Recent Documents

%CE17%

SYSTEM\Explorer\Shell Folders\Start Menu

\Windows\Start Menu

%CE18%

<None>

\

%CE19%

SYSTEM\Explorer\Shell Folders\Application Data

\Application Data

The following table shows the available strings and their corresponding values for a device intended for a French-speaking audience.

String

Device base registry key

Localized string ID

Typical localized string

Typical directory on device

%CE1%

SYSTEM\Explorer\Shell Folders\Program Files

<Not supported>

<Not supported>

\Program Files

%CE2%

SYSTEM\Explorer\Shell Folders\Windows

<Not supported>

<Not supported>

\Windows

%CE3%

SYSTEM\Explorer\Shell Folders\Desktop

<Not supported>

<Not supported>

\My Documents

%CE4%

SYSTEM\Explorer\Shell Folders\StartUp

<Not supported>

<Not supported>

\Windows\StartUp

%CE5%

SYSTEM\Explorer\Shell Folders\My Documents

<Not supported>

<Not supported>

\My Documents

%CE6%

SYSTEM\Explorer\Shell Folders\Program Files

IDS_DIR_ACCESSORIES

Accessoires

\Program Files\Accessoires

%CE7%

SYSTEM\Explorer\Shell Folders\Program Files

IDS_DIR_COMMUNICATION

Communication

\Program Files\Communication

%CE8%

SYSTEM\Explorer\Shell Folders\Program Files

IDS_DIR_GAMES

Jeux

\Program Files\Jeux

%CE10%

SYSTEM\Explorer\Shell Folders\Program Files

IDS_DIR_OFFICE

Office

\Windows\Start Menu\Office

%CE11%

SYSTEM\Explorer\Shell Folders\Start Menu

<Not supported>

<Not supported>

\Windows\Start Menu

%CE12%

SYSTEM\Explorer\Shell Folders\Start Menu

IDS_DIR_ACCESSORIES

Accessoires

\Program Files\Accessoires

%CE13%

SYSTEM\Explorer\Shell Folders\Start Menu

IDS_DIR_COMMUNICATION

Communication

\Program Files\Communication

%CE14%

SYSTEM\Explorer\Shell Folders\Start Menu

IDS_DIR_GAMES

Jeux

\Program Files\Jeux

%CE15%

SYSTEM\Explorer\Shell Folders\Fonts

<Not supported>

<Not supported>

\Windows\Start Menu

%CE16%

SYSTEM\Explorer\Shell Folders\Recent

<Not supported>

<Not supported>

\My Recent Documents

%CE17%

SYSTEM\Explorer\Shell Folders\Start Menu

<Not supported>

<Not supported>

\Windows\Start Menu

%CE18%

<None>

<Not supported>

<Not supported>

\

%CE19%

SYSTEM\Explorer\Shell Folders\Application Data

<Not supported>

<Not supported>

\Application Data

If a default storage volume is present on the device, the default storage volume string is added to the beginning of the directory.

%CE18% is the system default data volume.

The string "%CE2%" is translated into the Windows directory, typically "\Windows" on the default storage volume.

The strings "%CE11%" and "%CE17%" produce identical results.

If the default storage volume is "storage", the "%CE1%" string is converted to "\storage\Program Files".

See Also

Reference

Information (.inf) File Overview
CAB Wizard