Read Chapter 11 on Deployment in the Developer's Guide. On about page 14 of this chapter, you will a section that starts:
You can manually install the BOS as a Windows Service once you’ve deployed it to the server, but it is more convenient to have the Windows Installer do this for you. Also, it is a very good idea first to deploy the BOS as a console application to ensure that all remote settings are working.