Services

The Services section lists services to add to a computer. You can remove services by including a DelService entry in the Services section.

[install-section-name.Services]
AddService=ServiceName,flag,service-install-section[,event-log-install-section]
DelService=ServiceName
 
ServiceName
The service to install or delete.
flag
Specifies how to add the service. This parameter is only used with the AddService key and can be one of the following flags.
SPSVCINST_TAGTOFRONT (0x1)
Move the service's tag to the front of its group order list.
SPSVCINST_ASSOCSERVICE (0x2)
Associate the service in this AddService item with the device to be installed by this INF file.
service-install-section
The name of the Service Install section.
event-log-install-section
The name of the EventLog Install section.

The following example shows a typical Services section:

[Ser_Inst.Services]
AddService = sermouse, 0x00000002, sermouse_Service_Inst, sermouse_EventLog_Inst ; Port Driver
AddService = mouclass,, mouclass_Service_Inst, mouclass_EventLog_Inst 
                       ; Class Driver
 

See Also

Overview, INF File Format Reference