How do I automate the registering of a DLL