Doing automation of Enterprise Architect in an non-graphical environment (e.g. Windows Service) will cause the following error:

Retrieving the COM class factory for component with CLSID {8667FE5E-6D96-400A-AF0A-15C29F94DFCD} failed due to the following error: 80080005.

The code suggests lack of permission to use the COM interface from within the windows service.

Solution: you must configure DCom (EA.App)

1) Open COM-Components-Window and navigate to DCOM, EA.App
2) right-click EA.App and go to properties
3) go to security tab and customize Launch Permissions
4) add a user permitted to launch EA and grant full permissions
5) in EA.App Properties move on to Identity-Tab, and change user to the one entered before in Launch permissions

( see also: Documentation of software projects )