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
25
votes
4 answers

"The requested operation requires elevation" message after setup

I created setup program for one application in inno setup , where I'm trying to run application after install, but I get this message under Windows 7 : The requested operation requires elevation. I know it's because of admin privileges. Is there a…
chubbyk
  • 6,212
  • 13
  • 53
  • 67
24
votes
9 answers

How to configure Inno Setup to uninstall everything?

I am new to Inno Setup. Stuck on one issue ~ how to configure the uninstall piece to remove all files, folders, subfolders, and even new files/folders etc. created by application (in other words, a 100% removal of the application and associated…
OneNerd
  • 6,442
  • 17
  • 60
  • 78
24
votes
2 answers

Creating an installer that will perform an update if an older version is already installed

I am trying to configure Inno setup for my software (this is a C# software). I plan to release many versions of my software, I would like to change the Inno setup installer interface if an older version of my application is already installed on the…
Ben
  • 3,972
  • 8
  • 43
  • 82
23
votes
4 answers

How to abort/terminate Inno Setup during installation?

During my install, I run a bat file. If the bat file returns an error, I need to abort/terminate the setup. I'd like for it to do a MsgBox telling the user what happened, then for the abort to look and act like the user pressed the Cancel button. Is…
PM2
  • 317
  • 1
  • 5
  • 9
23
votes
3 answers

How can I log Inno Setup installations?

Inno Setup has command line parameter /LOG="filename". Can I specify a log filename from inside the Inno Setup script, so I can include it later in my error reports?
sashoalm
  • 75,001
  • 122
  • 434
  • 781
23
votes
2 answers

How to run a file before setup with Inno Setup

Is it possible to run a file with Inno Setup, before the setup beginns? Documentation
Stephan Schielke
  • 2,744
  • 7
  • 34
  • 40
23
votes
4 answers

File association in Inno Setup

I am using Inno Setup and am trying to associate a program that is located in the Program Files (x86) in Windows 7. I have the following: #define MyAppName "MyView" #define MyAppExeName "MyView.exe" [Setup] AppName={#MyAppName} [Registry] Root:…
user1429254
  • 327
  • 1
  • 3
  • 10
23
votes
1 answer

How to remove a desktop shortcut by Innosetup

How can I remove a desktop shortcut by Innosetup? It's created by previous version and not needed anymore. I tried delete it in [InstallDelete] [InstallDelete] Type: files; Name: {userdesktop}\Shortcut Name and delete the file in "ssInstall" of…
trudger
  • 917
  • 2
  • 12
  • 20
22
votes
3 answers

Wrong desktop shortcut icon on Windows 7 (Inno Setup)

I have created an installer with Inno Setup. The icon used for the desktop shortcut and start menu is embeded in the application executable. When the installer was initially created, I didn't have the final product icon from the design team. I used…
swirlywonder
  • 531
  • 1
  • 4
  • 11
22
votes
10 answers

Close running version of program before installing update (Inno Setup)

This should be simple, I need to stop any previous version of my program from running when the installer starts. Most people suggested making an exe which does this and calling it before Inno Setup starts. I created an exe using AutoIt which kills…
Daisetsu
  • 4,846
  • 11
  • 50
  • 70
22
votes
6 answers

Unload a .NET DLL from an unmanaged process

I'm extending my Inno-Setup script with code that I can best implement in C# in a managed DLL. I already know how to export methods from a managed DLL as functions for use in an unmanaged process. It can be done by IL weaving, and there are tools to…
ygoe
  • 18,655
  • 23
  • 113
  • 210
22
votes
2 answers

Inno Setup - How to set full permission on a folder, not just for it's contents

My kit created with Inno Setup installs my application in C:\Program Files\MyApp. When my application starts, it tries to create new log files in C:\Program Files\MyApp\logs\ but it fails. In my Inno script i have the following…
Cornelia
  • 618
  • 1
  • 4
  • 11
22
votes
2 answers

Inno Setup default install folder change

Every time I compile my installer the default installation directory is C:\Program Files\Company\Product and I don't seem to be able to change it. Here's what I got under…
Mossi
  • 997
  • 5
  • 15
  • 28
21
votes
3 answers

Inno Setup doesn't allow access to all registry keys, why?

I use this code to know if a key exists or not: if RegKeyExists(HKEY_LOCAL_MACHINE, 'Software\Autodesk') then begin MsgBox('Key exists!!', mbInformation, MB_OK); end; for this example, it works, I have the message box, but with this it…
John Lev
  • 211
  • 1
  • 2
  • 6
21
votes
2 answers

Add a custom input field to Inno Setup

I am making use of Inno Setup (it's amazing!). I was hoping to customise the installer so that I can accept a string from the user in the form of an input field and maybe add a message to it. How can I do this? I had a look through the docs, google…
Abs
  • 56,052
  • 101
  • 275
  • 409