aswinsrinivasan02
Posts: 11
Joined: Fri Mar 04, 2022 10:47 am

Display Dialog based on prerequisite selection

Hi Team,
I have 2 issues that I wanted some help from the community.

1. In the Prerequisites window, I have around 5 different features that I was having and some of them are based on certain conditions. Advanced Installer is able to figure out if it needs to skip or Install but by default the checkboxes are 'Checked' even though it says Skip in the third column. The end user may not be well informed and might think that the pre-req will be installed even though it shows as SKIP in the grid.
SS1.png
SS1.png (84.02 KiB) Viewed 2562 times
2. I have a Custom Dialog that I wanted to show based on the selection from the pre-requisite window. Based on another post where catalin had posted, I had done the following steps
a. Right clicked on the custom dialog and clicked on the Show Only If.
b. Chose the "Feature will be installed local. The feature is not reinstalled. & chose the feature which depends on this dialog.
Even though I had provided this way, the custom dialog is always showing up.
SS2.png
SS2.png (64.72 KiB) Viewed 2562 times
Any help would be greatly appreciated!!
Catalin
Posts: 7492
Joined: Wed Jun 13, 2018 7:49 am

Re: Display Dialog based on prerequisite selection

Hello Aswin,

Unfortunately, I can not say for sure why this is happening.

If possible, could you please forward me a copy of the .AIP file by email at support at advancedinstaller dot com so I can investigate its settings?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 7492
Joined: Wed Jun 13, 2018 7:49 am

Re: Display Dialog based on prerequisite selection

Hello Aswin,

First of all, thank you for the provided resources.

After further investigation, I believe I found the culprit here.

The reason why your dialog is not displayed is because that prerequisite is already installed on the machine and its "Action" is set to "Skip".

With that being said, the state of your feature will never be set to "Install" and that is why the dialog is not displayed.

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
aswinsrinivasan02
Posts: 11
Joined: Fri Mar 04, 2022 10:47 am

Re: Display Dialog based on prerequisite selection

Hi Catalin,
Thank you for spending time on this. My issue is that the dialog is 'always' coming up even though the feature is installed :) upon further digging, I found that this is because by default the checkbox is checked in the preerquisite window even though the Action says SKIP.
SS.png
SS.png (22.08 KiB) Viewed 2492 times
If I uncheck it manually, the dialog box does not come which is intended. Any reasons why this checkbox is checked always even though the Action is Skip?
Catalin
Posts: 7492
Joined: Wed Jun 13, 2018 7:49 am

Re: Display Dialog based on prerequisite selection

Hello Aswin,

The checkbox is automatically checked because the state of the feature is set to "Installed".

You can see that in "Organization" page --> your feature --> "Installation Behavior".

If you want it to be unselected by default, you can set that from "installed" to "Not installed".

Hope this helps!

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

Return to “Common Problems”