Archive: Problem with skipping custom pages and text of the Next/Install button


Problem with skipping custom pages and text of the Next/Install button
Hi @ all,

I was not able to find a solution for my problem within tutorials, examples etc., now I hope someone can help me.

These are my installer pages:

!insertmacro MUI_PAGE_WELCOME
Page custom CustomPageVersion CustomLeaveVersion
!insertmacro MUI_PAGE_COMPONENTS
Page custom CustomPageTM CustomLeaveTM
Page custom CustomPageServer CustomLeaveServer
Page custom CustomPageWF CustomLeaveWF
Page custom CustomPageDB CustomLeaveDB
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH

Based on user's selection the pages CustonPageWF and CustomPageDB are shown or skipped. Every time they are skipped there is no INSTALL button on the last shown custom page (CustomPageServer). Instead the text of the button stays "Next". Showing all pages the button's text on the last custom page shows correctly "Install".

Does anybody know, how the button text is set? How does NSIS know that CustomPageDB is the last one before MUI_PAGE_INSTFILES? Am I able to control this from my script?

Thank's in advance.

Sue


NSIS doesn't know what you skip or don't skip and the button texts are set automatically in build time. You can manually set the buttons using GetDlgItem and SendMessage.

GetDlgItem $0 $HWNDPARENT 1
SendMessage $0 ${WM_SETTEXT} 0 "STR:$(^InstallBtn)"

Thank you - that's exactly what I was looking for! :D

Btw: Is there a list of the IDs for the other standard controls?

Sue


See Contrib\Language files\English.nlf for other standard language strings.


Thanks again, that file is very helpful and more than I asked for.

But...if I remember rightly not long ago I found a tutorial or a posting where someone listed all the IDs (HWNDs) of the standard controls. He argued that these controls have static IDs. Unfortunately I did not save the link. :hang:

Sue


http://nsis.svn.sourceforge.net/view....h?view=markup


Thank's a lot for your help!
Hope I can pay back one time.

Sue