I've a little proc to do this in VFP:
Procedure mvRegister(tcDll, tcPath, tlUnregister)
Local loShell
loShell = CreateObject('WScript.Shell')
loShell.Run('Regsvr32 ' + ForcePath(tcDll, tcPath) + Iif(tlUnregister, ' /u', '') + ' /s', 0, .T.)
EndProc
HTH,
Leo
>Hi,
>
>Is there a way to create a program that will register a dll?
>what I do right now is I register the dll by typing REGSVR32 + Path of Dll + Dll Name in the run command of windows.
>
>Thanks in advance.
>Mike