If you want to go the service route, check out this link:

Creating An NT Service