Some useful DlgItem changes

From NSIS Wiki
Jump to navigationJump to search
Author: Afrow UK (talk, contrib)


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.

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