custom controls - Calling PRE functions of MUI in NSIS installer, skipping pages/dialogs in NSIS installer -


can pre function of mui dialog called when required?

!define mui_page_customfunction_pre skipcomponentspage !insertmacro mui_page_components  function skipcomponentspage  abort messagebox mb_ok "you chose update current version" functionend 

//this section checked default, , user not able select or unselect section , has executed..........how this?to hide , have included - sign in name. name "mandatory"

section "-mandatory" sec_update     #do update............ sectionend 

i have 2 radiobuttons (demo & update) on custom dialog page in nsis installer. want when user choses install update (choses update radiobutton), components page skipped , , specified section auto checked , executed.

but if user choses install dem (choses demo radiobutton) , components page not skipped & user can check or uncheck sections on component page.

a page callback called, can put logic inside function:

... section "" sec_update  sectionend  function skipcomponentspage !insertmacro unselectsection ${sec_update} ; don't include update demo default? ${if} $installtype == update     !insertmacro selectsection ${sec_update}     abort ${endif} functionend 

it not clear me if want user able choose update in demo mode, if want force update can make section read only:

section "update" sec_update  sectionin ro sectionend 

(and remove unselectsection call pre function)

...or make section invisible -name prefix suggested.


Comments