Some useful DlgItem changes

From NSIS Wiki

Author: Afrow UK (talk, contrib)


[edit] Description

These are to change text on different items of your installer. They can be used to change text on the different dialogs of your installer.

[edit] Examples

## Change Cancel button text
GetDlgItem $R0 $HWNDPARENT 2
SendMessage $R0 ${WM_SETTEXT} 0 "STR:My Text"
 
## Change Back button text
GetDlgItem $R0 $HWNDPARENT 3
SendMessage $R0 ${WM_SETTEXT} 0 "STR:My Text"
 
## Change branding text
GetDlgItem $R0 $HWNDPARENT 1028
SendMessage $R0 ${WM_SETTEXT} 0 "STR:My Branding Text"

-Stu

donate
ads