Skip to content

Windows service instead of executable #159

@saberraz

Description

@saberraz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions