RO Server as windows service

Hi, Im about to build a (VCL) client/server project (using RO SDK) but where I would like the server to run as a service? Where can I find a step-by-step introduction how to do this? (howto create, register and run)

Thanks in advance!

Hello,
To create RO Windows service please create new project via New->Other->RemObjectsSDK->Windows Service.

Look at the “Named Pipes” sample. You can find it:
Windows XP: C:\Documents and Settings\All Users\Documents\RemObjects Samples\RemObjects SDK for Delphi
Vista,Win7: C:\Users\Public\Documents\RemObjects Samples\RemObjects SDK for Delphi\

To install and uninstall RO windows service you can use command lika this:

NamedPipeServer.exe /install
net start NamedPipeServerService

net stop NamedPipeServerService
NamedPipeServer.exe /uninstall

I thought the Combo Option in the RO Applications group makes one design servers that can run as stand alone and also as service apps.

Yes it is second option for this.

The key is your project source file (dpr). Theres is the code to detect if the app is started as a windows server or standard app. Thats all.

Sample:

begin
  if ROStartService('MyService', 'My Service description',
    'Long Service description', stAuto, 'FirebirdServerDefaultInstance' {that will create a dependence for service firebird }) then
  begin
    ROService.CreateForm(TdmMyForm, dmMyForm);
   // load all the forms you need
    ROService.Run;
    Exit;
  end;
  // here starts normal app loading (if not running like a service)
  Application.Initialize;
  Application.MainFormOnTaskbar := True;
  Application.CreateForm(TdmMyForm, dmMyForm;
   // load all the forms you need
  Application.Run;
end.

Hi, the issue was that whatever I did the server did not run correctly (as a service). Alot of different errors and error codes occured and the server was not responding to anything. I have an application built in 2007 working correctly but as it was along time ago I just thught that there’s been alot a changes that I did not know about in RemObjects. What actually solved the problem was a) reinstalling Delphi XE3 from scratch and b) reinstalling RemObjects also. After this I was finally back on track.

Anyhow, thank you for all answerrs and comments, Im back on track… I think so anyway…?

Best Regards,
Hakan