Skip to content
⌘ NSIS Forum Archive

Install button text

5 posts

bltomov#

Install button text

Hallo, in my NSIS script, i need to change sometimes the label of the "next >" button to "install", because the page is the last page.
I have found that using the
GetDlgItem $1 $HWNDPARENT 1
SendMessage $1 "${WM_SETTEXT}" "STR:text"
i can change the text of the next button. My question, is how can i get the default text of the install button?
Or have someone i idea, to change dynamically the number of pages?

Thank you!

Regards,
Boian
r2du-soft#
i must use from that code in where is my .nsi file?!
in function?
in Section?
is possible give me a example?
thanks
LoRd_MuldeR#
Originally Posted by r2du-soft View Post
in function?
in Section?
You can do both.

Probably makes the most sense in the MUI_PAGE_CUSTOMFUNCTION_SHOW function of the respective page!

(Assuming you use MUI)
Anders#
The best way is InstallButtonText: http://forums.winamp.com/showthread.php?t=294128

You can also override the langstring.

If you had multiple sets of pages (two or more instfiles pages) and you only wanted to change one of them you would use the getdlgitem code in the pages show callback...