Don't allow service to interact with desktop

Hello,

if I install the RO based service as a windows service I have per default turned on “Allow service to interact with desktop”.
Is there a possibility to turn it off in the code? Does the RO SDK need this setting turned on?

interactive_user

Thank you for your help!

what platform you are using - Delphi or .NET?

Delphi and RO SDK 9.3.0.1323

I can’t reproduce this behavior with the Named Pipes sample.
service was created without “Allow service to interact with desktop” option:

I am using the IndyHttpServer and start the service as follow:

if ROStartService(AWindowsServiceName, AWindowsServiceName, WindowsServiceDesc) then
begin
  MyIndyHttpServer.Start;
  ROService.Run;
end;

Could you reproduce the issue with this code?

yes, I can reproduce it with your code.

try to use code as in NamedPipeServer.dpr:

uses
  uROComInit,
  SvcMgr,
...
  Application.Initialize;
  Application.Title := 'Named Pipes Server';
  Application.CreateForm(TNamedPipeServerService, NamedPipeServerService);
  Application.Run;

Great! I have re-coded my services and it works perfectly! Thx for the quick reply and help!

I have only the question how can I set the description for a service in the code? I don’t find any property for that.

grafik

from Service Application Tutorial in Delphi :