Re: trivial question about building exe

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Dnia 09-03-2006 o 18:38:58 Dariusz Tomon <d.tomon@xxxxxxxxx> napisał:

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.
I would also ask about creating installation package so that others could
install my application.

[PD] If I understand you correctly you want to compile all dlls to one file. In other words you want to link *dynamic* libraries statically. This is not the way you should use dynamic libraries but if you are sure you know what you are doeing you can theoretically add all the libraries to the resources of your application and get them from the resources and save them to disc before your application will use them.
To create installation package use New\Project\Other Project Types\Setup and Deloyment (at least in VS 2005, as far as I remember it looks similar in VS 2003). BTW it is much better idea to create and distribute a setup package (i.e. single msi file) than to try to stuff all the dll's into the exe file...


--
Piotr Dobrowolski
Piotr.Dobrowolski@xxxxxxxxxxxxxxx
.



Relevant Pages

  • trivial question about building exe
    ... 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. ... I would also ask about creating installation package so that others could ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How to turn off compiler/linker timestamping?
    ... > You can see the time stamp by running dumpbin /all on the executable. ... > "Michael Schwab" wrote in message ... compile. ... >> embedded in the exe file itself. ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Gfortran on Windows (was Re: Fortran Newbie - Where to start?)
    ... After unpacking the .zip file and adding the paths to the root of the ... A minimal test setup to compile 'hello, ... (-s reduces the size of the .exe file, ...
    (comp.lang.fortran)
  • Re: VB IDE Crashes during Compile/Make
    ... I also have one app that won't compile on the dev machine but will ... compile on another machine accessing the project files across the ... >Although I'm running XP and VS6, we have tried to make the exe file on ...
    (microsoft.public.vb.general.discussion)
  • Re: visual studio resource file?
    ... configuration options for release and debug. ... Alternatively yur could specify a post-build event (under "common ... > is it possible to compile and produce the exe file inside the project ...
    (microsoft.public.dotnet.languages.csharp)