How to configure Dropbox as a service
I'm a happy user of Dropbox, but I want to use it with my Windows Home Server.
I would like to ask if it's possible to run it as a service. The default installation installs dropbox.exe in C:\Documents and Settings\administrator\Application Data\Dropbox\bin
That path prevents me from creating a user-defined service using Windows Resource Kits.
Solution 1:
I found a forum post (now deleted) which describes a solution for Windows Home Server. There is also another post that covers Running Dropbox as a service on Windows Server 2008. The description below is for WHS.
First, run the Dropbox installer using the command line switch /D=C:\Program Files\Dropbox
(with no quotes) to install Dropbox into the Program Files directory for all users.
Then here an updated version of the procedure given on this link:
Since Dropbox will normally only work when a user is logged in, we will have to install and use it first via remote desktop, before it can be turned it into a Service.
- Remote desktop to your WHS as administrator
- Get DropBox from their website.
- Install and configure Dropbox as you like. e.g. I made a special share on my WHS named Dropbox before the installation and linked Dropbox to this share. Then exit dropbox from the system tray.
- Similar to Foldershare, you will need instsrv.exe and srvany.exe from the Windows Server 2003 Resource Kit Tools.
- Copy instsrv.exe to
C:\Program Files\Dropbox
- Copy srvany.exe to
C:\Program Files\Dropbox
- execute
"C:\Program Files\Dropbox\instsrv.exe" Dropbox "C:\Program Files\Dropbox\srvany.exe"
- execute
reg ADD HKLM\SYSTEM\CurrentControlSet\Services\Dropbox\Parameters /v Application /d "C:\Program Files\Dropbox\Dropbox.exe"
- execute
reg ADD HKLM\SYSTEM\CurrentControlSet\Services\Dropbox\Parameters /v AppDirectory /d "C:\Program Files\Dropbox"
- Delete or move the shorcut to Dropbox away from the startfolder (Start -> All Programs -> Startup) on the startmenu.
- Move (cut/paste) ALL the files from
C:\Documents and Settings\Administrator\Application Data\DropBox
toC:\Documents and Settings\Default User\Application Data\Dropbox
- execute
net start Dropbox