If this is for a logon script, and the users do not have administrative rights on their computers (which is IMHO most likely AND most advisable), they will not be able to copy and register the dll.
You could consider p.e. to distribute and install the dll via a group policy in active directory.