conditional sections
hello,
please forgive me, if this has been asked often already - I've tried to search but found nothing helpful.
My installerproject is for installing a plugin for several possible programms. Therefore it will install some common files in anycase. The installer reads the registry to check if supported programms are installed and now I would like to hide or at least disable section for those programms which are not installed at the users computer.
Therfore I have created the program sections like
Section /o "Prg1" SeccPrg1
...
and in a callback I try to activate or disable it
!insertmacro SelectSection "Prg1"
...
!insertmacro SetSectionFlag "Prg1" ${SF_RO}
I use the ModernUI.
The problem is that I've not been able to achive any results. I can add MsgBoxes to see that checking for the programm works, but nothing changes in the state of the commponent selection.
Could one please point me to a working example of an installer that changes the component selection, based on run-time criteria.