[Innosetup] Complex installation

37 views
Skip to first unread message

Michel Ballasse

unread,
Jul 27, 2026, 10:38:59 AM (11 days ago) Jul 27
to innosetup
Hello everyone, Currently, I manage the installation of three separate applications (APP1, APP2, and APP3). Each application has its own name and root directory: APP1: AppName = Applicaation 1 / DefaultDirName = C:\APP1 APP2: AppName = Application 2 / DefaultDirName = C:\APP2 APP3: AppName = Application 3 / DefaultDirName = C:\APP3 There is also a shared base component for all three applications (components named "COMMUN" in Inno Setup). For APP1, there are four configuration options (CONF1, CONF2, CONF3, and CONF4), which determine which files are installed (components named CONF1 through CONF4). For APP2 and APP3, there are no configuration choices; the files installed depend on the selected application (components named CONF5 for APP2 and CONF6 for APP3). Currently, I have three separate Inno Setup installers—one for each application—and everything works perfectly (installation and uninstallation). I would like to combine these three installers into a single one. Here is the challenge: 1. Upon launching the installer, I want to be able to choose which application to install (APP1, APP2, or APP3). 2. The application name must change based on that choice. 3. The installation path (which the user cannot modify) must point to the corresponding `DefaultDirName`. 4. Finally, if APP1 is selected, I need to be able to choose a configuration (CONF1, CONF2, CONF3, or CONF4); otherwise, no choice is available (CONF5 for APP2, and CONF6 for APP3). Thank you for your help.

Bill Stewart

unread,
Jul 27, 2026, 12:37:25 PM (11 days ago) Jul 27
to innosetup
On Monday, July 27, 2026 at 8:38:59 AM UTC-6 Michel Ballasse wrote:

... I would like to combine these three installers into a single one.

Your question is very broad.[1]

I would start by reading through the Inno Setup documentation[2] and familiarizing yourself with how the [Code] section works. There is a lot you can customize.

[1] This group works best with very specific, targeted questions.


Gavin Lambert

unread,
Jul 27, 2026, 8:01:25 PM (11 days ago) Jul 27
to innosetup
On Tuesday, July 28, 2026 at 2:38:59 AM UTC+12 Michel Ballasse wrote:
I would like to combine these three installers into a single one.

Assuming that you want to retain the ability to uninstall each app individually, the simplest way to create a "suite installer" is to continue building your individual app installers, then pack these installers into another script via [Files] with DestDir: {tmp}.

Mark this suite installer as Uninstallable=no (because the individual apps can be uninstalled directly, so you don't need anything for the suite as a whole), use [Components] to select one or more apps to be installed, then [Run] their respective installers, passing /NORESTART to each.  Apply the Components: parameter to both the [Files] and [Run] entries.

Michel Ballasse

unread,
Jul 28, 2026, 5:34:13 AM (10 days ago) Jul 28
to innosetup
The first part of my question is admittedly "broad," but there is a detailed explanation of what I am trying to do right after that Thanks for your reply anyway. I also found the answer to what I was looking for on another forum.
Reply all
Reply to author
Forward
0 new messages