I have a .NET application which relies on a COM dll which is loaded with Registry-Free activation (Side By Side) and then accessed via P/Invoke. The COM dll additionally needs a few database files to work correctly.
Now I'm trying to merge all files in to one exe, and I don't know how.
ILMerge and similar will not work, as the COM dll is a native (unmanaged).
A possibility would be to hold the dll and its files as embedded resources and write them to the file system on startup. (As in the answers to this Stackoverflow question).
However, I would rather not have the application do this at startup.
Does anybody know how to easily add the COM dll and its files to the application and then load it by Registry-Free activation?
Btw: obviously I also could just register the COM dll separately (in the registry) and then use it from the application, however, this is not an option for me.