Archive: skip page during install


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.:)


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
>

Hi,

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


} 

What is the above?

Thanks.

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


Thanks a lot! Got it solved.:)