I'm creating an installation program using Inno Setup and I have all the custom install pages made but I need to know how to set whether or not a component will be installed. Normally there's a premade page which allows the user to select which components will get installed and which won't but I want to create a custom page with radio buttons for component1, component2 and both. I already know how to check whether a radio button is checked, I just need to know if there's any code that I can use to set the component to be installed. Too confusing?
It'd be like this:
if component1.checked = true then component1.install = true; else if component 2.checked = true then component2.install = true; end;
as the bare basics.