You can try like this.
Dim comRegisterProcess As New Process()
comRegisterProcess.StartInfo.FileName = "regsvr32.exe"
comRegisterProcess.StartInfo.UseShellExecute = False
'Register the controls and DLLs.
Const dllPath As String = "c:\com\abc.ocx"
comRegisterProcess.StartInfo.Arguments = String.Format(" /s""{0}""", dllPath)
comRegisterProcess.Start()
comRegisterProcess.Close()
Note: to use the
Process
class you need to improt
System.Diagnostics
namespace.