Inno Setup Installation Tutorial Guide
Inno Setup Installation Tutorial Guide
INNO SETUP
Installer by Jordan Russell
[Link]
Tutorial on INNO SETUP –[Link]
The Inno Setup script is a true programming language, complete with structures.
decisional, cyclical structures, functions or procedures and directives for the setup compiler.
It allows the use of variables and functions typical of a visual language such as
message box, in short, it is a programming language, the functions on solving the
screen, very useful if you want to block the installation if the video resolution is lower than that
volute.
This tutorial is not a comprehensive manual on how to use Inno Setup, but it is just a series of
instructions for using Inno Setup to obtain an installation setup for your application, in
a little time.
Page 2 of 13
Tutorial on INNO SETUP –[Link]
Once Inno Setup is downloaded, it is good to also download, through the link on Inno Setup.
Translations, the Italian language called [Link]. translated by an Italian programmer, who
Like many around the world, they have contributed to the spread of Inno Setup, like programs.
third-party additions such as InnoScript, which will be mentioned later.
The downloaded translators do not allow obtaining the menus or the various operation messages of Inno.
Setup in Italian, but it is needed to obtain an installation setup for one's application in Italian.
Once Inno Setup is installed on your computer, the file is inserted into the Languages folder.
translator in Italian. In fact, in the main folder of Inno Setup, there is the default translator file,
in English, called [Link].
The installer created with Inno Setup has a decidedly professional appearance, as shown in the figures.
following, which show the initial screen of an installation:
Page 3 of 13
Tutorial on INNO SETUP -[Link]
When we launch our setup created with Inno Setup, a series of news and options are displayed.
for the installation, in sequential screens:
The next screen contains a small image in the upper right corner, which will be
maintained throughout the duration of the installation.
If the license terms are not accepted, that is, if the click is not executed
on the 'I accept the license terms' option, the next button
the installation is not activated.
Once you accept the terms of the license, a password request will appear.
to access in order to proceed with the installation.
Page 4 of 13
Tutorial su INNO SETUP –[Link]
At this point, you choose whether to add the launch icon of the
our program on the desktop and/or place the same icon
directly on the Windows taskbar, inserting a
check mark on the respective items.
Page 5 of 13
Tutorial on INNO SETUP –[Link]
At the end of the installation, our program keeps the icon set for its creation.
nell’esempio il programma chiamato Codice fiscale possiede l’icona della bandiera italiana.
on the taskbar,
on the desktop.
Page 6 of 13
Tutorial on INNO SETUP –[Link]
Inno Setup allows you to create an installation package for your program through the
guided creation of the package itself, and at the end of the creation, the setup script is generated,
that is, it describes in Inno Setup language how to create the installation package.
Let's assume again that this program requires an additional file called
[Link], which must necessarily reside in the same folder where the program is located
Tax code.
Furthermore, our program still requires a folder, also placed in the folder where
resides the tax code program, which contains various data files, supporting the program itself and
should be called FilesVari.
So let's prepare 3 text files (ascii format) perhaps written with Notepad to accompany
Windows, and we call them respectively [Link], [Link] and [Link]
Page 7 of 13
Tutorial on INNO SETUP –[Link]
The graphics
Inno Setup manages two default graphic files in BitMap format (BMP extension).
Alternatively, along with Inno Setup, two other files are provided by
more updated graphic: [Link]-
[Link]
We can still create graphic files while respecting the indicated parameters.
customized for our installation package.
CODE
FISCAL
File: PROCEDURE
At this point, let's continue with the screens presented by Inno Setup.
Second screen:
Continuing with Inno Setup we will have the following screen, where we need to specify in the fields:
Application Name
Program Name, which will be displayed in the window of
welcome and will then be reported in the Start menu of
Windows
Application name including version
Full name of the program with its version, and that it will be
displayed only during installation, in the welcome window,
subapplication Name
Page 8 of 13
Tutorial on INNO SETUP -[Link]
Third screen:
Application destination base directory
Leave the Program files directory, which automatically creates the folder
where to insert the programs.
Fourth screen:
Application main executable file
Select the executable program to install (ours
program), through the Browse button
Other application files (optional)
Select each individual file used by the program (wave file,
charts, Database etc) by pressing the button Add file(s) will be
inserted in <Application directory
name>. Or select a
the directory and all its files will be
inserted in <Application directory name> To change the folder of
destination, select it and press the Edit button indicating a
different destination folder, in our example the folder, it
callVariousFiles.
Page 9 of 13
Tutorial on INNO SETUP –[Link]
Fifth screen:
Application Start Menu Folder Name
It is the name that the branch (containing the program) will take.
called <Application Name> within the Programs menu
Windows Start button. The flags are:
Allow user to change the…
Insert the link to the program in Windows Start.
Allow user to disable Start...
It allows not to insert the link to the program in
Windows Start
Create an Internet shortcut…
Insert the link to the website indicated on the second screen.
Create an uninstall icon in the Start menu folder
Inserts the uninstaller utility of the program being installed
Allow user to create a desktop icon
Add the program icon to be installed on the desktop.
Allow use to create a Quick...
It adds the program icon to be installed also on the Windows taskbar.
Sixth screen:
If you want to select the three text files with the notifications
at installation, you need to select:
License File (optional)
It is the text file with the license terms that must be accepted.
to proceed with the installation. In the example, it is the file
[Link]
File Information file show before installation (optional)
This is the text file with the news to be displayed before starting.
at installation. In the example, it is the file [Link]
Seventh screen:
Select the language in which all messages are indicated during the installation of our
program.
Page 10 of 13
Tutorial on INNO SETUP –[Link]
Eighth screen:
Proceed until the end of the other two screens and finish.
pressing the Finish button.
Anyway, the message appears: Would you like to compile the new script now? By pressing Yes, it is
the script compilation has been completed and the installation file has been created.
Page 11 of 13
Tutorial on INNO SETUP -[Link]
[Setup]
AppName={#MyAppName}
AppVerName={#MyAppVerName}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\Tax code of vbSchool
DefaultGroupName={#MyAppName}
LicenseFile=H:\Prg\[Link]
InfoBeforeFile=H:\Prg\[Link]
InfoAfterFile=H:\Prg\[Link]
OutputDir=e:\compilazione
OutputBaseFilename=SetupCodFisc
Password=chicca
Compression=lzma
SolidCompression=yes
In the setup section, we can add the two lines of code that load the charts, without using
those by default
WizardImageFile=C:\Documenti\[Link]
WizardSmallImageFile=C:\Documenti\[Link]
[Languages]
Name: "italian"; MessagesFile: "compiler:Languages\[Link]"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription:
"{cm:AdditionalIcons}"; Flags: unchecked
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription:
{cm:AdditionalIcons}; Flags: unchecked
[Files]
Source: "H:\Prg\[Link]"; DestDir: "{app}"; Flags: ignoreversion
Source: "H:\Prg\[Link]"; DestDir: "{app}"; Flags: ignoreversion
Source: "H:\Prg\Support\*"; DestDir: "{app}\FilesVari"; Flags: ignoreversion recursesubdirs
create all subdirectories
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
Page 12 of 13
Tutorial on INNO SETUP -[Link]
In this section, having to insert a DLL into the System directory and register it is:
Source: E:\[Link]; DestDir: {sys}; CopyMode: alwaysskipifsameorolder; Flags:
restartreplace sharedfile regserver
while for an OCX or DLL in the System directory without its registration:
Source: E:\[Link]; DestDir: {sys}; Flags: ConfirmOverWrite
[INI]
Filename: "{app}\{#MyAppUrlName}"; Section: "InternetShortcut"; Key: "URL"; String:
{#MyAppURL}
[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{group}\{cm:ProgramOnTheWeb,{#MyAppName}}"; Filename: "{app}\{#MyAppUrlName}"
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
Name: "{userdesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename:
{app}\{#MyAppExeName} ; Tasks: quicklaunchicon
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#MyAppName}}"; Flags:
nowait postinstall skipifsilent
UninstallDelete
Type: files; Name: "{app}\{#MyAppUrlName}"
To create a very detailed script, you can use a freeware program downloadable from the internet.
which allows you to set the application package in its multiple parts.
The program in question is ScriptMaker, which through various screens and settings, is able to
generate a very efficient script to create our installation packages. It can be downloaded.
to the address[Link] link of which can also be found on the Jordan Russell website
Another program, easier to use, is ISTool, also freeware, very similar to ScriptMaker.
it can be retrieved at the [Link]
To find the solution to the requirements set for your installation packages, visit the
countless forums online.
Page 13 of 13