installer - Adding custom labels in NSIS dialog pages, showing and hiding labels in NSIS MUI Directory pages conditionally, how to get the ids of labels -
how hide custom label added on directory page dialog of nsis installer. label added using resource hacker , id 1300
how change text of label conditionally?
if user choses install demo, label text should "demo" , , if user choses install update , label text should "update"
i have added 2 labels, hiding , showing them accordingly.label1 id 1300 , label2 id 1301.
# occurs on directory page show. function directoryshow ${if} $installtype == demo getdlgitem $5 $hwndparent 1300 messagebox mb_ok "id of first label $5" ----it shows '0' instead of showing 1300 ${nsd_settext} $5 "installing demo of software!!!!!!!!!!!!!!!!!" getdlgitem $6 $hwndparent 1301 showwindow $6 ${sw_hide} ;getdlgitem $1 $hwndparent 2 ;showwindow $0 ${sw_show} ;showwindow $1 ${sw_hide} ${else} getdlgitem $7 $hwndparent 1300 showwindow $7 ${sw_hide} getdlgitem $8 $hwndparent 1301 ${nsd_settext} $8 "updating existing software !!!!!!!!!!!!!!!!!" ${endif} functionend
how id of these labels?
nsis uses child dialog host actual pages:
you first need handle inner dialog, can find label:
findwindow $0 "#32770" "" $hwndparent ;(this documented under section 4.9.14.6 in file) getdlgitem $5 $0 1300
Comments
Post a Comment