Skip to content
⌘ NSIS Forum Archive

Inner Dialog element not editable.

3 posts

Simbonino#

Inner Dialog element not editable.

As a test, I wanted to replace the "Select components to install:" text with "Example" on the components page. With the following code in Classic UI it works perfectly but in Modern UI it doesn't. what is the error?

!include "WinMessages.nsh"
!define MUI_PAGE_CUSTOMFUNCTION_PRE MyTest
Function MyTest
FindWindow $1 "#32770" "" $HWNDPARENT # Find inner dialog
GetDlgItem $2 $1 0x3FE # Control ID
SendMessage $2 ${WM_SETTEXT} 0 "STR:Example"
FunctionEnd
Simbonino#
Originally Posted by Anders View Post
... it is probably in the documentation somewhere.
Anders I checked in the documentation, the ComponentText attribute does exactly what I was looking for.

As for my initial question I simply performed a test for possible future use. Probably the header file MUI2.nsh so constructed blocks the modification via SendMessage.

Thanks anyway.