Selective installation

Common questions about using Actual Installer.
Post Reply
phprates
Posts: 2
Joined: Tue Apr 30, 2019 8:42 pm

Selective installation

Post by phprates »

I would like to create a selective installation package. Where the user could select before if he is server or client. Being a server, I would install SQL Server, if it were client would install without SQL Server.

How do I do this in the Actual Installer?
Leo
Site Admin
Posts: 396
Joined: Fri Jan 22, 2010 12:40 pm
Contact:

Re: Selective installation

Post by Leo »

Currently this feature is not supported.
We'll try to add it soon.
Leo,
Actual Installer Team
http://www.actualinstaller.com
Leo
Site Admin
Posts: 396
Joined: Fri Jan 22, 2010 12:40 pm
Contact:

Re: Selective installation

Post by Leo »

New version of Actual Installer has this option: Interface \ Custom \ Custom ComboBox
Image

Example of use:
Select the option "Show Custom ComboBox"
In the Text field type e.g.: Select Your Configuration
In the Items list add:
  • Client
    Server
The Default index field you may leave empty, so user has to select the appropriate item before installation. Or set default item - to make the first item selected (Client), enter 0, 2nd item (Server) - 1.

The selected item is stored in the variable <ComboBoxIndex> - if the first item is selected, this variable contains 0, 2nd item - 1.

Now to check what item is selected we use Commands (page System \ Commands).
Add the following:

Code: Select all

File: 		<SystemDir>\cmd.exe
Parameters: 	/C IF /I <ComboBoxIndex>==1 "<InstallDir>\SQL-redist.exe"
Timing: 		After Installation
Wait: 		Yes
where SQL-redist.exe is a sql server redistributable packages which should be included in your project (at the Files and Folders page).
Leo,
Actual Installer Team
http://www.actualinstaller.com
AndrevanHaren
Posts: 13
Joined: Mon Jul 15, 2019 6:01 am

Re: Selective installation

Post by AndrevanHaren »

Is it also possible to give the user the choice what to install?
I have a main program and a database file. For a new installation, the user has to install both files, but for updates, he should only install the main program and not the database files. Is this possible to create in the installer?

What about something like this with checkboxes?
Screenshot 2020-02-15 at 16.39.05.png
(25.26 KiB) Not downloaded yet
Leo
Site Admin
Posts: 396
Joined: Fri Jan 22, 2010 12:40 pm
Contact:

Re: Selective installation

Post by Leo »

We'll add this feature in version 8.0, which will be released this month.
Leo,
Actual Installer Team
http://www.actualinstaller.com
Post Reply