INF DefaultInstall.Services section

Caution

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)
 
AddService=ServiceName,[flags],service-install-section
                             [,event-log-install-section[,[EventLogType][,EventName]]]...]
[DelService=ServiceName[,[flags][,[EventLogType][,EventName]]]...]
[Include=filename.inf[,filename2.inf]...]
[Needs=inf-section-name[,inf-section-name]...]

Entries

AddService=ServiceName,[flags],service-install-section[,event-log-install-section[,[EventLogType][,EventName]]]...
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.

DelService=ServiceName[,[flags][,[EventLogType][,EventName]]]...
This directive removes a previously installed service from the target computer. This directive is very rarely used.

For more information, see INF DelService Directive.

Include=filename.inf[,filename2.inf]...
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.

Needs=inf-section-name[,inf-section-name]...
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.

Remarks

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.

Note

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.

Examples

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

See also

DDInstall

DefaultInstall