Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Creating standalone exe file

Creating standalone exe file

Scheduled Pinned Locked Moved C#
csharpquestiondotnetjsontutorial
7 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mamtz
    wrote on last edited by
    #1

    Hi How can i create an exe file written in C# which is not depends on the .Net Framework? I want to run this program without any installation - a standalone exe. I think that i'll get this goal using windows API programming but i'm not sure and i didn't find any good reference that teach me how to do this. Am i right? do you have any idea how can i start doing it? Thanks a lot Mamtz

    D D S 4 Replies Last reply
    0
    • M mamtz

      Hi How can i create an exe file written in C# which is not depends on the .Net Framework? I want to run this program without any installation - a standalone exe. I think that i'll get this goal using windows API programming but i'm not sure and i didn't find any good reference that teach me how to do this. Am i right? do you have any idea how can i start doing it? Thanks a lot Mamtz

      D Offline
      D Offline
      Dan Neely
      wrote on last edited by
      #2

      You can't. If you need a standalone executable you need to work in c++.

      1 Reply Last reply
      0
      • M mamtz

        Hi How can i create an exe file written in C# which is not depends on the .Net Framework? I want to run this program without any installation - a standalone exe. I think that i'll get this goal using windows API programming but i'm not sure and i didn't find any good reference that teach me how to do this. Am i right? do you have any idea how can i start doing it? Thanks a lot Mamtz

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        mamtz wrote: How can i create an exe file written in C# which is not depends on the .Net Framework? You can't. Period. End of story. mamtz wrote: I think that i'll get this goal using windows API programming Not a chance. The .NET Framework comiles you code into machine code when it's executed, not when you compile it. When you compile your app, it's converted to processor-independant MSIL (MS Intermiediate Language) code. It's not actually runnable by any processor. Also, the .NET Framework is required for compiling to processor specific code, memory management, object allocation and destruction, garbage collection, ..., the list oges on and on, ... and on some more, ... Just making calls into the Win32 API definately does not release you from requiring the .NET Framework. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        S 1 Reply Last reply
        0
        • M mamtz

          Hi How can i create an exe file written in C# which is not depends on the .Net Framework? I want to run this program without any installation - a standalone exe. I think that i'll get this goal using windows API programming but i'm not sure and i didn't find any good reference that teach me how to do this. Am i right? do you have any idea how can i start doing it? Thanks a lot Mamtz

          S Offline
          S Offline
          Steve Maier
          wrote on last edited by
          #4

          An alternative that is available but not supported by Microsoft would be to use a .NET linker. Here are a couple... Remotesoft Salamander[^] Thinstall[^] I have only played with the demo versions of these, but I have heard decent things about both (except for price). Steve Maier, MCSD MCAD

          1 Reply Last reply
          0
          • D Dave Kreskowiak

            mamtz wrote: How can i create an exe file written in C# which is not depends on the .Net Framework? You can't. Period. End of story. mamtz wrote: I think that i'll get this goal using windows API programming Not a chance. The .NET Framework comiles you code into machine code when it's executed, not when you compile it. When you compile your app, it's converted to processor-independant MSIL (MS Intermiediate Language) code. It's not actually runnable by any processor. Also, the .NET Framework is required for compiling to processor specific code, memory management, object allocation and destruction, garbage collection, ..., the list oges on and on, ... and on some more, ... Just making calls into the Win32 API definately does not release you from requiring the .NET Framework. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

            S Offline
            S Offline
            S Senthil Kumar
            wrote on last edited by
            #5

            Dave Kreskowiak wrote: Just making calls into the Win32 API definately Isn't the correct spelling definitely? A lot of people over here seem to use your spelling, I'm wondering which one is right. Regards Senthil _____________________________ My Blog | My Articles | WinMacro

            D 1 Reply Last reply
            0
            • S S Senthil Kumar

              Dave Kreskowiak wrote: Just making calls into the Win32 API definately Isn't the correct spelling definitely? A lot of people over here seem to use your spelling, I'm wondering which one is right. Regards Senthil _____________________________ My Blog | My Articles | WinMacro

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              Yeah, it's "definitely". I can type, not neccessarily accurately, faster than I can spell. I seem to make that same mistake alot, kind of like typing "hte" for "the". RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

              1 Reply Last reply
              0
              • M mamtz

                Hi How can i create an exe file written in C# which is not depends on the .Net Framework? I want to run this program without any installation - a standalone exe. I think that i'll get this goal using windows API programming but i'm not sure and i didn't find any good reference that teach me how to do this. Am i right? do you have any idea how can i start doing it? Thanks a lot Mamtz

                D Offline
                D Offline
                Dave Kreskowiak
                wrote on last edited by
                #7

                Using the .NET Linker has it's advantages, but it also has a rather large downfall. If you try to install one of the .NET Framework service packs, it'll fail. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups