![]() |
#1 |
Junior Member
Join Date: Jul 2009
Posts: 10
|
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 1i 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 |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,484
|
MessageBox mb_ok "$(^InstallBtn)"
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#3 |
Senior Member
Join Date: Nov 2013
Location: Iran
Posts: 343
|
i must use from that code in where is my .nsi file?!
in function? in Section? is possible give me a example? thanks |
![]() |
![]() |
![]() |
#4 |
Major Dude
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
|
You can do both.
Probably makes the most sense in the MUI_PAGE_CUSTOMFUNCTION_SHOW function of the respective page! (Assuming you use MUI) My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc My source of inspiration: http://youtu.be/lCwY4_0W1YI |
![]() |
![]() |
![]() |
#5 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,484
|
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... IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|