Archive: Dynamic & 64 Bit only Sections?


Dynamic & 64 Bit only Sections?
Hi, i'm trying to create an installer, and that would need dynamic sections, though i'm unsure on how to go about it...

Is it possible to have installer sections that show only if the operating system is of 64 bit architecture, and/or sections that only show if a few registry entries exist?


I don't think you can make sections invisible, but you can deselect and disable them using SectionSetFlags. Do this in .onInit, or anywhere else before the components page (like the components pre function).
http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.13.1

Use x64.nsh to check for 64 bits architecture.


Ah... awesome cake... i managed to work around getting it done... thanks :)


Remove a sections name and it will not show on the components page