db-sync icon indicating copy to clipboard operation
db-sync copied to clipboard

Windows service instead of executable

Open saberraz opened this issue 3 months ago • 0 comments

It would be good to have an installer to install DB-Sync as a service instead of a stand-alone executable as the executable would need to be run in a logged in session.

I managed to use sc.exe to turn the executable to a service (credit to this), with the following steps, which I assume an installer can do:

1- Create a new folder under C:\Program Files\ called db-sync 2- Place the executable for db-sync there. 3- Create a BAT file with the following content: sc.exe create db-sync binPath= "C:\Program Files\db-sync\dbsync_daemon.exe"

Image

4- Add the BAT file to your start up

You should be able to see the service:

Image

saberraz avatar Sep 15 '25 08:09 saberraz