locked
How can I register any dll file on remote machine by ASP.Net RRS feed

  • Question

  • User1034051277 posted

    Respected Sir/Madam,

    I am developing such an application in ASP.Net (using C#.Net) which copy a dll file on remote machine and register it. I am using System.Management namespace for it. Currently I am using “Create” method of “\\root\\cimv2:Win32_Process” WMI call which runs “regsvr32.exe” command on remote machine. By this I am able to register the file but I am not able to get the Exit Code of the regsvr32.exe command to know whether registration was successful or not. “ReturnValue” property of “output” of “Create” method returns 0 for failure or success of registration. Please let me know if I can register dll file directly by any WMI call without using regsvr32.exe or any other solution.

    Please let me know the other forum section if this section is not right for this question.

    Thanks in advance [:)]

    Monday, November 3, 2008 8:09 AM

All replies