KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Manually register database as a service for customized service names
PRODUCT: 4D | VERSION: 18 | PLATFORM: Win
Published On: July 27, 2020

Typically when registering a database as a service, the steps would be to open 4D Server > File > Register Current Database as a Service. and the service name would follow the template of "4DS APPNAME".

However, there was a need to change the service name, the only way to do this would be to reregister the database as a service manually via command prompt. Follow the steps below:

1. Open command prompt and run as administrator
2. Enter the command sc.exe create SERVICE NAME binpath="SERVICE FULL PATH"

E.G. sc.exe create 4DSampleApp binpath="C:\Program Files\4D\4D v18.2_252363\4D Server\4D Server.exe -s C:\Users\Erick\Desktop\Test\My4DApp.4dbase\My4DApp.4DB"

Now the custom named service has been created: