11.11.2 Inno Setup
First created in 1997, Inno Setup is a freely available library to create
Windows installation packages.
Platforms supported: Windows
Web site: http://www.jrsoftware.org/isinfo.php
License: Free for commercial and non-commercial use; see web site for
more details.
11.11.2.1 Downloading, Installing, and Creating an
Installer in Inno Setup
Inno Setup is a freely available library used by many game developers
for creating an installation package (wizard) that installs their game to
the local machine. It transfers the game files from a compressed
archive on a CD or downloaded package to the local machine in a form
that can execute successfully. The following step-by-step guide high-
lights how to download, install, and use Inno Setup to create installers
for your own games.
1. Beginning from the Windows desktop, navigate a web browser to
the Inno Setup home page at http://www.jrsoftware.org/isinfo.php.
2. At the Inno Setup home page, click either the Downloads link at
the left of the page or the Dowload Inno Setup link on the page
to display the Downloads page. There, download from the web to
the local machine both the latest Inno Setup release and the Inno
Setup Quick Start pack, and install each package to the local
computer.
3. From the Windows Start menu, launch the newly installed Inno
Setup IS Tool (Script Editor to create installation packages). Then
from the IS Tool main menu, select File | New to create a new
installation project (a project soon to be compiled into a completed
installer, ready to run).
Chapter 11 / Other Cross-Platform SDKs and Tools 359
Chapter 11
4. Enter the following script into the editor pane:
[Setup]
; This is a comment. The setup section describes the basic
properties
; of the installer; such as program title, version number,
default
; installation (destination) directory
AppName=My Program
AppVerName=My Program version 1.4
DefaultDirName={pf}\My Program
DefaultGroupName=My Program
OutputDir=C:\Ouput
[Files]
; Here list all files to be compiled into installation package;
files to be
; installed to the system by the installer at run-time
Source: c:\mystestpic.jpg; DestDir: {app}
360 Chapter 11 / Other Cross-Platform SDKs and Tools
Figure 11-3

Get Cross Platform Game Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.