Questions tagged [inno-setup]

Inno Setup is a tool to create setup programs with an embedded Pascal-derived scripting language.

Inno Setup is a freeware tool to create setup programs (installers) for the Windows platform, either as a single executable or multiple-disk, featuring the standard Windows 2000/XP-style wizard interface and capable to install on all versions of Windows released from 2000: Windows 10, Windows 8, Windows Server 2012, Windows 7, Windows Server 2008 R2, Windows Vista, Windows Server 2008, Windows XP, Windows Server 2003, and Windows 2000 (No service packs are required.)

Installation of 64-bit applications on the 64-bit editions of Windows is also possible, on x64 and Itanium architectures.

The setup program is created with a simple text script, containing some pre-defined sections, [Setup], [Files], [Registry], etc.

Setup functionality can be customized in the [Code] section, writing routines.

The tool is written in Delphi 5/2009 and full source code is available.

Other features of Inno Setup:

  • Customizable setup types, e.g. Full, Minimal, Custom.
  • Complete uninstall capabilities.
  • Includes integrated support for "deflate", bzip2, and 7-Zip LZMA/LZMA2 file compression.
  • The installer has the ability to compare file version info, replace in-use files, use shared file counting, register DLL/OCX's and type libraries, and install fonts.
  • Creation of shortcuts anywhere, including in the Start Menu and on the desktop.
  • Creation of registry and .INI entries.
  • Running other programs before, during or after install.
  • Support for multilingual installs, including right-to-left language support.
  • Support for passworded and encrypted installs.
  • Support for digitally signed installs and uninstalls.
  • Silent install and uninstall.
  • Unicode installs.
  • Integrated Pascal scripting engine option for advanced run-time install and uninstall customization.
  • May be used free of charge even in commercial applications.

Inno Setup supports usage of Third-Party Files for additional features like download files as part of your installation.

Detailed documentation is available, both online and offline.

4809 questions
21
votes
3 answers

Delete a file AFTER installation in Inno Setup

I need to delete some files after the installation finishes. I was using the [Run] section to call cmd to delete the files but I wanted to improve the deletions by using Inno Setup code and not batch then I've seen the [InstallDelete] section but…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
20
votes
2 answers

InnoSetup: Getting AppName in [Code] section

I'm creating an installer using InnoSetup, and writing some custom handlers in a [Code] section. In one of the handlers, I would like to be able to retrieve the value of the AppName (or, potentially, the value of other parameters) defined in the…
Brian Campbell
  • 322,767
  • 57
  • 360
  • 340
20
votes
1 answer

How to include version information into the setup output filename?

I have an application with version information which I would like to include into the setup output filename. For instance if the application have version 3.10.1 I would like to get setup_3.10.1.exe output file instead of a default setup.exe as an…
Christian Rockrohr
  • 1,045
  • 1
  • 14
  • 29
20
votes
3 answers

Installing file in users AppData folder using inno-setup

I am using Inno-Setup version 5.5.3(a). [Files] Source: "C:\GPT\GPT.exe"; DestDir: "{app}"; Flags: ignoreversion Source: "C:\GPT\GPT.dat"; DestDir: "{app}"; Flags: ignoreversion ; NOTE: Don't use "Flags: ignoreversion" on any shared system files I…
JakeSays
  • 2,048
  • 8
  • 29
  • 43
20
votes
2 answers

Inno Setup - Check if file exist in destination or else if doesn't abort the installation

I need my installer to check if a file exists in the destination location, and if is not there, then the installation aborts. My project is a update patch, so I want the installer to avoid installing the update files if the main exe of the…
Dielo
  • 603
  • 2
  • 12
  • 25
20
votes
2 answers

How to add a scheduled task with Inno Setup

I have a small console application that is installed along my (bigger) application. The setup is created with Inno Setup, which works very nice. I want Inno Setup to add one or more tasks to the windows scheduler (that starts the console app). Is…
real_yggdrasil
  • 1,213
  • 4
  • 14
  • 27
19
votes
1 answer

Change the image in the Inno Setup wizard banner

How do I change the image in the banner of wizards. I know how to change it in the first page, using this command: WizardImageFile=C:\Documents and Settings\mybmp.bmp But my question is about following pages, where it shows standard image banner at…
Vikyboss
  • 940
  • 2
  • 11
  • 23
19
votes
2 answers

Inno Setup: Installing Windows services using "sc create"

I have two binaries and have to create a service for them. I tried a solution using "sc create" from How to install a Windows service with Inno Setup? But it did not work for me. It's getting stuck at the end of the installation. What am I doing…
rgm
  • 1,241
  • 2
  • 16
  • 33
19
votes
2 answers

Skipping custom pages based on optional components in Inno Setup

In a prior question I asked how to have three optional components, where the user could also specify the locations for each component separately (e.g. a code part and two HTML web applications). @Miral gave me a great answer which I have now…
Dr.YSG
  • 7,171
  • 22
  • 81
  • 139
19
votes
1 answer

How to delete folder during uninstallation process?

My program creates files in c:\Users\GameDev\AppData\Local\. Is it possible to tell the InnoSetup to delete the entire folder during the uninstallion process, even though the installer didn't put it there ?
superwpf
  • 365
  • 1
  • 2
  • 7
19
votes
8 answers

Check Java is present before installing

I'm creating an Inno Setup installer for a jar app. What I want to do right now is to check if java is present before proceeding with the install. So I only need to be sure the users will be able to run: java -jar my-app.jar What I'm doing right…
Santi
  • 4,428
  • 4
  • 24
  • 28
18
votes
4 answers

Install file from Internet in Inno Setup

I am using Inno Setup to distribute my application. Is it possible to check in Inno Script for a particular condition and download and install some file from internet if required?
18
votes
5 answers

How to get Inno Setup to unzip a file it installed (all as part of the one installation process)

To save bandwidth/space as well as prevent accidental meddling, the installation files for a database product (call it Ajax), have been zipped up (call that file "AJAX_Install_Files.ZIP). I would like to have Inno-Setup "install" (i.e., copy) the…
Dan Aquinas
  • 321
  • 2
  • 4
  • 10
18
votes
1 answer

Proper structure syntax for Delphi/Pascal if then begin end and ;

It has been around 20 years since I last had to write in Pascal. I can't seem to use the structure elements of the language correctly where I am nesting if then blocks using begin and end. For example this gets me an Compiler Error "Identifier…
amalgamate
  • 2,200
  • 5
  • 22
  • 44
18
votes
4 answers

Upgrading Windows service using Inno Setup

I've created a basic Windows service installation using Inno Setup. both install and uninstall works properly. However, I'm having issues with the upgrade procedure. In order to upgrade the service executable it is necessary to stop the service,…
ofer
  • 4,366
  • 9
  • 38
  • 39