Stevex has posted some extremely handy code to make a service self installable (and un-installable). Another nice touch is adding a debug mode to run and test your code without installing as a service. Recently I've talked with a number of people that are writing services that will also find this usefull.