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

Posted on 2006-04-21
Last Modified: 2012-06-21
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!
Question by:webressurs
    LVL 44

    Accepted Solution

    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
    LVL 15

    Expert Comment

    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 ;)
    LVL 44

    Expert Comment


    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.


    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
    Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now