Search code examples
c#com+

Programmatically setting Application Root Directory of a COM+ Application


When developing a COM+ application, I have to uninstall and reinstall it each time I make changes to the code that I want to test.

It is becoming extremely tedious having to manually set the "Application Root Directory" in the Activation tab every time I install the COM+ app, and so I was wondering if there was a way to programmatically set this attribute?


Solution

  • You'll want RegistrationHelper.InstallAssemblyFromConfig().