Skip to content
⌘ NSIS Forum Archive

skip page during install

5 posts

treaz#

skip page during install

Hi,

May I know if it is possible to skip a customised page if the user decides not to install a certain component? If that is possible, how should I go about scripting it?

Thanks.🙂
kichik#
To skip a custom page just don't call the plug-in that creates the page itself. For example:

Page custom customPage
Function customPage
  SectionGetFlags ${sec1} $0
  IntOp $0 $0 & ${SF_SELECTED}
  IntCmp $0 ${SF_SELECTED} 0 skip skip
    # create page here
    # InstallOptions::dialog ... for example
  skip:
FunctionEnd 
treaz#
Hi,

May I know how do I find out which section has been checked?
I dont quite get this:

${SF_SELECTED} 
What is the above?

Thanks.
kichik#
SF_SELECTED is defined in the one-section.nsi example and is exaplained in the documentation about SectionSetFlags.