Archive: Disable/Enable component in Components Page


Disable/Enable component in Components Page
Hello All,

How can I disable (make it not selectable) the checkbox?

Basically, in my installer I am tracking installed components. In my Uninstaller, I want to enable (show - make it selectable) the checkbox of the installed component and disable (not show) the others in the Component Page.

Is there a macro or any sort for me the enable or disable the checkbox?

I looked into the SectionIn ... but it is not what I want to do.

Thanks.


You should set the SF_RO flag. You can set it on runtime using the macros in Sections.nsh.

!include Sections.nsh
#...
!insertmaro SetSectionFlag ${some_section} ${SF_RO}
!insertmaro ClearSectionFlag ${some_section} ${SF_RO}

Thanks Again Kichik.