How to make a WindowsApplication (.exe) that works on a PC without framework?

I have made a Windows application in 2.0 (.exe). It works perfect on my computer, but it dont work on other computers that dont have .NET framework 2.0 installed. How can I fix this??

Thank you!
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

TimCotteeHead of Software ServicesCommented:
Hi webressurs,

Install the .net 2.0 framework.

There is no other option, anything you build in .net requires the framework to run. If you want to create an application that doesn't require the framework you have to use another language. Even then there are compnents that may be required.

Tim Cottee

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Just to add to TimCottee's true comments.

What you can also do is setup your install package so that the .net v2 framework will be installed if it is not on the machine already.

But the question was 100% correctly answered by Tim so give him the points ;)
TimCotteeHead of Software ServicesCommented:

You are right Gavin, the key part here is to install!

Most applications require installation because there are components that need to be registered etc on the machine that will run it. Whether it is a .net framework or an activex control / dll you cannot generally copy an application's executable to a new machine and expect it to work. That is not always true of course because there are some applications that only use native windows dlls and therefore do not need any additional components. However vb5/6 or .net or delphi or vfp or many other languages will almost certainly require installation of some additional components.

The important thing is to create an installation package that will correctly install all the necessary components and register them for you. Ideally you would do this on all the different platforms that you expect your application to be installed on, win9x, winnt, win2k, winxp etc as each one may require slightly different components.

Wish I could make it easier for you but this is unfortunately one of the issues that there is no working around.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.