Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making an application which does not require .NET

Status
Not open for further replies.

james0264

Programmer
Mar 1, 2005
52
GB
I have several situations which I can sucessfully make an application for, but I need to be able to "embed" the .NET framework into the application, or something similar. Basically, I need to make my application to run without the need to install .NET framework or the need to "setup" anything. Many thanks, James.
 
No can do. You can include the framework in your installation package with a boot strapper, but it must be on the PC for the app to run. Windows XP sp2 includes the .Net 1.1 framework, and I believe Vista will ship with both 1.1 and 2.0 installed.

-Rick

VB.Net Forum forum796 forum855 ASP.NET Forum
[monkey]I believe in killer coding ninja monkeys.[monkey]
 
So is there away to create a program that doesn't have to rely on the .net framework? There has to be. A friend has an older version and his .exe didn't have to have the .net framework to run. Think it was VB with VS 2k3. Which is .net right?
 
There is no way. The application you create in VS gets compile to an intermediate language. When you run the application the .Net framework that you have installed on your computer compiles the application to native code. If the framework is not installed on the computer, the executable is nothing more than a screwy text file. Open your application in note pad some time and take a look.

If you friend's app was developed using .Net then it needs to have .Net installed. If his app was developed using VB5 or VB6 it does not need the .Net Framework.

-Rick

VB.Net Forum forum796 forum855 ASP.NET Forum
[monkey]I believe in killer coding ninja monkeys.[monkey]
 
I just checked he said he actually has the 2k version so is that VB6 or something? I hate Microsoft with a passion.
 
Thanks Rick......did I say I hate microsoft with a passion?
 
I assume this applies to all of the .net languages like Visual C++ and C#?
 
Aww thats a shame, but thank's for the reply anyway. What I am now puzzeled is how does Microsoft Internet Explorer (MSIE) and Microsoft Word etc. use the .NET framework visual styles without the requirement of it? I hope you can clarify this as well. Many thanks again, James.

P.S. Could you also have a look at Many thanks again, James.
 
My 2 cents, except for very special situations why would anybody write a .net windows application instead of asp.net? Installation issues all go away.
 
C++ is not a .Net language. C# is. There is also no version of Visual Studio called 2k (so far as I know). There is VS6, which came out around 2000 and is not .Net based. Then there is VS 2002, VS 2003, and VS 2005, all of which are .Net based.

I'm not sure what you mean about the framework visual styles, but likely the visual styles system was originally developed in COM or unmanaged code (ie: VB6 or C++). COM based apps (IE and Office) can access those functions directly though COM. .Net apps have either a wrapper around the COM interface or their own interface to the visual styles system.

-Rick

VB.Net Forum forum796 forum855 ASP.NET Forum
[monkey]I believe in killer coding ninja monkeys.[monkey]
 
chiphie ones said that you could run it without the framework but I don't see any reason why you wanted to do that.

Visual C++ can be run managed or unmanaged. The Unmanaged "version" doesn't need the framework.

Christiaan Baes
Belgium

"My new site" - Me
 
My 2 cents, except for very special situations why would anybody write a .net windows application instead of asp.net? Installation issues all go away.
There are lots of valid reasons and these are not what I would call "special situations"? What happens if you want to:

1) Write to the users registry
2) Read from the users registry
3) Write a file to the users machine
4) Read a file from the users machine
5) Alter windows settings

There are lots more but these are just some of the simple ones that are not possible in ASP.NET...


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
C++ is not a .Net language. C# is."

K. Thanks. Maybe I'll get my supervisor to go to C++.

"There is also no version of Visual Studio called 2k (so far as I know). There is VS6, which came out around 2000 and is not .Net based. Then there is VS 2002, VS 2003, and VS 2005, all of which are .Net based."

Maybe it was VS6 and he was getting the 2k from about when it came out.

Thanks for all the info.
 
Ok, from what I understand I can make an "unmanaged" version of my application. Is this correct; if so, how?
 
Errrm thanks again for the reply. I first looked in the VB.NET forum and found nothing, but then realised you said C# forum. However, I don't know much about the C#.NET language so any furthuer help is appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top