Page 1 of 1

Install files on dir depending on user Selection

Posted: Thu Apr 04, 2024 3:55 pm
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

Re: Install files on dir depending on user Selection

Posted: Fri Apr 05, 2024 2:22 am
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.

Re: Install files on dir depending on user Selection

Posted: Fri Apr 05, 2024 5:59 am
by guidomarcel
Thank you !!

Re: Install files on dir depending on user Selection

Posted: Thu Apr 11, 2024 10:08 pm
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

Re: Install files on dir depending on user Selection

Posted: Fri Apr 12, 2024 2:32 am
by Leo
No, this wont work with the Components feature.