Hello.
I needed this to use WinSCP from AutoIt, but I'll be doing that in several scripts, and potentially more in the future. I didn't want to depend on copying the DLL each time for each script, and instead of that I wanted to rely on the static installation of WinSCP. So I slightly modified the functions to allow $sDllPath to be a full path.
Basically I added double quotes to the registration / unregistration commands and added some intelligence to not screw $sTempDllPath when using a full path. Added this in the description of the functions too, so check it out and see if you're happy with it.
DotNetAssembly.au3