MikD454

Hello,

I'm new to C# and am developing an application that will autorun from a USB device (we've already worked out the technical details behind getting the app to run from the USB device).

My question is this.  We want our application to autorun whenever the device is inserted into a USB port on a machine running Windows.  However, it seems that Windows Forms applications will not run unless the .NET Framework is installed on the machine.  I am aware that we can package the redistributable version of .NET Framework with our app and install it if it is not already installed.  However, the amount of time it takes to get the application running on a new machine matters very much to the usability of this application and the few minutes it takes to install the .NET Framework could greatly affect the usefulness of our application.  Is there any way to package my Windows Forms application so that it will not require the .NET Framework to be installed on a machine

I realize this is an odd question, however, our ability to use Windows Forms for this application depends on the answer to this question.

Any assistance anyone can provide will be greatly appreciated.

Thanks,
Mike Daniels
MikD454@hotmail.com


Re: Visual C# Express Edition Can you get around the .NET Framework prereq for Windows Forms apps?

cgraus

This is actually a really common question.  There are products that basically do the final compilation step and create an exe for you, but they are quite expensive, and a bad idea IMO most of the time.  If there was a simple way to do this, no-one would write code that requires the framework, because why would you With the product you have in front of you now, you have no option but to require the framework.  Your only other option is to rewrite it in C++, and not use C++/CLI.





Re: Visual C# Express Edition Can you get around the .NET Framework prereq for Windows Forms apps?

Mr2001

Consider writing the app in Delphi instead of C#. Delphi has many of the same language features as C# (having been designed by the same guy), and the Visual Component Library is similar in many ways to Windows Forms.

Newer versions of Delphi support .NET, so if you stick to the core VCL features, you can use the same source code to compile your app as a native program (using VCL for Win32), and in the future when everyone has the .NET Framework installed, compile it as a managed program (using VCL.NET).




Re: Visual C# Express Edition Can you get around the .NET Framework prereq for Windows Forms apps?

Ast123

Sorry for pulling this thread up again. Curiously, there is no way for us to create a simple .exe application running in windows without .Net framework So all windows applications are not written in C# So weird!