在 Linux 机器上创建 Windows (XP) 安装程序?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2722956/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 14:21:37  来源:igfitidea点击:

Create a Windows (XP) installer on a Linux machine?

windowslinuxinstaller

提问by topskip

I need to create an installer for my software for Windows XP and newer. Is there any mechanism to do that on a Linux machine alone? (I'm running ubuntu, but I'd guess is not a show stopper).

我需要为我的 Windows XP 和更新版本的软件创建一个安装程序。是否有任何机制可以单独在 Linux 机器上执行此操作?(我正在运行 ubuntu,但我猜这不是一个表演障碍)。

回答by Frank Bollack

The NSIS (Nullsoft Scriptable Install System)is a free and open source installer system that allows you to create native Windows installers.

NSIS(Nullsoft脚本安装系统)是一个自由和开放源码的安装系统,它允许您创建本地的Windows安装程序。

It uses ascript files to define all aspects of the setup procedure and with a compiler you generate the resulting setup package. You can find the sources here. The Installer system runs on Windows and POSIX compliant systems. There is also an Eclipse pluginavailable.

它使用 ascript 文件来定义安装过程的所有方面,并使用编译器生成结果安装包。您可以在此处找到资源。安装程序系统在 Windows 和 POSIX 兼容系统上运行。还有一个Eclipse 插件可用。

The Nullsoft installer is widely used for open source projects and even commercial products.

Nullsoft 安装程序广泛用于开源项目甚至商业产品。

UPDATE:There is a new alpha release on December 24, 2013, so as of late 2013 this project is still active.

更新:2013 年 12 月 24 日发布了一个新的 alpha 版本,因此截至 2013 年底,该项目仍处于活动状态。

UPDATE 2:Beginning of April 2016 a new version 2.51 was released together with a release candidate for NSIS 3.0.

更新 2:2016 年 4 月开始,新版本 2.51 与 NSIS 3.0 的候选版本一起发布。

回答by Damon

Take a look at InstallJammer. It's a free, open source installer that is cross platform and can easily do what you want. I have many users who build strictly for Windows but use Linux as their build platforms.

看看InstallJammer。它是一个免费的开源安装程序,它是跨平台的,可以轻松完成您想要的操作。我有很多用户严格为 Windows 构建但使用 Linux 作为他们的构建平台。

InstallJammer can build any of its supported platforms from any other platform, so it should do exactly what you need.

InstallJammer 可以从任何其他平台构建其支持的任何平台,因此它应该完全满足您的需求。

回答by William Leara

Flexera Software (makers of InstallShield) have a cross-platform installation authoring utility called InstallAnywhere:

Flexera Software(InstallShield 的制造商)有一个名为 InstallAnywhere 的跨平台安装创作实用程序:

http://www.flexerasoftware.com/products/installanywhere.htm

http://www.flexerasoftware.com/products/installanywhere.htm

From a single project file and build environment, InstallAnywhere enables developers to create reliable installations for the broadest range of current platforms including Windows, Linux, Mac OS X, Solaris, AIX , HP-UX, and IBM iSeries.

从单个项目文件和构建环境,InstallAnywhere 使开发人员能够为最广泛的当前平台创建可靠的安装,包括 Windows、Linux、Mac OS X、Solaris、AIX、HP-UX 和 IBM iSeries。



InstallAnywhere runs on the latest versions of these operating systems, fully updated with the most recent patches and service packs:

?Windows 7 (32-bit x86) ?Windows Vista ?Windows XP ?Windows 2000 ?Mac OS X 10.4, 10.5, and 10.6 with Java 1.6 ?Red Hat Enterprise Linux 4 and 5 (32-bit x86) ?SUSE Linux 9, 10, and 11.2 (32-bit x86) ?Ubuntu 9.10 (32-bit x86) ?Solaris Solaris 9 and 10 (SPARC) ?HP-UX 11i (PA-RISC) ?AIX 5.2, 5.3, and 6.1 (Power/PowerPC)

InstallAnywhere 在这些操作系统的最新版本上运行,并使用最新的补丁和服务包进行全面更新:

?Windows 7(32 位 x86) ?Windows Vista ?Windows XP ?Windows 2000 ?Mac OS X 10.4、10.5 和 10.6 与 Java 1.6 ?Red Hat Enterprise Linux 4 和 5(32 位 x86)?SUSE Linux 9, 10 和 11.2(32 位 x86) ?Ubuntu 9.10(32 位 x86) ?Solaris Solaris 9 和 10 (SPARC) ?HP-UX 11i (PA-RISC) ?AIX 5.2、5.3 和 6.1(Power/PowerPC )

回答by Daniel Lopez

Our software BitRock InstallBuilderalso allows building Windows installers from Linux You can do so from the command line to make it easier to integrate with nightly builds, ANT, etc.

我们的软件BitRock InstallBuilder还允许从 Linux 构建 Windows 安装程序您可以从命令行执行此操作,以便更轻松地与夜间构建、ANT 等集成。