Delphi Example for Service With Connection Specified on Startup

For Delphi Data Abstract, is there an example for a Windows Service server where the database connection on startup is pulled from either a local database call in the DA server or from an ini file or a registry setting.

Looked for an example. Did not find one. Need this for when we have client installs and we set the specified database connection during the install process.

Currently with our other servers which I built, I am looking at our System database, finding the company databases , and then starting up the database if not already running, and then attaching to those databases.

Thanks ahead of time.
Bill

you can create usual DAD server with wizard.
Say, it will have daserver name.
after this, launch it with /install key:

daserver.exe /install

it will register your app as windows server.

The program will be launched automatacally at next launch of windows.
you can manually launch it with

net start daserver

for stopping the server use

net stop daserver

for uninstalling, use

daserver.exe /uninstall

Note: you need administrative rights for these commands.