Is it possible to run a C# .NET Windows application (.exe) from pendrive or USB without installing the .NET framework on the client system?
If so, how can I make it work?
I came across this product a couple of years ago - Salamander .net Linker.
No idea if it actually works as I didn't test it but it claims to do what you want. I cam across a couple of other products that claim the same thing but they were all fairly expensive for my needs hence the lack of testing them out.
In order to run a C#.NET application in a computer you have to install de .NET framework on that target computer.
At this time any machine with Windows XP SP3 or higher windows version (Windows Vista or Windows 7) have the .NET framewok installed.
.NET applications require the .NET Framework to be installed. However, there are some commercial "packers" that may be able to give you a deployable package that contains all the required dependencies. I'm not sure whether this would be a supported solution.
You may use so called ".NET Framework client profile" - reduced set of assemblies that may be deployed through ClickOnce installation. Anyway installation is required.
No, .NET sits on top of the windows API and needs the CLR and other dependencies to run. Installers aren't the problem. It does not matter if the exe runs from a pen drive, gets copied to the desktop or explicitly installed.
You could build a shell on another platform and have it call a .NET service, wcf API.
I'd question the security and integrity of any 3rd party hacks that try to bypass the need for .NET runtime. Especially if you plan to execute said product on a client's machine.
You can use VMware ThinApp. I used it a few years ago for a .Net application.