Windows Embedded CE Strings

Other versions of this page are also available for the following:

Windows Mobile SupportedWindows Embedded CE Supported

8/28/2008

When creating an application package, the application developer can use shortcuts to specify the target locations where files should be extracted to on the device. This facilitates localization, because directories can have different names depending on the language that the target device is localized into.

Note

On Windows Mobile powered software, these shortcuts are provided in the form of Windows Embedded CE Strings, which are translated into a directory that is correct for any given device.

For All Platforms

For example, the Windows Embedded CE string %CE2% is translated into the Windows directory, typically \Windows on the default storage volume. This translation occurs on the device at installation time.

If a default storage volume is present on the device, the default storage volume string is added to the beginning of the listed directory. For example, if the default storage volume is Storage, %CE1% is automatically changed to \Storage\Program Files when a CE directory identifier is used. The %CEx% string ensures that files are placed in the correct locations on all platforms regardless of the file system's layout.

Note

For Windows Embedded CE, strings must use uppercase characters.

For Windows Embedded CE

**The following table shows the available Windows Embedded CE Strings and their corresponding directory for a target device intended for an English-speaking audience.

Windows Embedded CE String Directory on device

%CE1%

Program Files

%CE2%

Windows

%CE4%

Windows\StartUp

%CE5%

My Documents

%CE8%

Program Files\Games

%CE11%

Windows\Start Menu\Programs

%CE14%

Windows\Start Menu\Programs\Games

%CE15%

Windows\Fonts

%CE17%

Windows\Start Menu

For Windows Mobile

**The following table shows the available Windows Embedded CE directory identifiers and the resulting directories on devices running Windows Mobile 6 Standard. If the default storage volume on the device is Storage, \Storage is added to the beginning of the directory identifiers.

Directory Identifier Directory on device

%CE1%

\Program Files

%CE2%

\Windows

%CE4%

\Windows\StartUp

%CE5%

\My Documents

%CE11%

\Windows\Start Menu

%CE14%

\Windows\Start Menu\Games

%CE17%

\Windows\Start Menu

%CE18%

<default volume, dependent on device configuration>

%CE19%

\Application Data

The following table shows Windows Embedded CE directory identifiers and the resulting directories on devices running Windows Mobile 6 Professional or Windows Mobile 6 Classic. If the default storage volume on the device is Storage, \Storage is added to the beginning of the directory identifiers.

Directory Identifier Directory on device

%CE1%

\Program Files

%CE2%

\Windows

%CE4%

\Windows\StartUp

%CE5%

\My Documents

%CE8%

\Program Files\Games

%CE11%

\Windows\Start Menu\Programs

%CE14%

\Windows\Start Menu\Programs\Games

%CE15%

\Windows\Fonts

%CE17%

\Windows\Start Menu

Note

Windows Embedded CE supports other predefined installation macros, such as %CE3% for \Windows\Desktop. However, these are not supported on devices running Windows Mobile 6 Professional or Windows Mobile 6 Classic, and their usage in an .inf file on these devices might have unexpected results.

See Also

Concepts

CAB Wizard