I have a problem with a service i made.
The service works after installing it and starting it manually, but anyway Windows reports an error that the service could not be started and that the service reported no error.
Here is the Code of the servie
procedure TASSvc.ServiceExecute(Sender: TService);
var IniF: TIniFile;
Prog : String;
for i:= 0 to sList.Count - 1 do
Prog:= iniF.ReadString(IniSection, IntToStr(i), 'Error');
ShellExecute(0, 'open', PChar(Prog), '', '', SW_Restore);
The service shall start programms and they are started. So it was started and it finished its job. But windows keeps telling that the service could not be started.
I tried ReportStatus and Before and AfterInstall a LogMessage, but nothing works, it still says no error reporting.
What can I do to let Windows know that the service worked?