all groups > dotnet clr > september 2004 >
You're in the

dotnet clr

group:

Embed interop DLL file in executable


Embed interop DLL file in executable Guogang
9/17/2004 4:20:36 PM
dotnet clr: I am tring to create a single .exe file that user can download.

However, this program need reference to COM object, thus need a interop dll
file like this: Interop.CAPICOM.dll. Is there a way to embed this DLL file
and the exe file into one single executable (like using a static link in the
C++, or the .jar file used by Java).

Thanks,
Guogang

Re: Embed interop DLL file in executable remotesoft
9/18/2004 12:26:55 AM
You can use our linker tool to do that,

http://www.remotesoft.com/linker

It can link DLLs into your exe; even the framework assemblies (e.g.,
System.Xml.dll) can be linked. It is done selectively with only the
necessary parts of the code are linked into the EXE.

[quoted text, click to view]

Re: Embed interop DLL file in executable Alex Komissarov
9/18/2004 12:08:37 PM
http://www.codeproject.com/dotnet/ReduceDotNetSize.asp shows how to load
embedded assembly.

Regards,
AlexK

[quoted text, click to view]

Re: Embed interop DLL file in executable Daniel
9/18/2004 12:25:45 PM
You can write the COM wrapper yourself, or use a tool like Reflector to
decompile the Interop dll and copy-paste the code and make minor changes if
nessesary.

Dan

[quoted text, click to view]

Re: Embed interop DLL file in executable Guogang
9/20/2004 2:55:15 PM
All three replies I got so far are helpful.

I find this article being the easiest to implement. :)

Thanks.

[quoted text, click to view]

AddThis Social Bookmark Button