How to register .NET COM server without opening command prompt window
hi. all.
i regist my DLL COM server with 'regasm /codebase my.dll' in a command prompt window.
but, i want to regist my.dll after finish my setup program automatically and silently.
'silently' means not openning command prompt windows.
help me... plz..
Re: How to register .NET COM server without opening command prompt window
Here assuming that your are registering the DLL through code and not manually.
Following is the code.
Code:
Process p = new Process();
p.StartInfo.FileName = "path of CMD";
p.StartInfo.Arguments = "regasm /codebase my.dll";
p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
p.Start();
Hope this is what you are looking for.
MMH
Re: How to register .NET COM server without opening command prompt window
MMH, I appreciate your help so so so much..
thank you..