Is there a .Net 4 or 3.5 redistributable that is not in installer form? A DLL placed in the programs


I'm working on a program in Visual C# 2010 for a friends company and it does not have any .NET installed. I know you can download .NET 3.5 or 4 from Microsofts site, but the accounts that the program will run on will not be able to install anything. Is there a DLL I can download and then place in the programs folder to make it work? Or any other alternative that does not include installing things or downloading things.

Edit: Disregard the 5mb limit: I had mean that if I have to download any program on the computer the program will be executed on, it should be below 5mb. The final application can be double or triple the original programs size.


<hr />



Let me answer this directly so that you don't waste neither your time nor your friends: No there isn't other way other than properly installing .NET (or rewriting your application with unmanaged C++ code which is unlikely something you are willing to do). Not to mention that most Windows PC should already have at least .NET 3.5 installed through Windows Update.

The <a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=e5ad0459-cbcc-4b4f-97b6-fb17111cf544&displaylang=en" rel="nofollow">.NET 4.0 Client Profile</a> is 41MB and that's the minimum you get away with.


While there are some options for running .NET applications without installing the framework properly (e.g. <a href="http://www.vmware.com/products/thinapp/" rel="nofollow">VMware ThinApp</a>), I very much doubt that you'll find anything that fits in 5MB...

Heck, just mscorlib from .NET 4 is 5MB, then System.dll is nearly 3.5MB.


If your application can run on top of Mono, you can try using mkbundle, normally the resulting exe file is relatively compact.


Xenocode (now called <a href="http://spoon.net/Studio/Features.aspx" rel="nofollow">Spoon Studio</a>, I believe) allows you to deploy a single executable without previously installing the Framework.

It uses some kind of virtualization to achieve this. I don't believe it would fit in just 5 megs - but I might be wrong.


If the framework has not been installed, there will be no interpreter/jitter and .NET programs will not run.

You need to install the framework in order for .NET software to run.


  • grails spring security core - adding security to the hidden scaffolded actions
  • Forming a predicate to filter between dates
  • How getter should look
  • how to write a parallel array [duplicate]
  • How to include ASCII art/diagrams in Rust source-code comment documentation?
  • SQL Server: Any value in vertical partitioning when i'm always going to re-JOIN them?
  • LLVM opt mem2reg has no effect
  • updating and compacting sqlite database in android
  • How to Upload a file in GWT
  • Compare variables PHP
  • Tracking screen recorder in windows app
  • App Memory Usage differs between Devices
  • Creating My Symmetric Key in C#
  • Thread synchronization with syncwarp
  • HttpListener.IsSupported is false on XP SP3
  • How can I run DataNucleus Bytecode Enhancer from SBT?
  • Jquery Knockout: ko.computed() vs classic function?
  • Who propagate bugfixes across branches (corporate development)?
  • xcode don't localize specific strings
  • presentShareDialogWithParams posts to FB wall, but callback handler results say error
  • Is there a way to do normal logging with EureakLog?
  • Use of this Javascript
  • how to adjust image in a panel in Java swing?
  • ilmerge with a PFX file
  • Linq Objects Group By & Sum
  • Fetching methods from BroadcastReceiver to update UI
  • C# - Serializing and deserializing static member
  • Possible to stop flickering java tooltip in heavyweight mode?
  • Sending data from AppleScript to FileMaker records
  • Symfony2: How to get request parameter
  • ActionScript 2 vs ActionScript 3 performance
  • GridView Sorting works once only
  • How to format a variable of double type
  • How to include full .NET prerequisite for Wix Burn installer
  • Buffer size for converting unsigned long to string
  • WPF Applying a trigger on binding failure
  • How do you join a server to an Active Directory (domain)?
  • JTable with a ScrollPane misbehaving
  • Is it possible to post an object from jquery to bottle.py?
  • Running Map reduces the dimensions of the matrices