You need to do 2 things.
1. Sign your assembly with a strong name.
2. Inherit your class from System.EnterpriseServices.ServicedComponent.
When you execute your code in XP, your components should be self registered. In Windows 2000, you may need to register it yourself.
For in-depth information, read here.
Software development made easy with Paladin RAD Framework.
Save some trees, use Stickies.NET