Services Section

You can add services to a machine with a Services section. Services can be removed by including a DelService entry in the Services section.

[install-section-name.Services]

AddService=ServiceName,flag,service-install-section-name[,event-log-install-section-name]

DelService=ServiceName

ServiceName

The service to install or delete.

flag

Either of these 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 being installed by this INF file.

service-install-section-name

The name of the Service Install section.

event-log-install-section-name

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

AddService = mouclass,, mouclass_Service_Inst, mouclass_EventLog_Inst