In order to achieve this you can go in the "Prerequisites" page and use the "feature-based" prerequisites support. You can pass information to the prerequisite in the "Install Command Lines" field from the "Setup Files" tab.
Let us know if this helped, otherwise give us more details about your scenario.
FOLLOW US
Get the latest news in Application Packaging