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
40
votes
10 answers

Is it possible to accept custom command line parameters with Inno Setup

I am preparing an installer with Inno Setup. But I'd like to add an additional custom (none of the available parameters) command line parameters and would like to get the value of the parameter, like: setup.exe /do something Check if /do is given,…
Similar
  • 407
  • 1
  • 4
  • 4
40
votes
2 answers

Inno Setup: Set default value for desktop icon-check box to true

I am struggling with getting Inno Setup to set the check box to true whether a desktop icon should be created. The documentation has not been any helpful concerning this issue as well as Googlism and Stackoverflow. [Tasks] Name: "desktopicon";…
mamachanko
  • 886
  • 1
  • 7
  • 15
40
votes
1 answer

Inno Setup: How to watch variables values or write to debug output?

How can I watch values of variables while debugging in Inno Setup? How can I print something to debug output? Thanks
Timofei Davydik
  • 7,244
  • 7
  • 33
  • 59
39
votes
2 answers

How to get an output of an Exec'ed program in Inno Setup?

Is it possible to get an output of an Exec'ed executable? I want to show the user an info query page, but show the default value of MAC address in the input box. Is there any other way to achieve this?
versioner
36
votes
3 answers

Inno Setup: Install other installer and run it before continuing my install

This is the [Files] portion of my code so far: [Files] Source: "other_installer.exe"; DestDir: "{app}" Source: "myprogram.exe"; DestDir: "{app}" Source: "data.dat"; DestDir: "{app}" Source: "otherdata.dat"; DestDir: "{app}" My program is dependent…
Juicy
  • 11,840
  • 35
  • 123
  • 212
33
votes
2 answers

Make Inno Setup installer request privileges elevation only when needed

Inno Setup installer has the PrivilegesRequired directive that can be used to control, if privileges elevation is required, when installer is starting. I want my installer to work even for non-admin users (no problem about installing my app to user…
Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
31
votes
10 answers

Is it feasible/sensible to wrap an Inno Setup installer inside an MSI for easier distribution via AD?

Our installer is written with Inno Setup and we are actually quite happy with it. Yet some customers keep asking for an MSI installer which they could more easily distribute via Active Directory. We have already gone to some lengths to make the…
Oliver Giesen
  • 9,129
  • 6
  • 46
  • 82
31
votes
1 answer

How to create a desktop icon with Inno Setup

I am very new of Inno Setup and I wish to add an optional Desktop icon to my executable in Inno Setup. The file is stored in C:\Users\PycharmProjects\GIOTTOconverter\dist\giotto.ico I tried to follow several examples but without results. ; Script…
Gianni Spear
  • 7,033
  • 22
  • 82
  • 131
30
votes
4 answers

Run application after successful install

How to make check box that allow user to run application after installation?
Ata
  • 12,126
  • 19
  • 63
  • 97
30
votes
2 answers

how to detect 64bit platform by script

is there code to detect 64 platform e.g. if X86 then ... if X64 then ...
Tom
  • 6,725
  • 24
  • 95
  • 159
28
votes
5 answers

Inno Setup: Control panel icon does not show

I have an Inno Setup project. Everything is fine, but I do not see the application icon in the "Programs and Features" control panel area. I do see the icon everywhere else. The script file does have the…
Sarah Weinberger
  • 15,041
  • 25
  • 83
  • 130
28
votes
6 answers

Can one use environment variables in Inno Setup scripts?

I need to find a way to reference environment variables INSIDE the Inno Setup script file (.iss)... I've found plenty of references to MODIFYING the environment from an .iss, but none on how to actually use it. Is this possible?
dicroce
  • 45,396
  • 28
  • 101
  • 140
27
votes
2 answers

Inno Setup parameter with quotes in [Run] section

I use [Run] section to modify the merit value of some codecs with commandmerit.exe that supports command-line. So the syntax is: Commandmerit.exe "{E2B7DF46-38C5-11D5-91F6-00104BDB8FF9}" "0x800000" {E2B7DF46-38C5-11D5-91F6-00104BDB8FF9} is the…
david cooper
  • 273
  • 1
  • 3
  • 4
27
votes
5 answers

Uninstall fails because program is running. How do I make Inno Setup check for running process prior to attempting delete?

Inno Setup fails to remove components during uninstall cause my program is still running and the executable cannot be deleted. How do I have it check to see if it is running before allowing uninstall to proceed?
max
  • 1,020
  • 1
  • 15
  • 25
25
votes
7 answers

How to restart service using command prompt?

I want to restart Windows service using command prompt in [Icons] section using Inno Setup. Please help me to solve the problem.
Nithin
  • 921
  • 3
  • 10
  • 17