I have been using FolderShare for several years now and I am amazed at how many other people use it also. A while ago I decided to run it on my home server but didn't want to be logged in all the time for FolderShare to continue to run. Enter SrvAny. A little testing and I had FolderShare working as a service. This has been my configuration for over a year without any problems. Recently I have helped others get their servers configured and I decided to post the steps for all to use. Below are the steps you need to use to get Foldershare working as a service:
NOTE 1: Be sure that you have already configured Foldershare and that data is being synchronized before proceeding.
NOTE 2: Be sure to shutdown Foldershare before performing these steps.
- Download instsrv.exe and srvany.exe
- Copy instsrv.exe to c:\program files\foldershare
- Copy srvany.exe to c:\program files\foldershare
- execute "c:\program files\foldershare\instsrv.exe" FolderShare "c:\program files\foldershare\srvany.exe"
- execute c:\reg ADD HKLM\SYSTEM\CurrentControlSet\Services\FolderShare\Parameters /v Application /d "c:\program files\foldershare\foldershare.exe"
- execute c:\reg ADD HKLM\SYSTEM\CurrentControlSet\Services\FolderShare\Parameters /v AppDirectory /d "c:\program files\foldershare"
- execute c:\reg DELETE HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v Foldershare /f
- execute c:\net start Foldershare
More Information: http://support.microsoft.com/kb/137890
A couple of things worth mentioning. First, you can't run a Windows Service with Interactive Desktop support if you want that service to access the internet; Windows won't let this happen. So this means you should never click the service properties checkbox to make Foldershare interactive with the desktop. Second, because you are running Foldershare as a service you will receive an error during your login indicating that Foldershare is already running. Ignore this error and things will continue to work great. If you try and remove the registry entry that causes Foldershare to launch during your login process the service will re-add the entry the next time it restarts, so don't even bother removing the registry. I have tested this with Windows Server 2003 and Windows Home Server without any trouble.
instsrv.exe (31.50 kb) srvany.exe (8.00 kb)