Archive: Section Help


Section Help
Just started exploring NSIS and I have to say I am pretty impressed. Ive been pouring over all the posts and documentation here, but I havent seen a way to do the following.

Firstly, I do some stuff to figure out whether or not a system has the version of IE that I need. So thats all set.

Based on this I want to be able to modify my section that allows IE to be included in the install. Ideally, I would like to require it if they dont have a supported version. If they do already have a supported version, I want to make it disappear from the list. If thats not possible, I would settle for unchecked and RO.

I think this is possible, I just havent hit upon the right example to make this work.

Any ideas out there?

Thanks


jeremy


To hide a section use SectionSetText with an empty string. To unselect it include Sections.nsh (!include Sections.nsh) and use the UnselectSection macro. To set it to RO use the SetSectionFlag macro from the same include.

All this is said assuming you're using NSIS 2. If you're not you will have to call SectionSetFlags, SectionGetFlags and IntOp on your own without the help of the macros.


Hey, that worked great. Thanks for quick reply.