INF DefaultInstall.Services section


If you are building a universal or Windows Driver package, this section is not valid. See Using a Universal INF File and Getting Started with Windows Drivers.

A DefaultInstall.Services section contains one or more AddService directives referencing additional INF-writer-defined sections in an INF file. This section is equivalent to the INF DDInstall.Services section, and is used in association with an INF DefaultInstall section.

[DefaultInstall.Services] |
[DefaultInstall.nt.Services] |
[DefaultInstall.ntx86.Services] |
[DefaultInstall.ntia64.Services] | (Windows XP and later versions of Windows)
[DefaultInstall.ntamd64.Services] | (Windows XP and later versions of Windows)
[DefaultInstall.ntarm.Services] | (Windows 8 and later versions of Windows)
[DefaultInstall.ntarm64.Services] (Windows 10 version 1709 and later versions of Windows)


This directive references an INF-writer-defined service-install-section and, possibly, an event-log-install-section elsewhere in the INF file for the drivers covered by this DefaultInstall section.

For more information, see INF AddService Directive.

This directive removes a previously installed service from the target computer. This directive is very rarely used.

For more information, see INF DelService Directive.

This optional entry specifies one or more additional system-supplied INF files that contain sections needed to install this device. If this entry is specified, usually so is a Needs entry.

This optional entry specifies the particular named section that must be processed during the installation of this device. Typically, such a named section is a DDInstall.Services section within a system-supplied INF file that is listed in an Include entry. However, it can be any section that is referenced within such a DDInstall.Services section.


The AddService directive controls how and when the services of a particular driver are loaded, any dependencies on other services or on underlying (legacy) drivers it might have, and so forth. Optionally, it can set up event-logging services for the driver as well.


INF files use the DefaultInstall.Services section only if they also use an INF DefaultInstall section. Otherwise, they use INF DDInstall.Services sections together with INF DDInstall sections.

DefaultInstall.Services sections should have the same platform and operating system decorations as their related DefaultInstall sections. For example, a DefaultInstall.ntx86 section would have a corresponding DefaultInstall.ntx86.Services section. For more information about how to use the system-defined .nt, .ntx86, .ntia64, .ntamd64, .ntarm, and .ntarm64 extensions, see Creating INF Files for Multiple Platforms and Operating Systems.


See the examples provided for the INF DDInstall.Services section.

See also