How to write an EXE which is also a COM Server in Delphi I'm not sure regsvr32 works, you need to run the app.exe /regserver or app.exe /unregserver.