CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2008
    Posts
    3

    Question 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..

  2. #2
    Join Date
    Jan 2006
    Location
    18° 32' N / 73° 52' E
    Posts
    416

    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
    Last edited by MMH; November 12th, 2008 at 07:29 AM.

  3. #3
    Join Date
    Nov 2008
    Posts
    3

    Re: How to register .NET COM server without opening command prompt window

    MMH, I appreciate your help so so so much..
    thank you..

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured