Install files on dir depending on user Selection

Common questions about using Actual Installer.
Post Reply
guidomarcel
Posts: 3
Joined: Thu Apr 04, 2024 3:42 pm

Install files on dir depending on user Selection

Post by guidomarcel »

Hello,
I have developped a plugin for SSMS18 (SQL Server Management System), SSMS19 and SSMS20. The installation process consists in copying the plugin files into a folder inside SSMS installation folder. The files to be copied are exactly the same for SSMS18, SSMS19 and SSMS20, but the destination folder will be different according to the SSMS Version.
Therefore I purchased the Actual Installer Pro+ License hoping I could do this with "Show Custom ComboBox" option containing 3 entries "SSMS18, SSMS19 and SSMS20".
Actual Installer can read the installation folder from SSMS18, SSMS19 and SSMS20 from Registry and store it into 3 different variables (var18, var19, var20).
Now, depending on the choice made by the user (SSMS18, SSMS19 or SSMS20) I want to use var18, var19 or var20 as Installation Directory
So, how can I tell Actual Installer to use Var18 as Installation Directory when the user has chosen SSMS18 in the Cusom ComboBox?

Could you please give me a hint?
Regards
GuidoMarcel
Leo
Site Admin
Posts: 458
Joined: Fri Jan 22, 2010 12:40 pm

Re: Install files on dir depending on user Selection

Post by Leo »

Hello,

Add 3 variables: for SSMS18, SSMS19 and SSMS20 paths:
<Var0>, <Var1>, <Var2>
Select the option "Update InstallDir on change" for the Custom ComboBox.

In the Installation Directory type:
<Var<ComboBoxIndex>>

Variable <ComboBoxIndex> will be replaced with the user selected index (0, 1, 2) of the ComboBox.
The install dir will be, for example: <Var1>, which will use the actual path from this variable.
Leo,
Actual Installer Team
https://www.actualinstaller.com
guidomarcel
Posts: 3
Joined: Thu Apr 04, 2024 3:42 pm

Re: Install files on dir depending on user Selection

Post by guidomarcel »

Thank you !!
guidomarcel
Posts: 3
Joined: Thu Apr 04, 2024 3:42 pm

Re: Install files on dir depending on user Selection

Post by guidomarcel »

Leo wrote: Fri Apr 05, 2024 2:22 am Hello,

Add 3 variables: for SSMS18, SSMS19 and SSMS20 paths:
<Var0>, <Var1>, <Var2>
Select the option "Update InstallDir on change" for the Custom ComboBox.

In the Installation Directory type:
<Var<ComboBoxIndex>>

Variable <ComboBoxIndex> will be replaced with the user selected index (0, 1, 2) of the ComboBox.
The install dir will be, for example: <Var1>, which will use the actual path from this variable.
Can I use this logic also for optional components. i.e. when the installation of the SSMS18/19/20 plugin is an option beside the installation of the main Software module.

Regards
Guido
Leo
Site Admin
Posts: 458
Joined: Fri Jan 22, 2010 12:40 pm

Re: Install files on dir depending on user Selection

Post by Leo »

No, this wont work with the Components feature.
Leo,
Actual Installer Team
https://www.actualinstaller.com
Post Reply