Re: trivial question about building exe



On Thu, 9 Mar 2006 18:38:58 +0100, Dariusz Tomon wrote:

Hello

I have got windows application project (C# Visual Studio 2003) with
references to external dlls. All I want is to compile everything into one
exe file, so that I can send it to another machine and it works.

This is not a trivial thing to do. If you have the source code of all the
DLL (and if they are all .NET assemblies), then you could place their
source files in your exe project and remove all the DLL references. Note
that the user will still need to have the appropriate version of the .NET
Framework installed on their machine.

If you can't do that, then you'll need to buy some tool that can place
everything in one exe file and dynamically extract the DLL files when the
application is run. These tools usually don't come cheap (although i have
never researched this issue thoroughly) and there is obviously a
performance hit in doing that.

Alternatively, what you could do is create a setup program packaged in one
exe file that would install the application and all its DLLs on the user's
PC. There are loads of software that you could use to do that
(InstallShield, Setup Factory, Inno Setup...) both free and commercial.
Google will tell you more.
.



Relevant Pages

  • Have big problem with windows control dll
    ... One project that build a windows control dll ... In the windows control c-tor is there a call to a method in the class ... So in the project referense settings for the windows control I have a ... In the exe file c-tor I have a call to a method in the class library. ...
    (microsoft.public.dotnet.languages.csharp)
  • This must be a bug in C# when using user control DLL and class library DLL
    ... One project that build a user control dll called B ... One project that build a class library dll called C ... In the exe file c-tor I have a call to a method in the class library. ... the windows control because I can drag the windows control from the toolbox ...
    (microsoft.public.dotnet.general)
  • Re: Visual StudioC++ 6.0 Install Shield question
    ... It is an exe file, not a dll, script ocx or anything like that. ... >I realize that this version Install Shield is an aging product with stripped ...
    (microsoft.public.vc.language)
  • Re: Visual StudioC++ 6.0 Install Shield question
    ... It is an exe file, not a dll, script ocx or anything like that. ... >I realize that this version Install Shield is an aging product with stripped ...
    (microsoft.public.vc.ide_general)
  • Re: Console App in one EXE file
    ... In your first reply about using private assemblies, you asked me to copy the two files Microsoft.VC90.CRT and Microsoft.VC90.MFC to the /bin folder. ... you must re-link and re-deploy exe file to include the changes. ... If multiple processes are created on the exe file, they will not share the DLL file. ... Please feel free to let my manager know what you think of the level of service provided. ...
    (microsoft.public.vsnet.general)