Archive: Button text change


Button text change
I am customizing installer pages. I have a custom welcomepage, a customised directory page that shows license also on the same page.

Page custom nsDialogsWelcome
Page custom nsDialogsDirectory

After that I am using
!insertmacro MUI_PAGE_INSTFILES .

Now here I am facing a problem. I don't want a Finish page. So I commented the Finish page call.

Now in MUI_PAGE_INSTFILES page, I want to change the Next button text to Finish.

I tried
MiscButtonText, but it changes the text of welcome page also as there is also a next button.

So what shud I do in this scenario.


GetDlgItem $R0 $HWNDPARENT 1
SendMessage $R0 ${WM_SETTEXT} 0 `STR:New text`

Should go in page leave function which you set with MUI_PAGE_CUSTOMFUNCTION_LEAVE.

Stu


I just tried this (though I stuck it in the function). It worked but there's another problem:

I want to change it to "Install additional files" (because the custom page in question does part of the installation by constructing a new file from a seed file with nsPerl).

But when I do this, the button only shows 'l additional f' because it doesn't resize to fit the text.