Run Sync App as a Service
Starting with 12.0, it is possible to run the sync app as a Windows Service.
Install the Sync App to run as a Service
- Download and Install the sync app as usual
- Start it up and enter the URL, credentials etc as usual and set it up to run as needed
- Uncheck the Option for automatic Startup on Login.
- Exit the app after settings are done.
- Edit syncclientconfig.xml and edit the syncclientlocation and syncfolderlocation to be absolute paths (changed from DEFAULT), for example provided below
The file is available at one of the following locations:
- Windows: %APPDATA%\FileCloudSync\syncclientconfig.xml
- Mac OSX: {HomeDir}\syncclientconfig.xml
- Linux: {HomeDir}\syncclientconfig.xml
Make sure it matches the sync folder and the data folder that sync has already setup or things won't work. Also make sure skipdelete approval option is set to 1. Otherwise if files are removed, sync service will not be able to show the UI prompt.
<?xml version="1.0" encoding="UTF-8" ?> <variantrow> <rowentry> <name>syncclientlocation</name> <type>string</type> <value>C:\Users\Administrator\AppData\Roaming\FileCloudSyncData\client</value> </rowentry> <rowentry> <name>syncfolderlocation</name> <type>string</type> <value>C:\Users\Administrator\Documents\FileCloud</value> </rowentry> <rowentry> <name>skipdeleteapproval</name> <type>bool</type> <value>1</value> </rowentry> </variantrow>
- Copy this syncclientconfig.xml to "C:\Program Files\FileCloud Sync\service" folder.
Register the sync client as a service using a command prompt (Administrator Mode). Note the space after each "=" in each param.
sc create cloudsync binpath= "C:\Program Files\FileCloud Sync\service\cloudsyncservice.exe" displayName= "FileCloudSync Service"
- Start the sync app normally using the Services Control Panel applet.
Remove the FileCloud Sync app running as a Service
sc delete cloudsync