Single-file executable (no DLLs)

Hi, and thanks in advance for the help.

I'd like to develop a totally standalone executable, that doesn't have any accompanying DLLs or resource files (ie. I can distribute the application is the .exe alone).

Now, I handle the resources (ex. a tab-separated data file) by including them in the project as embedded resources, and opening them as strems by GetManifestResourceStream. However, here is my problem (it stems from the fact that I'm using the PowerPoint Interop library):

When I compile the assembly, 3 DLLs are output along with the EXE (Interop.Office.dll, etc...). Is there some way I can compile them into the exe One hack I thought of would be to include them as embedded resources, and then extract them to the disk in the main() function, before anything else happens -- unfortunately, this means I have to assume the end-user has write permissions on their disk (which I don't want to, since I'd like the application to be run off, say, a CD).

What can I do

Thanks!
Dan


Answer this question

Single-file executable (no DLLs)