should also note this wont happen on non windows platforms as the sericemanager is with in ifdef windows platform in registerfcl.pas
uses
LazarusPackageIntf,
{$ifdef mswindows}
ServiceManager, <---- this file
{$endif}
Classes, SysUtils, Process, DB, BufDataset, SimpleIPC, XMLConf, EventLog;
the service manager source is not in the search path.