Hello and welcome to Advanced Installer forums,
Thank you for your interest in Advanced Installer.
In order to achieve what you want you should enable "Install prerequisites based on conditions" from "Prerequisites ->
Install Conditions" tab and, then add install conditions accordingly.
Let us know if this helped, otherwise please give us more details about your scenario.
All the best,
Daniel