xkiz
30th April 2010 21:00 UTC
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?
Anders
30th April 2010 21:01 UTC
You will find all the macros you need in x64.nsh and Sections.nsh
xkiz
30th April 2010 21:33 UTC
finally I found what I was looking for:
SectionSetFlags ${x64} ${SF_RO}
Afrow UK
1st May 2010 10:29 UTC
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