Export (0) Print
Expand All

Creating INF Files for Multiple Platforms and Operating Systems

By using system-defined platform extensions to INF file sections and directives, you can create a single INF file for cross-platform installations. The extensions enable you to create decorated section names, which specify which sections and directives are relevant to each target platform and operating system. For example, you can create an INF file that installs a device only on x64-based systems, only on Itanium-based systems, only on x86-based systems, or on all systems that are supported by Windows 2000 and later versions of Windows.

The following table summarizes the system-supported platform extensions that can be added to the names of sections that support extensions.

Platform extensionUse

.ntamd64

The section contains instructions for installing a device or set of device-compatible models on x64-based systems that are supported by Windows XP and later.

.ntia64

The section contains instructions for installing a device or set of device-compatible models on Itanium-based systems that are supported by Windows XP and later.

.ntx86

The section contains instructions for installing a device or set of device-compatible models on x86-based systems that are supported by Windows XP and later.

.nt

In versions of Windows earlier than Windows Server 2003 SP1, the section contains instructions for installing a device or set of device-compatible models on all systems that are supported by the operating system.

Starting with Windows Server 2003 SP1, the section contains instructions for installing a device or set of device-compatible models on x86-based systems that are supported by the operating system.

(no platform extension)

In versions of Windows earlier than Windows Server 2003 SP1, the section contains instructions for installing a device or set of device-compatible models on all systems that are supported by the operating system.

Starting with Windows Server 2003 SP1, the section contains instructions for installing a device or set of device-compatible models on x86-based systems that are supported by the operating system.

 

Important  Starting with Windows Server 2003 SP1, INF files must decorate entries in the INF Models section with .ntia64 or .ntamd64 platform extensions to specify non-x86 target operating system versions. These platform extensions are not required in INF files for x86-based target operating system versions or non-PnP driver INF files (such as file system driver INF files for x64-based architectures).

Tip   We highly recommend that you always decorate entries in the INF Models section with platform extensions for target operating systems of Windows XP and later versions of Windows. For x86-based hardware platforms, you should avoid the use of the .nt platform extension and use .ntx86 instead.

For more information about how to use INF file platform extensions for cross-operating system installations, see the following topics:

INF File Platform Extensions and x64-Based Systems

INF File Platform Extensions and Itanium-Based Systems

INF File Platform Extensions and x86-Based Systems

For an example of how to use INF file platform extensions to support cross-platform installations, see Cross-Platform INF Files.

For information about how to use platform extensions in combination with section name extensions, see Combining Platform Extensions With Other Section Name Extensions.

For information about how to specify target operating systems through platform extensions, see Combining Platform Extensions with Operating System Versions.

For information about a sample INF file that can be used to install drivers in multiple operating system versions, see Sample INF File for Device Installation on Multiple Versions of Windows.

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft