10

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?

6 Answers 6

3

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.

2
  • Seems promising. could you name some of the others, or what such apps are actually called so that maybe we could find an open source alternative!
    – Auxiliary
    Jan 26, 2011 at 16:28
  • 1
    The product would just be referred to as a linker. I can't find any other examples on google now but it's possibly a grey area. Any tool that does this would probably need to get a license from Microsoft since they'd be redistributing the core .net libraries that will have their own Ts & Cs that you'd normally agree to when you install the framework/updates or the OS itself.
    – Chris W
    Jan 26, 2011 at 18:56
2

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.

0

.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.

1
  • Could any one say the name of the "packers" any third party?
    – venkatesh0
    Jan 26, 2011 at 16:12
0

You may use so called ".NET Framework client profile" - reduced set of assemblies that may be deployed through ClickOnce installation. Anyway installation is required.

1
  • I am going to give project in Pendrive, so the client can work from anywhere with the help of pendrive
    – venkatesh0
    Jan 26, 2011 at 16:20
0

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.

1
  • I am going to do project for Jewell shop. The client need to put data in pendrive and access it anywhere using the pendrive (using c# to achive some logical thing's and xml for DB purpose
    – venkatesh0
    Jan 26, 2011 at 16:17
0

You can use VMware ThinApp. I used it a few years ago for a .Net application.

2
  • Thank U, Is VMware ThinApp free or cost
    – venkatesh0
    Jan 26, 2011 at 16:34
  • There is a free trial version.
    – dlb
    Jan 26, 2011 at 16:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.