It should have quote sign " around %1 to ignore the error when dll file was stored in directory that had space in name.


regsvr32.exe %1

,should be this

regsvr32.exe "%1"


lol