Probably, you've already did it.
Assuming it is compliant with COM requirements, your executable component must self-register when first started, and must support the command line options /REGSERVER and /UNREGSERVER to manually register and unregister them. Invocation with either of these options must immediately EXIT and must NOT START the program (maybe this was confusing). Therefore, be sure to call "myapp.exe /regserver" before attempting to use it and see if it's working after.
Hope this helps