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
16
votes
1 answer

Can an Inno-Setup ISS script include an external ISS script file?

I'm creating an installation script that I'd like to break up into smaller, more manageable pieces. Is there a way for an Inno Script file to have an INCLUDE or a reference to another ISS script file that is separate and has a different function…
Jeff
  • 1,742
  • 5
  • 24
  • 39
16
votes
2 answers

Install log file is missing

I made a script including this: [Setup] SetupLogging=yes But I can't find the log file. It seems like it was not created. Where could it be? Is that possible to specify where I want to place it?
user1762109
16
votes
5 answers

Add text to 'Ready Page' in Inno Setup

I added few custom pages to my Installer. These pages gather some data from user and disk, and I'd like to show this data to user before final installation step starts. Inno Setup has 'Ready to Install' page exactly for this purpose. How can I add…
Peter Štibraný
  • 32,463
  • 16
  • 90
  • 116
16
votes
2 answers

How to detect whether the setup runs in very silent mode?

I know there is the WizardSilent function for checking whether the setup runs in silent mode, but I cannot find a function equivalent for very silent mode (when the setup is executed with /VERYSILENT command line parameter). Is there a way to detect…
Vingt_centimes
  • 326
  • 2
  • 8
16
votes
1 answer

How to read and write XML document node values in Inno Setup?

I want to read some nodes of a XML file and show their values in some custom input fields. User can then change the values if needed, and by clicking the Next button these values should be saved back to the XML. How to do this in Inno Setup script ?
Sunil Sharma
  • 782
  • 1
  • 10
  • 22
16
votes
4 answers

How to force Inno Setup setup to fail when Run command fails?

I have some commands in the [Run] section of my Inno Setup script. Right now, if any of them returns a failure code (non-zero return value), the setup continues without any warning to the user. The desired behavior is to have the setup fail and…
dso
  • 9,463
  • 10
  • 53
  • 59
15
votes
2 answers

How do I create a Start Menu folder with InnoSetup?

I want to create a folder under the Start Menu using InnoSetup. On Windows 7 the start menu should show a highlight and then show my app's folder highlighted after clicking All Programs like I see when installing other apps. If I put multiple items…
Edwin Evans
  • 2,726
  • 5
  • 34
  • 47
15
votes
2 answers

Inno Setup script for copying folders

I need an Inno Setup script that copies a folder recursively.
Roman Prykhodchenko
  • 12,655
  • 8
  • 29
  • 33
15
votes
4 answers

How to install Microsoft VC++ redistributables silently in Inno Setup?

How to install Microsoft VC++ redistributables silently in Inno Setup? I used the following code, most of the installation part is silent except the installation progress window. Here is my [Run] section's code:- [Run] Filename:…
Myanju
  • 1,135
  • 1
  • 11
  • 23
15
votes
3 answers

How to set 'Run as administrator' on a file using Inno Setup

I'm creating an installer using Inno Setup. As part of the install process I'm installing Tomcat. On Windows 7 I suffer from the problem described here: http://blog.paulbouwer.com/2010/10/23/the-case-of-the-annoying-tomcat-6-monitor/ I can fix it by…
learnAndImprove
  • 1,339
  • 4
  • 15
  • 25
15
votes
10 answers

InnoSetup - Erroneous "File in use by another process..." message while compiling

Although I really like InnoSetup, I have been suffering with this erroneous message for some time, but my frustration has reached new heights. There are numerous posts complaining about this problem, which is most certainly an InnoSetup bug, but no…
ron tornambe
  • 10,452
  • 7
  • 33
  • 60
15
votes
4 answers

How to declare an Inno Setup preprocessor variable by reading from a file

Ok I know you can do this in Inno Setup: #define AppVer "0.0.11" Then use it like [Setup] AppVerName={#AppVer} Now imagine I have a file named VERSION whose contents are "0.0.11". Is there a way the contents of the file VERSION into the Inno Setup…
rogerdpack
  • 62,887
  • 36
  • 269
  • 388
15
votes
2 answers

Inno Setup : How to set installer "Run As Administrator"?

In Inno Setup, [Setup] PrivilegesRequired=admin is still can not Run the installer as Administrator, but I need to Launch my Program at last step of Inno Setup. How can I do to set my Installer can Run as Administrator ?
健榮 陳
  • 465
  • 3
  • 5
  • 10
14
votes
3 answers

Inno Setup Optional (user-selectable) file association

In the Inno Setup FAQ is an example of how to assign filetypes to my software. Dealing with the registry is no problem. But how can I provide the user the choice of which filetypes he wants to assign? Let's say, I have written a simple editor for…
0xDEADBEEF
  • 3,401
  • 8
  • 37
  • 66
14
votes
3 answers

How can I install a driver using Inno Setup?

I'd like to install a driver for a serial port using Inno Setup. I have the inf file, and I can install the driver manually through device manager, but I'd like to be able to include the driver in my installer so that users don't have to go through…
nathan
  • 4,612
  • 6
  • 32
  • 33