I'm trying build an installer w/ Inno Setup that runs other installers based on some configuration options. For simplicity, let's say I've got 20 installers that can be setup in 5 different configurations, where each configuration has some required and some optional installers. Configuration A might require installer 1, 2, 5, 6, and have options for 11, 13, and 14. Configuration B might require 1, 2, 3, 9, and have options for 12, 19, and 20. And so on.
I've got a Component for each installer. Ideally, I would have liked to use Types for the configurations, but I couldn't figure out how make some Components required while having others optional (if this is possible, please tell me). So, currently I have only a "custom" Type and use a custom wizard page that allows you to specify the configuration. Based on the selection, I'm using code to check and disable (so they can't be unselected) the required Components, while still allowing the optional Components to be selected.
In general it works pretty well, but I was hoping to only display the Components that are applicable for the selected configuration. So using the example above, for configuration A the Components page would show 1, 2, 5, 6 checked and disabled and 11, 13, and 14 unchecked and enabled. Is it possible to leave all of the components defined, but just hide the ones that aren't applicable? Or perhaps define multiple components pages, but only show the one for that configuration?
I found this solution online, but since the user could possibly hit the back button the notion that I could delete the components, but not re-add them doesn't seem like a good option.