You may want to consider adding the /s option to regsvr32 if you want to hide the dialog boxes.

regsvr32 /s "%WINDIR%\system32\kixforms.dll"