Karzic
Posts: 4
Joined: Wed Feb 08, 2023 3:28 pm

Excute Custom Action with Radio Button after application files installation

Hello everyone,

I'm running in an issue by trying to create a custom action, that executes with a radio button, copying or modifying a config-file, which will be installed with the setup.

So the requirements are:
1. Select Radio Button with the installation (Radio button is linked to a custom action, that modifies a file in the installation folder)
2. Finish setup installation (file should be modified within the installation folder)

The problem I'm running into is, that the custom action is executed before there are files in the installation folder. But linking the radio button with a custom action only works with those without a sequence, so I can't choose the correct execution time.

I hope I explained it well enough.

Best regards
Karzic
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: Excute Custom Action with Radio Button after application files installation

Hello Karzic,

Here is how you can achieve that:

- configure your custom action and add it "with sequence"

- schedule it after the "Add resources" action group with its "Execution Time" set to "When the system is being modified (deferred)". This is the point where your files are installed on the machine

- after that, condition your file to run based on the radio button (e.g. if it was checked).

For instance, let's consider we have the following radio button group control, which contains 2 radio button controls:

RADIO_BUTTON_1

RADIO_BUTTON_2

We want to execute the custom action only the RADIO_BUTTON_2 is selected.

To do so, we can use the property assigned with the radio group control
Screenshot_13.png
Screenshot_13.png (39.8 KiB) Viewed 7037 times

The above property can have two values:
Screenshot_14.png
Screenshot_14.png (42.36 KiB) Viewed 7037 times

In our case, the condition should be something like this:

Code: Select all

RADIOBUTTONGROUP_1_PROP="RadioButton_1"
This way, the custom action will only be executed if the required radio button was selected in the UI.

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Karzic
Posts: 4
Joined: Wed Feb 08, 2023 3:28 pm

Re: Excute Custom Action with Radio Button after application files installation

That was exactly what I was looking for, thanks a lot.

Best regards,
Karzic
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: Excute Custom Action with Radio Button after application files installation

You are always welcome, Karzic!

I am glad I was able to assist.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”