Skip to content
⌘ NSIS Forum Archive

How to set installer name after .onInit

7 posts

SunToo#

How to set installer name after .onInit

Hi,
is there any way to set the content of the installer attribute "Name" after the method .onInit to adapt the caption of all Windows.

Note: I don't want to set the whole caption of the windows, just the "Name" part to maintain the language dependent part ("Setup", "Installation de" ...) added by NSIS. So

SendMessage $HWNDPARENT ${WM_SETTEXT} 0 "STR:Title"

is not what I'm looking for.
SunToo#
Hi Anders,
changing the variable value after .onInit has no impact on the caption of the windows. It only changes the text within the pages that use the name.
MSG#
Couldn't you grab the text currently displayed on the menubar with wm_gettext or something, and cut off the software name to get the language-dependent part?
Anders#
$(^SetupCaption) is the default caption and it is just "$(^Name) Setup", you can find the rest of the strings @ http://nsis.svn.sourceforge.net/view...n=&view=markup and you can now build a string for use with WM_SETTEXT