Archive: how to Disable section


how to Disable section
I'm making an installer for 32 bits & 64 Bits. I made one section for the 32 bits and the other section for the 64 bits, so onInit I check if the OS is x64 or x86, but I don't know how to do is if the OS is not x64, how to disable the x64 section so the user won't be able to check it?


You will find all the macros you need in x64.nsh and Sections.nsh


finally I found what I was looking for:


SectionSetFlags ${x64} ${SF_RO}

Originally posted by xkiz
finally I found what I was looking for:

SectionSetFlags ${x64} ${SF_RO}
That is not a good solution. You will overwrite any existing flags. Use the SetSectionFlag macro from Sections.nsh.

Stu