哪些编程语言可以生成自包含的Windows .exes? [英] Which programming languages that can generate self contained windows .exes?

查看:73
本文介绍了哪些编程语言可以生成自包含的Windows .exes?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想简化Windows应用程序的部署,并且想知道哪种编程系统可以创建完全独立的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?

此外,如果可以使用同一来源的MacOSX和Linux进行相同的操作,则将是一个好处.我看了Realbasic,但此后他们放弃了单个.exe概念.

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.

更新:无论安装什么版本的.NET,我都在寻找可以在Windows XP到Windows 7上运行的东西.这有可能吗?

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?

推荐答案

Delphi 编译为一个可执行文件,并生成本机Windows可执行文件.因此,不依赖任何框架.如果您使用免费Pascal(fpc)

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.

如果您使用外部dll,这将变得有些棘手,但是您可以将它们打包到资源文件中,并仍然保留一个exe属性.

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 :自@Vassilis& @Marco van der Voort对此进行了评论,我想更新我的旧书并补充说,是非常好的制作独立的可执行文件的方法.甚至跨平台编译也非常简单.

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.

这篇关于哪些编程语言可以生成自包含的Windows .exes?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆