Run as Service (Windows only)


The following step-by-step guide describes how to setup RealtimeSync (or any other application) as a Windows Service. This can be useful if the tool shall run on a SYSTEM account without necessarily requiring a user to log in.


1. Get access to the command-line tools "instsrv.exe" and "srvany.exe" which come with the Windows Server 2003 Resource Kit Tools:

Download: http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en


2. Create and register a new Service via command line:


3. Link the new Service with RealtimeSync:


The new service is now ready for operation!


Attention:
When running RealtimeSync as a service the application has no means to interact with the user. Therefore any popup dialog will stop the process flow! Consider the following options when setting up a FreeFileSync batch job:




You can start the service now via command line or Windows Service administration:



Note:
By default the service is created with start-up type "automatic" which runs it on Windows start. This behavior can be changed in Windows Service administration.





If the Service shall be removed from the system, enter via command line:


(Reference: http://support.microsoft.com/kb/137890)