unregistering vb6 active dll with c#

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

Does anyone know how to programmtically unregister and activex dll(s) in C#, that have been created with vb

regard

rob.
 
You can run the system exe "regsvr32" to register and unregister dlls and ocx
and to run it programatically in C#

System.Diagnostics.Process process = new System.Diagnostics.Process()
process.StartInfo.FileName = "regsvr32"
process.StartInfo.Arguments = "dllpath" + " /u /s"
process.StartInfo.CreateNoWindow = true
process.StartInfo.UseShellExecute = false
process.StartInfo.RedirectStandardOutput = true
process.Start()
process.WaitForExit()
 
Blue-Ray

Many thanks fir such a quick reply.

Do you know of any web sites that have useful snippets of code like this.

regards

rob.
 
Back
Top