0

Sorry for the begginers question, but i want to get a firm answer.

I want to create and distribute a software(winform standalone pc app).

Now i want all the dependencies to be included in an installer, including .net.

From what is see in similar posts they say it is not possible, is it so?

Compile to stand alone exe for C# app in Visual Studio 2010

Community
  • 1
  • 1
omriman12
  • 1,644
  • 7
  • 25
  • 48
  • Do you want a single exe-file that contains everything or an installer that installs the app on a computer? – Rune Grimstad Mar 05 '14 at 09:32
  • create installer, yep Olaf i tried creating an installer and it still didnt work. but generaly an installer can have .net in it? – omriman12 Mar 05 '14 at 09:35
  • Installers can include .Net and all other libraries you need. – Rune Grimstad Mar 05 '14 at 09:36
  • [Using Mono to avoid depending on the .NET Framework on Windows](http://blog.shilbert.com/2012/06/using-mono-to-avoid-depending-on-net-framework/) (slightly dated tutorial) – Mr. Smith Mar 05 '14 at 09:39
  • But when i add the .net to the installer, the app size gets to 50mb, thats seems not logical to me, isnt there another way? or is every project the uses .net should be at least 50mb? dosnt seem right – omriman12 Mar 05 '14 at 09:44
  • The days when it still made sense to have an installer deploy .NET to the user's machine are over and done with. It has been included in Windows for 7 years already, it is as pointless as including the Windows operating system in your installer. .NET 4.0 and up automatically install themselves. You make it a prerequisite, something that the user needs to take care of. Just like the user needs to have a proper version of Windows on the machine, enough RAM and disk space, etcetera. – Hans Passant Mar 05 '14 at 09:51
  • When you say "You make it a prerequisite", do you mean to check radiobox - "Download prerequisite from vendor's web site" yes? – omriman12 Mar 05 '14 at 09:56

0 Answers0