Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Problem with privileges for NT Service


1 reply to this topic

AntonS

AntonS
  • Full Members
  • 94 posts

Posted 29 July 2004 - 14:15

MSI database uses two tables ServiceControl and ServiceInstall.

This two tables I fill before, after that create component and feature,
add file with automation interface with same component name (SRV0).

Here is contents of this tables:


ServiceControl table

ServiceControl SRVC1
Name MyService
Event 161
Arguments -r
Wait 0
Component SRV0

ServiceInstall table

ServiceInstall SRV1
Name MyService
DisplayName MyService
ServiceType 16
StartType 2
ErrorControl 3
Arguments -r
Component SRV0

Other fields I leave blank.

The problem, that in installation time service not registered with error:

StartServices: Service: MyService
Error 1920. Service 'MyService' (MyService) failed to start. Verify that you have sufficient privileges to start system services.

Therefore service not listed in Service Control list.
Sincerely your,
Anton Spitsyn
http://www.installsite.ru

AntonS

AntonS
  • Full Members
  • 94 posts

Posted 29 July 2004 - 15:03

It was resolved by add KeyPath for component with NT Service in Component table.

Thank you.

Sincerely your,
Anton Spitsyn
http://www.installsite.ru