NSIS Function - quit installer -
in nsis installer have custom function user has 2 radio buttons. selecting first 1 , clicking "next" installs software. selecting sec 1 (browse) , clicking "next" displays html file found on installation medium.
everything works quit installer when user selects browse alternative , html page displayed. thought how this?
in custom page have this:
${nsd_createradiobutton} 70 95 40% 6% "install manuals pc" pop $hwnd ${nsd_addstyle} $hwnd ${ws_group} ${nsd_setuserdata} $hwnd "true" ${nsd_onclick} $hwnd radioclick ${nsd_createradiobutton} 70 175 40% 6% "browse $medium content" pop $hwnd ${nsd_setuserdata} $hwnd "false" ${nsd_onclick} $hwnd radioclick
i have function gets data:
function radioclick pop $hwnd ${nsd_getuserdata} $hwnd $inst functionend
and finally, function stuff info (start installation or browse):
function post ${if} $inst == "" messagebox mb_ok "please specify option" abort ${elseif} $inst == false execshell "open" "$exedir\techpublist_forpc\$start_pub" abort ${endif} functionend
i need set in lastly function after "abort" quits installer.
any help welcomed! give thanks you!
doesn't quit instruction want? manual states:
causes installer exit possible. after quit called, installer exit (no callback functions chance run).
nsis
No comments:
Post a Comment