Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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).

like image 454
topskip Avatar asked Apr 27 '10 16:04

topskip


People also ask

Can I run Windows XP on Linux?

Adding a Windows XP VM to a Linux System. You can download and install VirtualBox [1] or, if your distribution has a prebuilt package, you can install directly from the command line. Open a terminal window and refer to Figure 1 to install VirtualBox. Figure 1: Installing VirtualBox via the command line on Ubuntu Linux.

Can you install Windows directly from Linux?

To install Windows on a system that has Linux installed when you want to remove Linux, you must manually delete the partitions used by the Linux operating system. The Windows-compatible partition can be created automatically during the installation of the Windows operating system.


3 Answers

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

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 plugin available.

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

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

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

like image 110
Frank Bollack Avatar answered Sep 30 '22 12:09

Frank Bollack


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 can build any of its supported platforms from any other platform, so it should do exactly what you need.

like image 43
Damon Avatar answered Sep 30 '22 10:09

Damon


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

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 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)

like image 34
William Leara Avatar answered Sep 30 '22 12:09

William Leara