Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which programming languages that can generate self contained windows .exes?

Tags:

windows

exe

I want to make an easy to deploy Windows application and was was wondering which programming systems can create totally self contained Windows .exe files?

As a plus, if the same can be done with MacOSX and Linux from the same source this would be a bonus. I took a look at Realbasic but they have since abandoned the single .exe concept.

update: i am looking for something that can run from Windows XP up to Windows 7, no matter what version of .NET is installed. Is this even possible?

like image 526
yazz.com Avatar asked Apr 06 '10 15:04

yazz.com


People also ask

What programming language creates EXE files?

In which language .exe windows files are made ?? Many languages can compile directly into .exe files (C,C++,Delphi,Fortran, VB6,VB.NET, Lua,C#,F#,J# and other . net supporting languages). Languages which cannot produce executables directly can also be used to create .exe files through some form of plugin/converter.

Which programming language is used to make Windows?

Microsoft Windows Microsoft's Windows kernel is developed mostly in C, with some parts in assembly language. For decades, the world's most used operating system, with about 90 percent of the market share, has been powered by a kernel written in C.


2 Answers

Delphi compiles to one executable, and generates native windows executables. So no dependencies to any kind of framework. If you use Free Pascal (fpc) and the Lazarus IDE, you could even develop for Linux and Apple from the same source.

If your using external dll's this would become a bit more tricky, but you could pack them up in your resource file and still maintain the one exe property.

Update 2020: since @Vassilis & @Marco van der Voort commented on this, I would like to update my old andswer and add that go is a very good way to make self-contained executables. Even crossplatform compilation is realy simple.

like image 161
Davy Landman Avatar answered Dec 10 '22 16:12

Davy Landman


You can certainly do this with C/C++. Technically the runtime libraries are required, but they should already be installed on any windows, mac or linux system.

With .NET you can compile to an EXE, but of course the .NET framework is required. For newer versions of windows it should be installed by default, but on older versions (XP or older?) it may or may not be there. And of course you couldn't expect mono to be there by default on linux or mac either.

like image 28
Eric Petroelje Avatar answered Dec 10 '22 15:12

Eric Petroelje