How to set up Dropbox as a service on Windows Home Server

1. Choose what folder you are going to share, ie I made a separate share named “Dropbox”
2. Remote desktop to your WHS as administrator
3. Get the DropBox installation file from the website (https://www.dropbox.com/downloading) and download or transfer onto the WHS console
4. Install Dropbox and point to the folder you want to share (see step #1)
5. Exit dropbox from the system tray
6. Create the folder C:\Program Files\Dropbox
7. Locate the folder C:\Documents and Settings\Administrator\Application Data\Dropbox and then move the entire contents to C:\Documents and Settings\Default User\Local Settings\Dropbox\Application Data\Dropbox
8. Now, in the C:\Documents and Settings\Default User\Local Settings\Dropbox\Application Data\Dropbox\bin folder, move the entire contents to the C:\Program Files\Dropbox folder
9. What you should have now is the Dropbox executable at C:\Program Files\Dropbox\Dropbox.exe
10. Locate
6. You will need instsrv.exe and srvany.exe from the Windows Server 2003 Resource Kit. Download the install file at:
http://www.microsoft.com/downloads/details.aspx?FamilyID=9D467A69-57FF-4AE7-96EE-B18C4790CFFD&displaylang=en
7. execute “C:\Program Files\Dropbox\instsrv.exe” Dropbox “C:\Program Files\Dropbox\srvany.exe”
8. execute c:\reg ADD HKLM\SYSTEM\CurrentControlSet\Services\Dropbox\Parameters /v Application /d “C:\Program Files\Dropbox\Dropbox.exe”
9. execute c:\reg ADD HKLM\SYSTEM\CurrentControlSet\Services\Dropbox\Parameters /v AppDirectory /d “C:\Program Files\Dropbox”
10. Delete or move the shorcut to Dropbox away from the startfolder (Start -> All Programs -> Startup) on the startmenu.
11. Move the Dropbox folder from C:\Documents and Settings\Administrator\Application Data\ to C:\Documents and Settings\Default User\Local Settings\Dropbox\Application Data\

12. execute c:\net start Dropbox

I had done some research and found the instructions to do this either wrong or confusing. Here are the steps I just performed and it seems to be working fine. I assume you know basic stuff like how to remote into WHS, create shares, etc.

  1. Choose what folder you are going to share, ie I made a separate share named “Dropbox”
  2. Remote desktop to your WHS as administrator
  3. Get the DropBox installation file from the website (https://www.dropbox.com/downloading) and download or transfer onto the WHS desktop
  4. Install Dropbox and point to the folder you want to share (see step #1)
  5. Exit dropbox from the system tray
  6. Create the folder C:\Program Files\Dropbox\
  7. Locate the folder C:\Documents and Settings\Administrator\Application Data\Dropbox\ and then move the entire contents to C:\Documents and Settings\Default User\Local Settings\Dropbox\Application Data\Dropbox\
  8. Now, in the C:\Documents and Settings\Default User\Local Settings\Dropbox\Application Data\Dropbox\bin\ folder, move the entire contents to the C:\Program Files\Dropbox\ folder
  9. What you should have now is the Dropbox executable at C:\Program Files\Dropbox\dropbox.exe
  10. You will need instsrv.exe and srvany.exe from the Windows Server 2003 Resource Kit. Download the install file at: http://www.microsoft.com/downloads/details.aspx?FamilyID=9D467A69-57FF-4AE7-96EE-B18C4790CFFD&displaylang=en
  11. Copy the the install file for Windows Server 2003 Resource Kit to your WHS desktop and then install
  12. Locate the folder C:\Program Files\Windows Resource Kits\ and then copy the files “instsrv.exe” and “srvany.exe” to the C:\Program Files\Dropbox\ folder
  13. Start > Run “cmd” and then type the following command including closed parentheses: “C:\Program Files\Dropbox\instsrv.exe” Dropbox “C:\Program Files\Dropbox\srvany.exe”
  14. Start > Run “regedit” and then navigate to HKLM\SYSTEM\CurrentControlSet\Services\Dropbox\ and then right click > New > Key and name the new key “Parameters” without the quotes
  15. Select the Parameters key and then Right Click > New > String and name the string “Application” without the quotes
  16. Right Click “Application” and select “Modify” and then type C:\Program Files\Dropbox\dropbox.exe
  17. Right Click again and select New > String and name this “AppDirectory”
  18. Right Click “AppDirectory” and select Modify and then type C:\Program Files\Dropbox\
  19. Start > All Programs > Startup -> delete the Dropbox shortcut
  20. Start > All Programs > Administrative Tools > Services -> find “Dropbox” and then Right Click > Properties > Log On > select the option for “This Account” and then enter “Administrator” without the quotes as the account and then enter your Administrator password. Select OK to exit out
  21. Right Click on the Dropbox Service and select “Start”
  22. If all is well, then you’ll notice that Dropbox is running, restart the WHS and do some tests to make sure. This is probably a fairly generic way to add any application as a service.

About Kevin