condorchou
8th July 2008 01:08 UTC
Setting InstallButtonText for Components Page?
Hello All
I am using trying to change the install button text from "Install" to something else. The InstallButtonText and MiscButtonText commands work for all pages other than the MUI_PAGE_COMPONENTS page. How do I go about changing this button text for the MUI_PAGE_COMPONENTS?
Thank You
Condor
pospec
8th July 2008 06:45 UTC
It works for me with both classic UI and Modern UI.
Name "Sections"
OutFile "Sections.exe"
InstallButtonText "INSTALL"
LicenseData "${NSISDIR}\COPYING"
Page license
Page components
Page instfiles
Section "A"
MessageBox MB_OK "Product A"
SectionEnd
Section "B"
MessageBox MB_OK "Product B"
SectionEnd
!include "MUI.nsh"
Name "Sections_MUI"
OutFile "Sections_MUI.exe"
InstallButtonText "INSTALL"
!insertmacro MUI_PAGE_LICENSE "${NSISDIR}\COPYING"
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English"
Section "A"
MessageBox MB_OK "Product A"
SectionEnd
Section "B"
MessageBox MB_OK "Product B"
SectionEnd
condorchou
8th July 2008 16:36 UTC
InstallButtonText
The default text for the button is already Install so setting it to InstallButtonText = "Install" doesn't really do anything useful.
If it did something like InstallButtonText = "Do Something" then we would have a solution.
Perhaps I misunderstood...In your code can you change the quoted button text to anything? I will give that a try. I know that it was not working for me in my installer.
condorchou
8th July 2008 16:40 UTC
Justed your snippet of code
Hi
I just tested your code and it does change the components page install button text. Thank You for your help... I now have to figure out why mine is not being changed..
thanx
condorchou
8th July 2008 16:54 UTC
Final solution
InstallButtonText does work. Mine was not working because I had accidentally copied the InstallButtonText in the bottom of my code without giving it a parameter. Thus everytime I set the button text on top it would be reset to nothing at the bottom of the code resulting in the my confusion.
Thanx for your help.
pospec
9th July 2008 05:37 UTC
"Install" <> "INSTALL" :rolleyes: