Creating standalone exe file
-
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
-
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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