nsis - How to show directory page conditionally on InstallOption? -


i using mui user interface, want show directory page when user selects checkbox in installoption page.

my problem don't know how conditionally disable mui_page_directory page.

function installtypeleave   !insertmacro installoptions_read $install_type "installtype.ini" "field 1" "state"   setshellvarcontext current   strcmp $install_type "1" set_location_local set_location_network   set_location_local:     strcpy $instdir "$appdata\..."     goto set_location_finish   set_location_network:     strcpy $instdir ""     goto set_location_finish   set_location_finish: functionend  ; directory page !insertmacro mui_page_directory 

the page should shown when $install_type not "1", how this?

add page callback discards page depending on condition, e.g:

#specify callback before mui_page_directory !define mui_page_customfunction_show directorypagecallback !insertmacro mui_page_directory  #...  function directorypagecallback     ${if} $install_type = 1         abort    #in pre-function callback, discard page     ${endif} functionend 

see callbacks reference details.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

java - Using an Integer ArrayList in Android -