none
How do i bundle .NET with exe? RRS feed

  • Question

  • I  have made a couple of vb.net programs and this might sound weird but i dont really know what the .NET part does.  All i know is i need it to run my programs.  So How do i go about distributing my programs to other people? Can i bundle it like some video games do with direct x?  Also any resources you can give me about better understanding how the .NET part works for vb and C++ and the difference between just the language and language.NET would be greatly appreciated.
    Saturday, April 4, 2009 6:27 AM

Answers

  • Hi!

    1. .NET Framework is a component that "translates" your program into machine language. Let's see an example:
    You write a program in VB.NET using Visual Studio. You compile it. The result of this is a .exe file. This file contains Intermediat Language (IL) commands. When you run your program, these commands are interpreted by the Common Language Runtime (CLR) that is part of the .NET Framework. The result of this interpretation is a machine code that can be run by you machine.
    The advantage of this approch is that you can run your apps on any machine that supports .NET Framework. You do not have to worry about what's under the CLR, as the CLR is taking care of everyting for you.

    The .NET Framework also contains a set of libraries that makes possible for you to use the IO system, to create windows, to send mails, etc.

    2. To distribute your app, create a Setup for it (in Visual Studio create a Setup project): http://www.codeproject.com/KB/dotnet/Win_App_Setup_Project.aspx

    3. The .NET part after c++ and vb means that the application will be run by the .NET Framework and not directly by the machine. There also exist c++ (unmaged c++) and vb applications that are run directly by the machine (the exe that resul after compiling the program is in machine language, and not in IL)

    Hope I've shed some light over the issue. Of corse, there also exist material on the web about this. I'll let you find it.
    Regards,
    Lucian Baciu, http://studentclub.ro/lucians_weblog
    Monday, April 6, 2009 11:27 AM

All replies

  • Hi!

    1. .NET Framework is a component that "translates" your program into machine language. Let's see an example:
    You write a program in VB.NET using Visual Studio. You compile it. The result of this is a .exe file. This file contains Intermediat Language (IL) commands. When you run your program, these commands are interpreted by the Common Language Runtime (CLR) that is part of the .NET Framework. The result of this interpretation is a machine code that can be run by you machine.
    The advantage of this approch is that you can run your apps on any machine that supports .NET Framework. You do not have to worry about what's under the CLR, as the CLR is taking care of everyting for you.

    The .NET Framework also contains a set of libraries that makes possible for you to use the IO system, to create windows, to send mails, etc.

    2. To distribute your app, create a Setup for it (in Visual Studio create a Setup project): http://www.codeproject.com/KB/dotnet/Win_App_Setup_Project.aspx

    3. The .NET part after c++ and vb means that the application will be run by the .NET Framework and not directly by the machine. There also exist c++ (unmaged c++) and vb applications that are run directly by the machine (the exe that resul after compiling the program is in machine language, and not in IL)

    Hope I've shed some light over the issue. Of corse, there also exist material on the web about this. I'll let you find it.
    Regards,
    Lucian Baciu, http://studentclub.ro/lucians_weblog
    Monday, April 6, 2009 11:27 AM
  • This is interesting, but the question I have is how to INCLUDE the .net redistributable with the application - or is this not possible?

    I have a .net application that I would like to share with some of my friends who are not all that computer sophisticated.
    I would like to post an msi file with which they can do a simple install without having to first download and install the .net
    redistributable and if they are running Win2K, that before they can do this, they have to download and install the installer.

    Anyway, I am wondering how most developers handle this issue.
    Tuesday, April 7, 2009 11:20 AM
  • I've answered a similar question here: http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/877612f1-3138-463e-ae9b-ebe196b15820
    Lucian Baciu, http://studentclub.ro/lucians_weblog
    Tuesday, April 7, 2009 11:29 AM