Search code examples
c#com+comadmin

How do I remove a COM+ component from a COM+ application programmatically


I am trying to automate a build, and the application uses COM+ applications with Components, and I need to figure out how to delete the component from the package using c#. I am using the COMAdmin library, and have built out a collection of the applications, but i'm kinda stuck from there. Any help would be appreciated.

Thanks!

public static void RemoveComponents()
    {
        COMAdminCatalog objCatalog = new COMAdminCatalog();
        string ApplicationName = "Comply Plus Web";



    }

Solution

  • I think you'd want System.EnterpriseServices.RegistrationHelper.UninstallAssembly().