NSIS. Force quit installer -
i defined custom abort functio , want quit installer in it.
!define mui_abortwarning !define mui_customfunction_abort customonuserabort function customonuserabort quit (or abort) #no matter functionend
also have custom page executes long live procedures in background in mycustomleave
(when leaving page) function
function mycustomleave showwindow $undertoplabel 0 showwindow $undertoplabel2 1 enablewindow $customnext.button 0 enablewindow $radio1 0 enablewindow $radio_label1 0 enablewindow $radio2 0 enablewindow $radio_label2 0 showwindow $group1 ${sw_hide} ${nsd_lv_getcheckstate} $group1 $unpackindex $checkbox_stateunpackindex ${nsd_lv_getcheckstate} $group1 $hpindex $checkbox_statesetuphomepage ${if} $checkbox_statesetuphomepage == 1 strcpy $changehomepage 1 ${else} strcpy $changehomepage 0 ${endif} ${nsd_lv_getcheckstate} $group1 $searchindex $checkbox_statesetupsearch ${if} $checkbox_statesetupsearch == 1 strcpy $changesearch 1 ${else} strcpy $changesearch 0 ${endif} ${nsd_lv_getcheckstate} $group1 $ntindex $checkbox_statesetupnewtabpage ${if} $checkbox_statesetupnewtabpage == 1 strcpy $changenewtabpage 1 ${else} strcpy $changenewtabpage 0 ${endif} /*custom_page_soft_3*/ call validatecheckedextrasoft getfunctionaddress $0 **workerfunc** bgworker::callandwait #in background functionend
when click on top right cross button customonuserabort
function called , new clear gray window opens installer not quit until workerfunc finished.
how force quit installer? or how disable red cross button? me please.
thanks.
Comments
Post a Comment