akshay karambale
Posts: 49
Joined: Thu May 28, 2020 8:04 am

Checkbox of pre-requisite dialog

Hi,
We have created one bootstrapper and it require some pre-requisites before installation of this, one for windows 7 and one for windows 8 machne.
In our case while installing bootstrapper on Windows 7 machine it first detects whether Pre-requisite is already installed or not. If its not installed
then it shows pre-requisite dialog with both checked checkbox for pre-requisites of windows 7 and windows 8.
but our requirement is, it should checked checkbox for pre-requisies of particular window(that means if machine is of Windows 7 then it only checks pre-requisite of windows 7).
can you please resolve this why both the checkboxes are getting checked for any of the windows.

Thanks,
Akshay
Catalin
Posts: 6586
Joined: Wed Jun 13, 2018 7:49 am

Re: Checkbox of pre-requisite dialog

Hello Akshay,

The prerequisites are both checked for installation because they are not already installed on the machine.

If you want to conditionally check/uncheck a checkbox based on a condition, you should create your own custom dialog. For more information about this, please have a look over the "How to conditionally install a prerequisite based on user selection" article.

After creating the custom dialog, you should set the default state of each checkbox to (the "Selected" parameter) to "false" and then create a "Init Event" for your checkbox that will check it based on your condition.

You can enable the "Checkbox" by setting its' property's value to the default value.

enableCheckbox.png
enableCheckbox.png (193.54 KiB) Viewed 1673 times

Hope this helps.

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

Return to “Common Problems”