Hi, I would like to remove an item from a Components depending on the previous installation and other logic. I tried Check function on the component, but in the handler I cannot use WizardIsComponentSelected, nor ExpandConstant('{app}') nor WizardDirValue, because they do not exist yet. I tried to delete an item from WizardForm.ComponentsList in CurPageChanged for CurPageID = wpSelectComponents, but the application then crashes, probably because the corresponding items from ItemState of the TNewCheckListBox component are not deleted.
Is there any way, how to correctly remove items from Components or from TNewCheckListBox?
I know that I can disable the items (by WizardForm.ComponentsList.ItemEnabled), but I would like to hide/delete them, because then I do not have to solve another problem with full type selection there (it selects disabled items too).
Thanks.
Petr