diff --git a/Examples/one-section.nsi b/Examples/one-section.nsi index bd15c7bd..b970495c 100644 --- a/Examples/one-section.nsi +++ b/Examples/one-section.nsi @@ -1,3 +1,15 @@ +# This example demonstrates how to control section selection +# It allows only one of the four optional section to be selected at any given time +# +# Please note that the initial value will not be what you expect it to be if you are +# are using InstType because InstType is taken into consideration after the .onInit, +# where the initial state is set, executes. +# To use this code with InstType you will either have to specify you first InstType +# to match the initial value you set in .onInit (only StrCpy $1 ${sec1} is important +# in this case because the other set the section and that will be done by InstType), +# or set the initial section selection from .onSelChange when it is called for the +# first time. + Name example OutFile one-section.exe