Skip to content
⌘ NSIS Forum Archive

how to Disable section

4 posts

xkiz#

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?
Afrow UK#
Originally Posted by xkiz View Post
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