Or have a look at what SRVANY.exe does (it's from a resource kit but I cannot remember which one).

It basicly means you have to create a couple of keys in
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\