Can I pack all the necessary files into an EXE?

I wrote an EXE that uses a third-party DLL and an Excel document. Every time someone uses this, they have to copy all three files (which is a pain).

Is there a way to pack everything that is needed in an exe to worry about a single file?

+3
source share
4 answers

This is what ilmerge is used, at least for merging assemblies. Here is more information here and here .

There are several known issues with this, however.

+2
source

visual studio Build Action None Copy to Output directory Copy always.

. (Visual #)

.

, dll: Copy Local true .

, . VS, exe, .

+1

- ( " " > "" ), global::Resources.resourceFile ( , , ) .

+1
source

Installing the software is a pain, but I think you can get rid of the xcopy style deployment using the compression tool of your choice (like winzip) and creating a self extracting executable.

0
source

All Articles