Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
Windows Mobile Supported Windows Embedded CE Supported
4/14/2010

The [Platform] section in the information (.inf) file determines the target platforms on which your application can be installed, based on a combination of platform and version numbers that you specify.

For All Platforms

You can use this section as a way to refine the valid platform types that are specified in the [CEDevice] section, such as configuring this section to prevent the associated .cab file from installing on any platforms other than the one that you specify.

Note:
When using a [Platform] section in an .inf file, you must specify the /platformcommand-line parameter when you call the CAB Wizard. Otherwise, the CAB Wizard ignores all [Platform] sections when processing the .inf file.
Copy Code
[Platform]
PlatformString=
platform_string
PlatformMin=
version
PlatformMax=
version

Parameters

platform_string

String that identifies a valid target for the associated application.

version

Numeric value specifying the platform version.

Remarks

If you created multiple [Platform] sections and want to create a .cab file for each, pass the string that you used as the label name for the selected platform to the CAB Wizard as the string for the /platformcommand-line parameter.

For Windows Mobile

For more information about the strings and values that you can use, see Platform Type Reference.

The following code example shows a [Platform] section targeting Windows Mobile 2003:

Copy Code
[Platform.MS_SP]
PlatformString=Smartphone
PlatformMin=3.0

The following code example shows a [Platform] section targeting Windows Mobile 2003 Second Edition:

Copy Code
[Platform.MS_PPC]
PlatformString=PocketPC
PlatformMin=3.1
PlatformMax=4.0

For example, you can use this section to differentiate between Windows Mobile powered devices while specifying the targeted hardware platform, something which cannot be done using [CEDevice] sections alone.

See Also

Concepts

CAB Wizard