When you create a script-install program, you can choose which DLL's to register. But if you want to do it in a script, use Felu's code
.
To answer your question:
Maybe. I actually think this would require a computer restart, that's the reason why you have to restart your computer after installing programs (there's other reasons as well).